private void GetWorldsResponse(IAsyncResult asr)
        {
            XmlRpcAsyncResult result         = (XmlRpcAsyncResult)asr;
            AuthProxy         clientProtocol = (AuthProxy)result.ClientProtocol;

            clientProtocol.Url = this.EndpointUri;
            try
            {
                XmlRpcRespStruct struct2 = clientProtocol.EndGetWorlds(asr);
                this.mResponse = new XmlRpcAuthResponse(struct2.mMessage, struct2.mSuccessCode, struct2.mUserGUID, struct2.mUsername, struct2.mEmailAddress, struct2.mPassword, struct2.mSessionID, struct2.mIPAddress, struct2.mPlatform, struct2.mRawCards, struct2.mCrowns, struct2.mCardpoints, struct2.mPremiumCards, struct2.mRawOffers, struct2.mRawPacks, struct2.mRawSharers, struct2.mRawTokens, struct2.mVeteranLv1, struct2.mVeteranLv2, struct2.mVeteranLv3, struct2.mVeteranLv4, struct2.mVeteranLv5, struct2.mVeteranLv6, struct2.mVeteranLv7, struct2.mVeteranLv8, struct2.mVeteranLv9, struct2.mVeteranLv10, struct2.mVeteranTotalSeconds, struct2.mVeteranSecondsLeft, struct2.mVeteranCurrentLevel, struct2.mPremiumBox, struct2.mRawShields, struct2.mRawWorlds, struct2.mRawProducts, struct2.mSpecialURL);
            }
            catch (Exception exception)
            {
                this.mResponse = new XmlRpcAuthResponse(exception.Message, 0, this.mRequest.UserGUID, this.mRequest.Username, this.mRequest.EmailAddress, this.mRequest.Password, this.mRequest.SessionID, this.mRequest.IPAddress, this.mRequest.Platform, null, 0, 0, 0, null, null, null, null);
            }
            try
            {
                if (this.FormsControl != null)
                {
                    this.FormsControl.Invoke(new AuthEndResponseDelegate(this.CallbackMethod.Invoke), new object[] { this, this.Response });
                }
            }
            catch (Exception exception2)
            {
                string message = exception2.Message;
            }
        }
        private void SetEmailOptInResponse(IAsyncResult asr)
        {
            XmlRpcAsyncResult result         = (XmlRpcAsyncResult)asr;
            AuthProxy         clientProtocol = (AuthProxy)result.ClientProtocol;

            clientProtocol.Url = this.EndpointUri;
            try
            {
                XmlRpcRespStruct struct2 = clientProtocol.EndsetEmailOptIn(asr);
                this.mResponse = new XmlRpcAuthResponse(struct2.mMessage, struct2.mSuccessCode, struct2.mUserGUID, struct2.mUsername, struct2.mEmailAddress, struct2.mPassword, struct2.mSessionID, struct2.mIPAddress, struct2.mPlatform, struct2.mRawCards, struct2.mCrowns, struct2.mCardpoints, struct2.mPremiumCards, struct2.mRawOffers, struct2.mRawPacks, struct2.mRawSharers, struct2.mRawTokens);
            }
            catch (Exception)
            {
                this.mResponse = new XmlRpcAuthResponse("Login Server Unavailable, please try again later", 0, this.mRequest.UserGUID, this.mRequest.Username, this.mRequest.EmailAddress, this.mRequest.Password, this.mRequest.SessionID, this.mRequest.IPAddress, this.mRequest.Platform, null, 0, 0, 0, null, null, null, null);
            }
            try
            {
                if (this.FormsControl != null)
                {
                    this.FormsControl.Invoke(new AuthEndResponseDelegate(this.CallbackMethod.Invoke), new object[] { this, this.Response });
                }
            }
            catch (Exception exception)
            {
                string message = exception.Message;
            }
        }
        private void AeriaGetBalanceResponse(IAsyncResult asr)
        {
            XmlRpcAsyncResult result         = (XmlRpcAsyncResult)asr;
            AuthProxy         clientProtocol = (AuthProxy)result.ClientProtocol;

            clientProtocol.Url = this.EndpointUri;
            try
            {
                XmlRpcRespStruct struct2 = clientProtocol.EndAeriaGetBalance(asr);
                this.mResponse        = new XmlRpcAuthResponse(struct2.mMessage, struct2.mSuccessCode);
                this.mResponse.Points = struct2.mPoints;
            }
            catch (Exception)
            {
                this.mResponse = new XmlRpcAuthResponse("Login Server Unavailable, please try again later", 0, this.mRequest.UserGUID, this.mRequest.Username, this.mRequest.EmailAddress, this.mRequest.Password, this.mRequest.SessionID, this.mRequest.IPAddress, this.mRequest.Platform, null, 0, 0, 0, null, null, null, null);
            }
            try
            {
                if (this.FormsControl != null)
                {
                    this.FormsControl.Invoke(new AuthEndResponseDelegate(this.CallbackMethod.Invoke), new object[] { this, this.Response });
                }
            }
            catch (Exception exception)
            {
                string message = exception.Message;
            }
        }
Beispiel #4
0
 public XmlRpcAuthResponse(string message, int?success)
 {
     this.worldsComparer         = new WorldsComparer();
     this.mResponse              = new XmlRpcRespStruct();
     this.mResponse.mSuccessCode = success;
     this.mResponse.mMessage     = message;
 }
        private void clientLoginResponse(IAsyncResult asr)
        {
            XmlRpcAsyncResult result         = (XmlRpcAsyncResult)asr;
            AuthProxy         clientProtocol = (AuthProxy)result.ClientProtocol;

            clientProtocol.Url = this.EndpointUri;
            try
            {
                int?mIsbigpoint          = null;
                int?mUnviewedOffers      = null;
                XmlRpcRespStruct struct2 = clientProtocol.EndclientLogin(asr);
                this.mResponse = new XmlRpcAuthResponse(struct2.mMessage, struct2.mSuccessCode, struct2.mUserGUID, struct2.mUsername, struct2.mEmailAddress, struct2.mPassword, struct2.mSessionID, struct2.mIPAddress, struct2.mPlatform, struct2.mRawCards, struct2.mCrowns, struct2.mCardpoints, struct2.mPremiumCards, struct2.mRawOffers, struct2.mRawPacks, struct2.mRawSharers, struct2.mRawTokens, struct2.mVeteranLv1, struct2.mVeteranLv2, struct2.mVeteranLv3, struct2.mVeteranLv4, struct2.mVeteranLv5, struct2.mVeteranLv6, struct2.mVeteranLv7, struct2.mVeteranLv8, struct2.mVeteranLv9, struct2.mVeteranLv10, struct2.mVeteranTotalSeconds, struct2.mVeteranSecondsLeft, struct2.mVeteranCurrentLevel, struct2.mPremiumBox, struct2.mRawShields, struct2.mRawWorlds, struct2.mRawProducts, struct2.mSpecialURL);
                if (struct2.mIsbigpoint.HasValue)
                {
                    mIsbigpoint = struct2.mIsbigpoint;
                }
                this.mResponse.isBigPoint = (mIsbigpoint.GetValueOrDefault() == 1) && mIsbigpoint.HasValue;
                if (struct2.mUnviewedOffers.HasValue)
                {
                    mUnviewedOffers = struct2.mUnviewedOffers;
                }
                this.mResponse.hasUnviewedOffers       = (mUnviewedOffers.GetValueOrDefault() == 1) && mUnviewedOffers.HasValue;
                this.mResponse.OnVacation              = struct2.mOnVacation;
                this.mResponse.FacebookFreePack        = struct2.mFBFreePack;
                this.mResponse.VacationsTaken          = struct2.mVacationsTaken;
                this.mResponse.CancelVacation          = struct2.mCancelVacation;
                this.mResponse.VacationSecondsLeft     = struct2.mVacationSecondsLeft;
                this.mResponse.VacationSecondsToCancel = struct2.mVacationSecondsToCancel;
                this.mResponse.VacationPossible        = struct2.mVacationPossible;
                this.mResponse.RequiresOptInCheck      = struct2.mRequiresOptInCheck;
            }
            catch (Exception exception)
            {
                this.mResponse = new XmlRpcAuthResponse(exception.Message, 0, this.mRequest.UserGUID, this.mRequest.Username, this.mRequest.EmailAddress, this.mRequest.Password, this.mRequest.SessionID, this.mRequest.IPAddress, this.mRequest.Platform, null, 0, 0, 0, null, null, null, null);
            }
            try
            {
                if (this.FormsControl != null)
                {
                    this.FormsControl.Invoke(new AuthEndResponseDelegate(this.CallbackMethod.Invoke), new object[] { this, this.Response });
                }
            }
            catch (Exception exception2)
            {
                string message = exception2.Message;
            }
        }
 public XmlRpcAuthResponse AeriaMakePayment(IAuthRequest req, AuthEndResponseDelegate callbackHandler, Control ctrl, int timeout)
 {
     try
     {
         this.FormsControl   = ctrl;
         this.CallbackMethod = callbackHandler;
         this.mRequest       = (XmlRpcAuthRequest)req;
         AuthProxy proxy = XmlRpcProxyGen.Create <AuthProxy>();
         proxy.Url     = this.EndpointUri;
         proxy.Timeout = timeout;
         XmlRpcRespStruct struct2 = proxy.AeriaMakePayment(this.mRequest.Request);
         this.mResponse = new XmlRpcAuthResponse(struct2.mMessage, struct2.mSuccessCode, struct2.mUserGUID, struct2.mUsername, struct2.mEmailAddress, struct2.mPassword, struct2.mSessionID, struct2.mIPAddress, struct2.mPlatform, struct2.mRawCards, struct2.mCrowns, struct2.mCardpoints, struct2.mPremiumCards, struct2.mRawOffers, struct2.mRawPacks, struct2.mRawSharers, struct2.mRawTokens, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, struct2.mRawProducts, null);
     }
     catch (Exception)
     {
         this.mResponse = new XmlRpcAuthResponse("Login Server Unavailable, please try again later", 0, this.mRequest.UserGUID, this.mRequest.Username, this.mRequest.EmailAddress, this.mRequest.Password, this.mRequest.SessionID, this.mRequest.IPAddress, this.mRequest.Platform, null, 0, 0, 0, null, null, null, null);
     }
     return(this.mResponse);
 }
 public XmlRpcAuthResponse RenameParish(IAuthRequest req, AuthEndResponseDelegate callbackHandler, Control ctrl, int timeout)
 {
     try
     {
         this.FormsControl   = ctrl;
         this.CallbackMethod = callbackHandler;
         this.mRequest       = (XmlRpcAuthRequest)req;
         AuthProxy proxy = XmlRpcProxyGen.Create <AuthProxy>();
         proxy.Url     = this.EndpointUri;
         proxy.Timeout = timeout;
         XmlRpcRespStruct struct2 = proxy.RenameParish(this.mRequest.Request);
         this.mResponse = new XmlRpcAuthResponse(struct2.mMessage, struct2.mSuccessCode);
     }
     catch (Exception)
     {
         this.mResponse = new XmlRpcAuthResponse("Login Server Unavailable, please try again later", 0, this.mRequest.UserGUID, this.mRequest.Username, this.mRequest.EmailAddress, this.mRequest.Password, this.mRequest.SessionID, this.mRequest.IPAddress, this.mRequest.Platform, null, 0, 0, 0, null, null, null, null);
     }
     return(this.mResponse);
 }
Beispiel #8
0
 public XmlRpcAuthResponse(string message, int?success, string guid, string username, string email, string pass, string sessionid, string ip, string platform, object rawcards, int?crowns, int?cardpoints, int?premiumcards, object rawoffers, object rawpacks, object rawsharers, object rawtokens, int?l1, int?l2, int?l3, int?l4, int?l5, int?l6, int?l7, int?l8, int?l9, int?l10, int?total, int?left, int?current, int?premiumbox, object shields, object worlds, object products, string specialURL)
 {
     this.worldsComparer = new WorldsComparer();
     this.mResponse      = new XmlRpcRespStruct();
     this.mResponse.mVeteranCurrentLevel = current;
     this.mResponse.mVeteranLv1          = l1;
     this.mResponse.mVeteranLv2          = l2;
     this.mResponse.mVeteranLv3          = l3;
     this.mResponse.mVeteranLv4          = l4;
     this.mResponse.mVeteranLv5          = l5;
     this.mResponse.mVeteranLv6          = l6;
     this.mResponse.mVeteranLv7          = l7;
     this.mResponse.mVeteranLv8          = l8;
     this.mResponse.mVeteranLv9          = l9;
     this.mResponse.mVeteranLv10         = l10;
     this.mResponse.mVeteranSecondsLeft  = left;
     this.mResponse.mVeteranTotalSeconds = total;
     this.mResponse.mMessage             = message;
     this.mResponse.mSuccessCode         = success;
     this.mResponse.mUserGUID            = guid;
     this.mResponse.mUsername            = username;
     this.mResponse.mEmailAddress        = email;
     this.mResponse.mPassword            = pass;
     this.mResponse.mSessionID           = sessionid;
     this.mResponse.mIPAddress           = ip;
     this.mResponse.mPlatform            = platform;
     this.mResponse.mRawCards            = rawcards;
     this.mResponse.mCrowns       = crowns;
     this.mResponse.mCardpoints   = cardpoints;
     this.mResponse.mPremiumCards = premiumcards;
     this.mResponse.mRawOffers    = rawoffers;
     this.mResponse.mRawPacks     = rawpacks;
     this.mResponse.mRawSharers   = rawsharers;
     this.mResponse.mRawTokens    = rawtokens;
     this.mResponse.mPremiumBox   = premiumbox;
     this.mResponse.mRawShields   = shields;
     this.mResponse.mRawWorlds    = worlds;
     this.mResponse.mRawProducts  = products;
     this.mResponse.mSpecialURL   = specialURL;
 }
        private void AuthenticateUserResponse(IAsyncResult asr)
        {
            XmlRpcAsyncResult result         = (XmlRpcAsyncResult)asr;
            AuthProxy         clientProtocol = (AuthProxy)result.ClientProtocol;

            clientProtocol.Url = this.EndpointUri;
            try
            {
                int?mIsbigpoint          = null;
                int?mUnviewedOffers      = null;
                XmlRpcRespStruct struct2 = clientProtocol.Endauthenticate(asr);
                this.mResponse = new XmlRpcAuthResponse(struct2.mMessage, struct2.mSuccessCode, struct2.mUserGUID, struct2.mUsername, struct2.mEmailAddress, struct2.mPassword, struct2.mSessionID, struct2.mIPAddress, struct2.mPlatform, struct2.mRawCards, struct2.mCrowns, struct2.mCardpoints, struct2.mPremiumCards, struct2.mRawOffers, struct2.mRawPacks, struct2.mRawSharers, struct2.mRawTokens);
                if (struct2.mIsbigpoint.HasValue)
                {
                    mIsbigpoint = struct2.mIsbigpoint;
                }
                this.mResponse.isBigPoint = (mIsbigpoint.GetValueOrDefault() == 1) && mIsbigpoint.HasValue;
                if (struct2.mUnviewedOffers.HasValue)
                {
                    mUnviewedOffers = struct2.mUnviewedOffers;
                }
                this.mResponse.hasUnviewedOffers = (mUnviewedOffers.GetValueOrDefault() == 1) && mUnviewedOffers.HasValue;
            }
            catch (Exception)
            {
                this.mResponse = new XmlRpcAuthResponse("Login Server Unavailable, please try again later", 0, this.mRequest.UserGUID, this.mRequest.Username, this.mRequest.EmailAddress, this.mRequest.Password, this.mRequest.SessionID, this.mRequest.IPAddress, this.mRequest.Platform, null, 0, 0, 0, null, null, null, null);
            }
            try
            {
                if (this.FormsControl != null)
                {
                    this.FormsControl.Invoke(new AuthEndResponseDelegate(this.CallbackMethod.Invoke), new object[] { this, this.Response });
                }
            }
            catch (Exception exception)
            {
                string message = exception.Message;
            }
        }
Beispiel #10
0
 public XmlRpcAuthResponse(string message, int?success, string guid, string username, string email, string pass, string sessionid, string ip, string platform, object rawcards, int?crowns, int?cardpoints, int?premiumcards, object rawoffers, object rawpacks, object rawsharers, object rawtokens)
 {
     this.worldsComparer          = new WorldsComparer();
     this.mResponse               = new XmlRpcRespStruct();
     this.mResponse.mMessage      = message;
     this.mResponse.mSuccessCode  = success;
     this.mResponse.mUserGUID     = guid;
     this.mResponse.mUsername     = username;
     this.mResponse.mEmailAddress = email;
     this.mResponse.mPassword     = pass;
     this.mResponse.mSessionID    = sessionid;
     this.mResponse.mIPAddress    = ip;
     this.mResponse.mPlatform     = platform;
     this.mResponse.mRawCards     = rawcards;
     this.mResponse.mCrowns       = crowns;
     this.mResponse.mCardpoints   = cardpoints;
     this.mResponse.mPremiumCards = premiumcards;
     this.mResponse.mRawOffers    = rawoffers;
     this.mResponse.mRawPacks     = rawpacks;
     this.mResponse.mRawSharers   = rawsharers;
     this.mResponse.mRawTokens    = rawtokens;
 }
 public int AeriaGetBalance(IAuthRequest req, AuthEndResponseDelegate callbackHandler, Control ctrl, int timeout, ref XmlRpcAuthResponse response)
 {
     try
     {
         this.FormsControl   = ctrl;
         this.CallbackMethod = callbackHandler;
         this.mRequest       = (XmlRpcAuthRequest)req;
         AuthProxy proxy = XmlRpcProxyGen.Create <AuthProxy>();
         proxy.Url     = this.EndpointUri;
         proxy.Timeout = timeout;
         XmlRpcRespStruct struct2 = proxy.AeriaGetBalance(this.mRequest.Request);
         int num = 0;
         num                     = struct2.mPoints.Value;
         this.mResponse          = new XmlRpcAuthResponse();
         this.mResponse.Products = struct2.mRawProducts;
         response                = this.mResponse;
         return(num);
     }
     catch (Exception)
     {
         return(0);
     }
 }
Beispiel #12
0
 public XmlRpcAuthResponse()
 {
     this.worldsComparer = new WorldsComparer();
     this.mResponse      = new XmlRpcRespStruct();
 }