Gamebase SDK for Unity 2.69.0
Toast Gamebase Platform
Loading...
Searching...
No Matches

◆ QueryTransferAccount()

static void QueryTransferAccount ( GamebaseCallback::GamebaseDelegate< GamebaseResponse::Auth::TransferAccountInfo > callback)
static

Try to query the transfer account to Gamebase.

If the transfer account is already issued, it returns.

Since
Added 2.2.0.
Parameters
callbackCallbacks the result of QueryTransferAccount

Example Usage :

public void QueryTransferAccountSample()
{
Gamebase.QueryTransferAccount((transferAccountInfo, error) =>
{
if (Gamebase.IsSuccess(error) == true)
{
// You already have ID/password for account transfer.
var id = transferAccountInfo.account.id;
Debug.Log(string.Format("QueryTransferAccount succeeded. ID:{0}", id));
}
else
{
if (error.code == GamebaseErrorCode.AUTH_TRANSFERACCOUNT_NOT_EXIST)
{
// You don't have ID for account transfer.
return;
}
// Check the error code and handle the error appropriately.
Debug.Log(string.Format("QueryTransferAccount failed. error is {0}", error));
}
});
}
static void QueryTransferAccount(GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.TransferAccountInfo > callback)
Try to query the transfer account to Gamebase.
Definition Gamebase.cs:1462
static bool IsSuccess(GamebaseError error)
Return true if the GamebaseException object is null or the error code is zero.
Definition Gamebase.cs:57
The Gamebase class is core of Gamebase service.
Definition Gamebase.cs:11