private void UpdateAccountDataForUser(ServerAccount serverAccount, UserProperties userProperties, System.Action <XmlDocument> finishedUpdatingAccountDataCallback) { serverAccount.UserProperties = userProperties; XmlDocument accountDataXml = AccountsXmlUtil.CreateAccountDataXml(serverAccount); AccountsServiceAPI.UpdateAccountData(serverAccount.AccountId, accountDataXml, finishedUpdatingAccountDataCallback); }
/// <summary> /// Calling the Accounts service to update the Hangout PaymentItems information /// </summary> /// <param name="serverAccount">The account object </param> /// <param name="accountForUserCallback">The callback to call when finished</param> public void UpdateServerPaymentItemsAccount(ServerAccount serverAccount, Action <ServerAccount> accountForUserCallback) { Action <XmlDocument> updatePaymentItemAccountCallback = delegate(XmlDocument receivedXmlUpdatePaymentItemsAccount) { if (accountForUserCallback != null) { accountForUserCallback(serverAccount); } }; AccountsServiceAPI.UpdateServerPaymentItemsAccount(serverAccount.AccountId.ToString(), serverAccount.PaymentItemUserId, serverAccount.PaymentItemSecureKey, updatePaymentItemAccountCallback); }
protected virtual void CallGetServerAccountForFacebookIdService(string fbAccountId, Action <XmlDocument> getAccountForFacebookIdCallback) { AccountsServiceAPI.GetServerAccountForFacebookId(fbAccountId, getAccountForFacebookIdCallback); }
protected virtual void CallCreateServerAccountService(string fbAccountId, string fbSessionKey, string nickName, string firstName, string lastName, string userIpAddress, string campaignId, string referrerId, Action <XmlDocument> createAccountForUserCallback) { AccountsServiceAPI.CreateServerAccount(fbAccountId, fbSessionKey, nickName, firstName, lastName, campaignId, referrerId, createAccountForUserCallback); }
public void SaveCurrentAccountData(System.Action <XmlDocument> finishedUpdatingAccountDataCallback) { XmlDocument accountDataXml = AccountsXmlUtil.CreateAccountDataXml(this); AccountsServiceAPI.UpdateAccountData(mAccountId, accountDataXml, finishedUpdatingAccountDataCallback); }