Gamebase SDK for Unity 2.75.1 Toast Gamebase Platform

Loading...
Searching...
No Matches

## ◆ RenewTransferAccount()

static void RenewTransferAccount | ( | GamebaseRequest::Auth::TransferAccountRenewConfiguration | configuration,
|  | GamebaseCallback::GamebaseDelegate< GamebaseResponse::Auth::TransferAccountInfo > | callback
| ) |  |
| static

Try to renew the transfer account.

If you want to renew the account automatically or manually, you should pass the proper TransferAccountRenewConfiguration object to the first parameter.

Since
  Added 2.2.0.

Parameters

  configuration | Configuration for Transfer Account renewal.
  callback | Callbacks the result of RenewTransferAccountManualIdPassword

Example Usage :

public void RenewTransferAccountSample(string accountId, string accountPassword)
{
// Manual settings
GamebaseRequest.Auth.TransferAccountRenewConfiguration configuration = GamebaseRequest.Auth.TransferAccountRenewConfiguration.MakeManualRenewConfiguration(accountId, accountPassword);
//GamebaseRequest.Auth.TransferAccountRenewConfiguration configuration = GamebaseRequest.Auth.TransferAccountRenewConfiguration.MakeManualRenewConfiguration(accountPassword);
// Auto settings
//var type = GamebaseRequest.Auth.TransferAccountRenewConfiguration.RenewalTargetType.ID_PASSWORD;
//GamebaseRequest.Auth.TransferAccountRenewConfiguration configuration = GamebaseRequest.Auth.TransferAccountRenewConfiguration.MakeAutoRenewConfiguration(type);
Gamebase.RenewTransferAccount(configuration, (transferAccountInfo, error) =>
{
if (Gamebase.IsSuccess(error) == true)
{
// Renewing TransferAccount success.
Debug.Log(string.Format("RenewTransferAccount succeeded. ID:{0}, Password:{1}", transferAccountInfo.account.id, transferAccountInfo.account.password));
}
else
{
// Check the error code and handle the error appropriately.
Debug.Log(string.Format("RenewTransferAccount failed. error is {0}", error));
}
});
}
Toast.Gamebase.Gamebase.RenewTransferAccount
static void RenewTransferAccount(GamebaseRequest.Auth.TransferAccountRenewConfiguration configuration, GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.TransferAccountInfo > callback)
Try to renew the transfer account.
Definition: Gamebase.cs:1590
Toast.Gamebase.Gamebase.IsSuccess
static bool IsSuccess(GamebaseError error)
Return true if the GamebaseException object is null or the error code is zero.
Definition: Gamebase.cs:57
Toast.Gamebase.Gamebase
The Gamebase class is core of Gamebase service.
Definition: Gamebase.cs:11