Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
 protected virtual void CallGetServerAccountForFacebookIdService(string fbAccountId, Action <XmlDocument> getAccountForFacebookIdCallback)
 {
     AccountsServiceAPI.GetServerAccountForFacebookId(fbAccountId, getAccountForFacebookIdCallback);
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
        public void SaveCurrentAccountData(System.Action <XmlDocument> finishedUpdatingAccountDataCallback)
        {
            XmlDocument accountDataXml = AccountsXmlUtil.CreateAccountDataXml(this);

            AccountsServiceAPI.UpdateAccountData(mAccountId, accountDataXml, finishedUpdatingAccountDataCallback);
        }