'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:4.0.30319.269
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System
Imports System.ComponentModel
Imports System.Diagnostics
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Xml.Serialization

'
'This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.269.
'
Namespace WS_ELOA
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Web.Services.WebServiceBindingAttribute(Name:="EBSTPVService", [Namespace]:="http://charter.com/enterprise/TPV")>  _
    Partial Public Class EBSTPVServicePort
        Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
        
        Private charterHeaderInfoValueField As CharterHeaderInfo
        
        Private GetVoiceLogInquiryOperationCompleted As System.Threading.SendOrPostCallback
        
        Private useDefaultCredentialsSetExplicitly As Boolean
        
        '''<remarks/>
        Public Sub New()
            MyBase.New
            Me.Url = Global.EBSServicesProvider.My.MySettings.Default.EBSServicesProvider_WS_ELOA_EBSTPVServicePort
            If (Me.IsLocalFileSystemWebService(Me.Url) = true) Then
                Me.UseDefaultCredentials = true
                Me.useDefaultCredentialsSetExplicitly = false
            Else
                Me.useDefaultCredentialsSetExplicitly = true
            End If
        End Sub
        
        Public Property CharterHeaderInfoValue() As CharterHeaderInfo
            Get
                Return Me.charterHeaderInfoValueField
            End Get
            Set
                Me.charterHeaderInfoValueField = value
            End Set
        End Property
        
        Public Shadows Property Url() As String
            Get
                Return MyBase.Url
            End Get
            Set
                If (((Me.IsLocalFileSystemWebService(MyBase.Url) = true)  _
                            AndAlso (Me.useDefaultCredentialsSetExplicitly = false))  _
                            AndAlso (Me.IsLocalFileSystemWebService(value) = false)) Then
                    MyBase.UseDefaultCredentials = false
                End If
                MyBase.Url = value
            End Set
        End Property
        
        Public Shadows Property UseDefaultCredentials() As Boolean
            Get
                Return MyBase.UseDefaultCredentials
            End Get
            Set
                MyBase.UseDefaultCredentials = value
                Me.useDefaultCredentialsSetExplicitly = true
            End Set
        End Property
        
        '''<remarks/>
        Public Event GetVoiceLogInquiryCompleted As GetVoiceLogInquiryCompletedEventHandler
        
        '''<remarks/>
        <System.Web.Services.Protocols.SoapHeaderAttribute("CharterHeaderInfoValue"),  _
         System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://charter.com/enterprise/TPV:getTPVIn", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Bare)>  _
        Public Function GetVoiceLogInquiry(<System.Xml.Serialization.XmlElementAttribute([Namespace]:="http://charter.com/enterprise/TPV")> ByVal GetTPVRequest As GetTPVRequest) As <System.Xml.Serialization.XmlElementAttribute("GetTPVResponse", [Namespace]:="http://charter.com/enterprise/TPV")> GetTPVResponse
            Dim results() As Object = Me.Invoke("GetVoiceLogInquiry", New Object() {GetTPVRequest})
            Return CType(results(0),GetTPVResponse)
        End Function
        
        '''<remarks/>
        Public Overloads Sub GetVoiceLogInquiryAsync(ByVal GetTPVRequest As GetTPVRequest)
            Me.GetVoiceLogInquiryAsync(GetTPVRequest, Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub GetVoiceLogInquiryAsync(ByVal GetTPVRequest As GetTPVRequest, ByVal userState As Object)
            If (Me.GetVoiceLogInquiryOperationCompleted Is Nothing) Then
                Me.GetVoiceLogInquiryOperationCompleted = AddressOf Me.OnGetVoiceLogInquiryOperationCompleted
            End If
            Me.InvokeAsync("GetVoiceLogInquiry", New Object() {GetTPVRequest}, Me.GetVoiceLogInquiryOperationCompleted, userState)
        End Sub
        
        Private Sub OnGetVoiceLogInquiryOperationCompleted(ByVal arg As Object)
            If (Not (Me.GetVoiceLogInquiryCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent GetVoiceLogInquiryCompleted(Me, New GetVoiceLogInquiryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<remarks/>
        Public Shadows Sub CancelAsync(ByVal userState As Object)
            MyBase.CancelAsync(userState)
        End Sub
        
        Private Function IsLocalFileSystemWebService(ByVal url As String) As Boolean
            If ((url Is Nothing)  _
                        OrElse (url Is String.Empty)) Then
                Return false
            End If
            Dim wsUri As System.Uri = New System.Uri(url)
            If ((wsUri.Port >= 1024)  _
                        AndAlso (String.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) = 0)) Then
                Return true
            End If
            Return false
        End Function
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/TPV"),  _
     System.Xml.Serialization.XmlRootAttribute([Namespace]:="http://charter.com/enterprise/TPV", IsNullable:=false)>  _
    Partial Public Class CharterHeaderInfo
        Inherits System.Web.Services.Protocols.SoapHeader
        
        Private tranIdField As System.Guid
        
        Private logOnlyField As Boolean
        
        Private dataSourceOverrideField As DataSourceOverrideType
        
        Private anyAttrField() As System.Xml.XmlAttribute
        
        '''<remarks/>
        Public Property TranId() As System.Guid
            Get
                Return Me.tranIdField
            End Get
            Set
                Me.tranIdField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property LogOnly() As Boolean
            Get
                Return Me.logOnlyField
            End Get
            Set
                Me.logOnlyField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property DataSourceOverride() As DataSourceOverrideType
            Get
                Return Me.dataSourceOverrideField
            End Get
            Set
                Me.dataSourceOverrideField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlAnyAttributeAttribute()>  _
        Public Property AnyAttr() As System.Xml.XmlAttribute()
            Get
                Return Me.anyAttrField
            End Get
            Set
                Me.anyAttrField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/TPV")>  _
    Public Enum DataSourceOverrideType
        
        '''<remarks/>
        NoOverride
        
        '''<remarks/>
        OverrideToDatabase
        
        '''<remarks/>
        OverrideToRemoteSystem
    End Enum
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/TPV")>  _
    Partial Public Class TPVResponse
        
        Private transactionIDField As String
        
        Private telephoneNbrField As String
        
        Private statusField As String
        
        Private reasonCodeField As String
        
        Private reasonDescriptionField As String
        
        '''<remarks/>
        Public Property TransactionID() As String
            Get
                Return Me.transactionIDField
            End Get
            Set
                Me.transactionIDField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property TelephoneNbr() As String
            Get
                Return Me.telephoneNbrField
            End Get
            Set
                Me.telephoneNbrField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Status() As String
            Get
                Return Me.statusField
            End Get
            Set
                Me.statusField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property ReasonCode() As String
            Get
                Return Me.reasonCodeField
            End Get
            Set
                Me.reasonCodeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property ReasonDescription() As String
            Get
                Return Me.reasonDescriptionField
            End Get
            Set
                Me.reasonDescriptionField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/TPV")>  _
    Partial Public Class CsgStatusMessage
        
        Private codeField As String
        
        Private messageField As String
        
        '''<remarks/>
        Public Property Code() As String
            Get
                Return Me.codeField
            End Get
            Set
                Me.codeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Message() As String
            Get
                Return Me.messageField
            End Get
            Set
                Me.messageField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/TPV")>  _
    Partial Public Class ResultExceptionInfo
        
        Private typeField As String
        
        Private messageField As String
        
        Private stackTraceField As String
        
        Private codeField As String
        
        '''<remarks/>
        Public Property Type() As String
            Get
                Return Me.typeField
            End Get
            Set
                Me.typeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Message() As String
            Get
                Return Me.messageField
            End Get
            Set
                Me.messageField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property StackTrace() As String
            Get
                Return Me.stackTraceField
            End Get
            Set
                Me.stackTraceField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Code() As String
            Get
                Return Me.codeField
            End Get
            Set
                Me.codeField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/TPV")>  _
    Partial Public Class Result
        
        Private returnCodeField As ResultReturnCode
        
        Private referenceCodeField As String
        
        Private typeField As ResultType
        
        Private descriptionField As String
        
        Private dateTimeField As Date
        
        Private sourceField As String
        
        Private serverField As String
        
        Private exceptionInfoField As ResultExceptionInfo
        
        Private statusMessagesField() As CsgStatusMessage
        
        '''<remarks/>
        Public Property ReturnCode() As ResultReturnCode
            Get
                Return Me.returnCodeField
            End Get
            Set
                Me.returnCodeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property ReferenceCode() As String
            Get
                Return Me.referenceCodeField
            End Get
            Set
                Me.referenceCodeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Type() As ResultType
            Get
                Return Me.typeField
            End Get
            Set
                Me.typeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Description() As String
            Get
                Return Me.descriptionField
            End Get
            Set
                Me.descriptionField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property DateTime() As Date
            Get
                Return Me.dateTimeField
            End Get
            Set
                Me.dateTimeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Source() As String
            Get
                Return Me.sourceField
            End Get
            Set
                Me.sourceField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Server() As String
            Get
                Return Me.serverField
            End Get
            Set
                Me.serverField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property ExceptionInfo() As ResultExceptionInfo
            Get
                Return Me.exceptionInfoField
            End Get
            Set
                Me.exceptionInfoField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute("StatusMessages")>  _
        Public Property StatusMessages() As CsgStatusMessage()
            Get
                Return Me.statusMessagesField
            End Get
            Set
                Me.statusMessagesField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/TPV")>  _
    Public Enum ResultReturnCode
        
        '''<remarks/>
        Success
        
        '''<remarks/>
        NoDataFound
        
        '''<remarks/>
        InvalidXml
        
        '''<remarks/>
        BusinessRuleNotMet
        
        '''<remarks/>
        Exception
        
        '''<remarks/>
        DatabaseError
    End Enum
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/TPV")>  _
    Public Enum ResultType
        
        '''<remarks/>
        Informational
        
        '''<remarks/>
        [Error]
    End Enum
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute(AnonymousType:=true, [Namespace]:="http://charter.com/enterprise/TPV")>  _
    Partial Public Class GetTPVRequest
        
        Private userIDField As String
        
        Private passwordField As String
        
        Private eLOANameField As String
        
        Private versionField As String
        
        Private dNISField As String
        
        Private telephoneNbrField As String
        
        Private firstNameField As String
        
        Private lastNameField As String
        
        Private affiliateIDField As String
        
        Private affiliateNameField As String
        
        Private affiliateTypeField As String
        
        Private decisionMakerField As String
        
        Private securityTypeField As String
        
        Private securityValueField As String
        
        Private localField As String
        
        Private localTollField As String
        
        Private longDistanceField As String
        
        Private e911Field As String
        
        Private statusField As String
        
        Private reasonCodeField As String
        
        Private wTNsField() As String
        
        '''<remarks/>
        Public Property UserID() As String
            Get
                Return Me.userIDField
            End Get
            Set
                Me.userIDField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Password() As String
            Get
                Return Me.passwordField
            End Get
            Set
                Me.passwordField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property ELOAName() As String
            Get
                Return Me.eLOANameField
            End Get
            Set
                Me.eLOANameField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(DataType:="integer")>  _
        Public Property Version() As String
            Get
                Return Me.versionField
            End Get
            Set
                Me.versionField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property DNIS() As String
            Get
                Return Me.dNISField
            End Get
            Set
                Me.dNISField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property TelephoneNbr() As String
            Get
                Return Me.telephoneNbrField
            End Get
            Set
                Me.telephoneNbrField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property FirstName() As String
            Get
                Return Me.firstNameField
            End Get
            Set
                Me.firstNameField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property LastName() As String
            Get
                Return Me.lastNameField
            End Get
            Set
                Me.lastNameField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(DataType:="integer")>  _
        Public Property AffiliateID() As String
            Get
                Return Me.affiliateIDField
            End Get
            Set
                Me.affiliateIDField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property AffiliateName() As String
            Get
                Return Me.affiliateNameField
            End Get
            Set
                Me.affiliateNameField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property AffiliateType() As String
            Get
                Return Me.affiliateTypeField
            End Get
            Set
                Me.affiliateTypeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property DecisionMaker() As String
            Get
                Return Me.decisionMakerField
            End Get
            Set
                Me.decisionMakerField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property SecurityType() As String
            Get
                Return Me.securityTypeField
            End Get
            Set
                Me.securityTypeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property SecurityValue() As String
            Get
                Return Me.securityValueField
            End Get
            Set
                Me.securityValueField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Local() As String
            Get
                Return Me.localField
            End Get
            Set
                Me.localField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property LocalToll() As String
            Get
                Return Me.localTollField
            End Get
            Set
                Me.localTollField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property LongDistance() As String
            Get
                Return Me.longDistanceField
            End Get
            Set
                Me.longDistanceField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property E911() As String
            Get
                Return Me.e911Field
            End Get
            Set
                Me.e911Field = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Status() As String
            Get
                Return Me.statusField
            End Get
            Set
                Me.statusField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property ReasonCode() As String
            Get
                Return Me.reasonCodeField
            End Get
            Set
                Me.reasonCodeField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlArrayItemAttribute("TelephoneNbr", IsNullable:=false)>  _
        Public Property WTNs() As String()
            Get
                Return Me.wTNsField
            End Get
            Set
                Me.wTNsField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute(AnonymousType:=true, [Namespace]:="http://charter.com/enterprise/TPV")>  _
    Partial Public Class GetTPVResponse
        
        Private resultField As Result
        
        Private tPVResponseField As TPVResponse
        
        '''<remarks/>
        Public Property Result() As Result
            Get
                Return Me.resultField
            End Get
            Set
                Me.resultField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property TPVResponse() As TPVResponse
            Get
                Return Me.tPVResponseField
            End Get
            Set
                Me.tPVResponseField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")>  _
    Public Delegate Sub GetVoiceLogInquiryCompletedEventHandler(ByVal sender As Object, ByVal e As GetVoiceLogInquiryCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code")>  _
    Partial Public Class GetVoiceLogInquiryCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Friend Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        '''<remarks/>
        Public ReadOnly Property Result() As GetTPVResponse
            Get
                Me.RaiseExceptionIfNecessary
                Return CType(Me.results(0),GetTPVResponse)
            End Get
        End Property
    End Class
End Namespace
