public void buyPremium(ICardsRequest req, CardsEndResponseDelegate callbackHandler, Control ctrl)
        {
            this.FormsControl   = ctrl;
            this.CallbackMethod = callbackHandler;
            this.mRequest       = (XmlRpcCardsRequest)req;
            CardsProxy proxy = XmlRpcProxyGen.Create <CardsProxy>();

            proxy.Url = this.EndpointUri;
            proxy.BeginbuyPremium(this.mRequest.Request, new AsyncCallback(this.BuyPremiumResponse), null);
        }
        public XmlRpcCardsResponse playPremium(ICardsRequest req, int timeout)
        {
            this.mRequest = (XmlRpcCardsRequest)req;
            CardsProxy proxy = XmlRpcProxyGen.Create <CardsProxy>();

            proxy.Url     = this.EndpointUri;
            proxy.Timeout = timeout;
            XmlRpcRespStruct_Cards cards = proxy.playPremium(this.mRequest.Request);

            try
            {
                this.mResponse = new XmlRpcCardsResponse(cards.mMessage, cards.mSuccessCode);
            }
            catch (Exception exception)
            {
                this.mResponse = new XmlRpcCardsResponse(exception.Message, 0);
            }
            return(this.mResponse);
        }
        public XmlRpcCardsResponse setVeteranData(ICardsRequest req, CardsEndResponseDelegate callbackHandler, Control ctrl, int timeout)
        {
            this.FormsControl   = ctrl;
            this.CallbackMethod = callbackHandler;
            this.mRequest       = (XmlRpcCardsRequest)req;
            CardsProxy proxy = XmlRpcProxyGen.Create <CardsProxy>();

            proxy.Url     = this.EndpointUri;
            proxy.Timeout = timeout;
            XmlRpcRespStruct_Cards cards = proxy.setVeteranData(this.mRequest.Request);

            try
            {
                this.mResponse = new XmlRpcCardsResponse(cards.mMessage, cards.mSuccessCode);
            }
            catch (Exception exception)
            {
                this.mResponse = new XmlRpcCardsResponse(exception.Message, 0);
            }
            return(this.mResponse);
        }
 public void veteranLevelUp(ICardsRequest req, CardsEndResponseDelegate callbackHandler, Control ctrl)
 {
     this.FormsControl = ctrl;
     this.CallbackMethod = callbackHandler;
     this.mRequest = (XmlRpcCardsRequest) req;
     CardsProxy proxy = XmlRpcProxyGen.Create<CardsProxy>();
     proxy.Url = this.EndpointUri;
     proxy.BeginveteranLevelUp(this.mRequest.Request, new AsyncCallback(this.veteranLevelUpResponse), null);
 }
 public XmlRpcCardsResponse setVeteranData(ICardsRequest req, CardsEndResponseDelegate callbackHandler, Control ctrl, int timeout)
 {
     this.FormsControl = ctrl;
     this.CallbackMethod = callbackHandler;
     this.mRequest = (XmlRpcCardsRequest) req;
     CardsProxy proxy = XmlRpcProxyGen.Create<CardsProxy>();
     proxy.Url = this.EndpointUri;
     proxy.Timeout = timeout;
     XmlRpcRespStruct_Cards cards = proxy.setVeteranData(this.mRequest.Request);
     try
     {
         this.mResponse = new XmlRpcCardsResponse(cards.mMessage, cards.mSuccessCode);
     }
     catch (Exception exception)
     {
         this.mResponse = new XmlRpcCardsResponse(exception.Message, 0);
     }
     return this.mResponse;
 }
 public XmlRpcCardsResponse playPremium(ICardsRequest req, int timeout)
 {
     this.mRequest = (XmlRpcCardsRequest) req;
     CardsProxy proxy = XmlRpcProxyGen.Create<CardsProxy>();
     proxy.Url = this.EndpointUri;
     proxy.Timeout = timeout;
     XmlRpcRespStruct_Cards cards = proxy.playPremium(this.mRequest.Request);
     try
     {
         this.mResponse = new XmlRpcCardsResponse(cards.mMessage, cards.mSuccessCode);
     }
     catch (Exception exception)
     {
         this.mResponse = new XmlRpcCardsResponse(exception.Message, 0);
     }
     return this.mResponse;
 }