Gamebase SDK for Unity  2.3.0
Toast Gamebase Platform

◆ 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
configurationConfiguration for Transfer Account renewal.
callbackCallbacks the result of RenewTransferAccountManualIdPassword

Example Usage :

public void RenewTransferAccountManualIdPassword(string accountId, string accountPassword)
{
GamebaseRequest.Auth.TransferAccountRenewConfiguration configuration = GamebaseRequest.Auth.TransferAccountRenewConfiguration.MakeManualRenewConfiguration(accountId, accountPassword);
// GamebaseRequest.Auth.TransferAccountRenewConfiguration configuration = GamebaseRequest.Auth.TransferAccountRenewConfiguration.MakeManualRenewConfiguration(accountPassword);
// GamebaseRequest.Auth.TransferAccountRenewConfiguration configuration = GamebaseRequest.Auth.TransferAccountRenewConfiguration.MakeAutoRenewConfiguration(type);
Gamebase.RenewTransferAccount(configuration, (transfer, error) =>
{
if (Gamebase.IsSuccess(error) == true)
{
// Renewing TransferAccount success.
}
else
{
// Renewing TransferAccount failed.
}
});
}