//------------------------------------------------------------------------------
// <auto-generated>
//     Este código fue generado por una herramienta.
//     Versión de runtime:4.0.30319.42000
//
//     Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
//     se vuelve a generar el código.
// </auto-generated>
//------------------------------------------------------------------------------

// 
// Microsoft.VSDesigner generó automáticamente este código fuente, versión=4.0.30319.42000.
// 
#pragma warning disable 1591

namespace LLNet.Tienda.HablaMas {
    using System;
    using System.Web.Services;
    using System.Diagnostics;
    using System.Web.Services.Protocols;
    using System.Xml.Serialization;
    using System.ComponentModel;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="WSgenericRTBinding", Namespace="urn:WSgenericRT")]
    public partial class WSgenericRT : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback GetExisteUserOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetExisteSubscriptorOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetSaldoOperationCompleted;
        
        private System.Threading.SendOrPostCallback SendRechargeOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public WSgenericRT() {
            this.Url = global::LLNet.Tienda.Properties.Settings.Default.Tienda_HablaMas_WSgenericRT;
            if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else {
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        public new string Url {
            get {
                return base.Url;
            }
            set {
                if ((((this.IsLocalFileSystemWebService(base.Url) == true) 
                            && (this.useDefaultCredentialsSetExplicitly == false)) 
                            && (this.IsLocalFileSystemWebService(value) == false))) {
                    base.UseDefaultCredentials = false;
                }
                base.Url = value;
            }
        }
        
        public new bool UseDefaultCredentials {
            get {
                return base.UseDefaultCredentials;
            }
            set {
                base.UseDefaultCredentials = value;
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        /// <remarks/>
        public event GetExisteUserCompletedEventHandler GetExisteUserCompleted;
        
        /// <remarks/>
        public event GetExisteSubscriptorCompletedEventHandler GetExisteSubscriptorCompleted;
        
        /// <remarks/>
        public event GetSaldoCompletedEventHandler GetSaldoCompleted;
        
        /// <remarks/>
        public event SendRechargeCompletedEventHandler SendRechargeCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:WSgenericRT#GetExisteUser", RequestNamespace="urn:WSgenericRT", ResponseNamespace="urn:WSgenericRT")]
        [return: System.Xml.Serialization.SoapElementAttribute("oRes")]
        public ExisteUserRes GetExisteUser(EsisteUserReq oReq) {
            object[] results = this.Invoke("GetExisteUser", new object[] {
                        oReq});
            return ((ExisteUserRes)(results[0]));
        }
        
        /// <remarks/>
        public void GetExisteUserAsync(EsisteUserReq oReq) {
            this.GetExisteUserAsync(oReq, null);
        }
        
        /// <remarks/>
        public void GetExisteUserAsync(EsisteUserReq oReq, object userState) {
            if ((this.GetExisteUserOperationCompleted == null)) {
                this.GetExisteUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetExisteUserOperationCompleted);
            }
            this.InvokeAsync("GetExisteUser", new object[] {
                        oReq}, this.GetExisteUserOperationCompleted, userState);
        }
        
        private void OnGetExisteUserOperationCompleted(object arg) {
            if ((this.GetExisteUserCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetExisteUserCompleted(this, new GetExisteUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:WSgenericRT#GetExisteSubscriptor", RequestNamespace="urn:WSgenericRT", ResponseNamespace="urn:WSgenericRT")]
        [return: System.Xml.Serialization.SoapElementAttribute("oRes")]
        public ExisteSubscriptorRes GetExisteSubscriptor(ExisteSubscriptorReq oReq) {
            object[] results = this.Invoke("GetExisteSubscriptor", new object[] {
                        oReq});
            return ((ExisteSubscriptorRes)(results[0]));
        }
        
        /// <remarks/>
        public void GetExisteSubscriptorAsync(ExisteSubscriptorReq oReq) {
            this.GetExisteSubscriptorAsync(oReq, null);
        }
        
        /// <remarks/>
        public void GetExisteSubscriptorAsync(ExisteSubscriptorReq oReq, object userState) {
            if ((this.GetExisteSubscriptorOperationCompleted == null)) {
                this.GetExisteSubscriptorOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetExisteSubscriptorOperationCompleted);
            }
            this.InvokeAsync("GetExisteSubscriptor", new object[] {
                        oReq}, this.GetExisteSubscriptorOperationCompleted, userState);
        }
        
        private void OnGetExisteSubscriptorOperationCompleted(object arg) {
            if ((this.GetExisteSubscriptorCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetExisteSubscriptorCompleted(this, new GetExisteSubscriptorCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:WSgenericRT#GetSaldo", RequestNamespace="urn:WSgenericRT", ResponseNamespace="urn:WSgenericRT")]
        [return: System.Xml.Serialization.SoapElementAttribute("oRes")]
        public SaldoRes GetSaldo(SaldoReq oReq) {
            object[] results = this.Invoke("GetSaldo", new object[] {
                        oReq});
            return ((SaldoRes)(results[0]));
        }
        
        /// <remarks/>
        public void GetSaldoAsync(SaldoReq oReq) {
            this.GetSaldoAsync(oReq, null);
        }
        
        /// <remarks/>
        public void GetSaldoAsync(SaldoReq oReq, object userState) {
            if ((this.GetSaldoOperationCompleted == null)) {
                this.GetSaldoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSaldoOperationCompleted);
            }
            this.InvokeAsync("GetSaldo", new object[] {
                        oReq}, this.GetSaldoOperationCompleted, userState);
        }
        
        private void OnGetSaldoOperationCompleted(object arg) {
            if ((this.GetSaldoCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetSaldoCompleted(this, new GetSaldoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:WSgenericRT#SendRecharge", RequestNamespace="urn:WSgenericRT", ResponseNamespace="urn:WSgenericRT")]
        [return: System.Xml.Serialization.SoapElementAttribute("oRes")]
        public RechargeRes SendRecharge(RechargeReq oReq) {
            object[] results = this.Invoke("SendRecharge", new object[] {
                        oReq});
            return ((RechargeRes)(results[0]));
        }
        
        /// <remarks/>
        public void SendRechargeAsync(RechargeReq oReq) {
            this.SendRechargeAsync(oReq, null);
        }
        
        /// <remarks/>
        public void SendRechargeAsync(RechargeReq oReq, object userState) {
            if ((this.SendRechargeOperationCompleted == null)) {
                this.SendRechargeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendRechargeOperationCompleted);
            }
            this.InvokeAsync("SendRecharge", new object[] {
                        oReq}, this.SendRechargeOperationCompleted, userState);
        }
        
        private void OnSendRechargeOperationCompleted(object arg) {
            if ((this.SendRechargeCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SendRechargeCompleted(this, new SendRechargeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        public new void CancelAsync(object userState) {
            base.CancelAsync(userState);
        }
        
        private bool IsLocalFileSystemWebService(string url) {
            if (((url == null) 
                        || (url == string.Empty))) {
                return false;
            }
            System.Uri wsUri = new System.Uri(url);
            if (((wsUri.Port >= 1024) 
                        && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
                return true;
            }
            return false;
        }
    }
    
    /// <comentarios/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1590.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.SoapTypeAttribute(Namespace="urn:WSgenericRT")]
    public partial class EsisteUserReq {
        
        private string userCodeField;
        
        private string userAccessKeyField;
        
        /// <comentarios/>
        public string UserCode {
            get {
                return this.userCodeField;
            }
            set {
                this.userCodeField = value;
            }
        }
        
        /// <comentarios/>
        public string UserAccessKey {
            get {
                return this.userAccessKeyField;
            }
            set {
                this.userAccessKeyField = value;
            }
        }
    }
    
    /// <comentarios/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1590.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.SoapTypeAttribute(Namespace="urn:WSgenericRT")]
    public partial class RechargeRes {
        
        private string dateSendField;
        
        private string numberPhoneTargetField;
        
        private int amountField;
        
        private string numberTransField;
        
        private int codStateField;
        
        /// <comentarios/>
        public string DateSend {
            get {
                return this.dateSendField;
            }
            set {
                this.dateSendField = value;
            }
        }
        
        /// <comentarios/>
        public string NumberPhoneTarget {
            get {
                return this.numberPhoneTargetField;
            }
            set {
                this.numberPhoneTargetField = value;
            }
        }
        
        /// <comentarios/>
        public int Amount {
            get {
                return this.amountField;
            }
            set {
                this.amountField = value;
            }
        }
        
        /// <comentarios/>
        public string NumberTrans {
            get {
                return this.numberTransField;
            }
            set {
                this.numberTransField = value;
            }
        }
        
        /// <comentarios/>
        public int CodState {
            get {
                return this.codStateField;
            }
            set {
                this.codStateField = value;
            }
        }
    }
    
    /// <comentarios/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1590.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.SoapTypeAttribute(Namespace="urn:WSgenericRT")]
    public partial class RechargeReq {
        
        private string userCodeField;
        
        private string userAccessKeyField;
        
        private string numberPhoneSourceField;
        
        private string numberPhoneTargetField;
        
        private int amountField;
        
        private string iDAccountBranchField;
        
        /// <comentarios/>
        public string UserCode {
            get {
                return this.userCodeField;
            }
            set {
                this.userCodeField = value;
            }
        }
        
        /// <comentarios/>
        public string UserAccessKey {
            get {
                return this.userAccessKeyField;
            }
            set {
                this.userAccessKeyField = value;
            }
        }
        
        /// <comentarios/>
        public string NumberPhoneSource {
            get {
                return this.numberPhoneSourceField;
            }
            set {
                this.numberPhoneSourceField = value;
            }
        }
        
        /// <comentarios/>
        public string NumberPhoneTarget {
            get {
                return this.numberPhoneTargetField;
            }
            set {
                this.numberPhoneTargetField = value;
            }
        }
        
        /// <comentarios/>
        public int Amount {
            get {
                return this.amountField;
            }
            set {
                this.amountField = value;
            }
        }
        
        /// <comentarios/>
        public string IDAccountBranch {
            get {
                return this.iDAccountBranchField;
            }
            set {
                this.iDAccountBranchField = value;
            }
        }
    }
    
    /// <comentarios/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1590.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.SoapTypeAttribute(Namespace="urn:WSgenericRT")]
    public partial class SaldoRes {
        
        private decimal valueField;
        
        /// <comentarios/>
        public decimal Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <comentarios/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1590.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.SoapTypeAttribute(Namespace="urn:WSgenericRT")]
    public partial class SaldoReq {
        
        private string userCodeField;
        
        private string userAccessKeyField;
        
        /// <comentarios/>
        public string UserCode {
            get {
                return this.userCodeField;
            }
            set {
                this.userCodeField = value;
            }
        }
        
        /// <comentarios/>
        public string UserAccessKey {
            get {
                return this.userAccessKeyField;
            }
            set {
                this.userAccessKeyField = value;
            }
        }
    }
    
    /// <comentarios/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1590.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.SoapTypeAttribute(Namespace="urn:WSgenericRT")]
    public partial class ExisteSubscriptorRes {
        
        private bool valueField;
        
        /// <comentarios/>
        public bool Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <comentarios/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1590.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.SoapTypeAttribute(Namespace="urn:WSgenericRT")]
    public partial class ExisteSubscriptorReq {
        
        private string userCodeField;
        
        private string userAccessKeyField;
        
        private string numberPhoneField;
        
        /// <comentarios/>
        public string UserCode {
            get {
                return this.userCodeField;
            }
            set {
                this.userCodeField = value;
            }
        }
        
        /// <comentarios/>
        public string UserAccessKey {
            get {
                return this.userAccessKeyField;
            }
            set {
                this.userAccessKeyField = value;
            }
        }
        
        /// <comentarios/>
        public string NumberPhone {
            get {
                return this.numberPhoneField;
            }
            set {
                this.numberPhoneField = value;
            }
        }
    }
    
    /// <comentarios/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1590.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.SoapTypeAttribute(Namespace="urn:WSgenericRT")]
    public partial class ExisteUserRes {
        
        private bool valueField;
        
        /// <comentarios/>
        public bool Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
    public delegate void GetExisteUserCompletedEventHandler(object sender, GetExisteUserCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetExisteUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetExisteUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public ExisteUserRes Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((ExisteUserRes)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
    public delegate void GetExisteSubscriptorCompletedEventHandler(object sender, GetExisteSubscriptorCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetExisteSubscriptorCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetExisteSubscriptorCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public ExisteSubscriptorRes Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((ExisteSubscriptorRes)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
    public delegate void GetSaldoCompletedEventHandler(object sender, GetSaldoCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetSaldoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetSaldoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public SaldoRes Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((SaldoRes)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
    public delegate void SendRechargeCompletedEventHandler(object sender, SendRechargeCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SendRechargeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SendRechargeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public RechargeRes Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((RechargeRes)(this.results[0]));
            }
        }
    }
}

#pragma warning restore 1591