public static AccountRequest GetRequestObject(AccountInfo acct) { return new AccountRequest { SubscriberID = acct.SubscriberID, ParticipantID = acct.ParticipantID, PlanSeqNr = acct.PlanSeqNr, SponsorID = acct.SponsorID, ContextID = acct.ContextID }; }
//Change Pin hardening Request public static PasswordIndRequest GetStrongPasswordIndObject(AccountInfo acct ,string deviceId){ return new PasswordIndRequest { SponsorID = acct.SponsorID, PlanSeqnr = acct.PlanSeqNr, SubscriberID = acct.SubscriberID, ParticipantID = acct.ParticipantID, ContextID = acct.ContextID, SessionID = deviceId , }; }
//Change Username Request public static ChangeUsernameRequest GetChangeUsernameRequestObject(AccountInfo acct,string deviceId, string newUsername, string confirmNewUsername) { return new ChangeUsernameRequest { SponsorID = acct.SponsorID, PlanSeqNr = acct.PlanSeqNr, SubscriberID = acct.SubscriberID, ParticipantID = acct.ParticipantID, ContextID = acct.ContextID, SessionID = deviceId, NewUsername = newUsername, ConfirmNewUsername = confirmNewUsername }; }
public static FundDetailRequest GetFundDetailRequestObject(AccountInfo acct, AccountFund fund) { return new FundDetailRequest { ParticipantID = acct.ParticipantID, SubscriberID = acct.SubscriberID, SponsorID = acct.SponsorID, PlanSeqNr = acct.PlanSeqNr, FundSeqNr = fund.fundSeqnr, InvProviderId = fund.invProviderId, InvContractType = acct.ContractTypeCode, ContextID = acct.ContextID }; }
//Change Password Request public static ChangePasswordRequest GetChangePasswordRequestObject(AccountInfo acct,string deviceId,string currentPassword, string newPassword, string confirmNewPassword) { return new ChangePasswordRequest { SponsorID = acct.SponsorID, PlanSeqnr = acct.PlanSeqNr, SubscriberID = acct.SubscriberID, ParticipantID = acct.ParticipantID, ContextID = acct.ContextID, SessionID = deviceId , CurrentPassword = currentPassword, NewPassword = newPassword, ConfirmNewPassword = confirmNewPassword }; }
public void LoadAccount(AccountInfo account) { AccountActivity.StartAnimating (); AccountLoadingLabel.AdjustsFontSizeToFitWidth = true; AccountLoadingLabel.Text = "Loading " + account.AccountName; AppCache.Instance.ClearCacheItem (AppCache.AppCacheKey.DASHBOARD); AppCache.Instance.ClearCacheItem (AppCache.AppCacheKey.BALANCES); AppCache.Instance.SetCacheItem(AppCache.AppCacheKey.CURRENTACCOUNT, account); appDelegate.Window.RootViewController = Storyboard.InstantiateInitialViewController () as RSTabViewController; }