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

◆ RequestWithdrawal()

static void RequestWithdrawal ( GamebaseCallback::GamebaseDelegate< GamebaseResponse::TemporaryWithdrawalInfo > callback)
static

Request to Temporary Withdrawal.

If the user who requested the temporary withdrawal logs in, you can check the grace expiration time through the AuthToken.member.temporaryWithdrawalInfo.gracePeriodDate.

Since
Added 2.9.0.
Parameters
callbackCallbacks the result of OpenContact.

Example Usage :

public void SampleRequestWithdrawal()
{
{
if (Gamebase.IsSuccess(error) == true)
{
long gracePeriodDate = data.gracePeriodDate;
Debug.Log(string.Format("RequestWithdrawal succeeded. The date when you can withdraw your withdrawal is {0}", gracePeriodDate));
}
else
{
Debug.Log(string.Format("RequestWithdrawal failed. error:{0}", error));
}
});
}
static void RequestWithdrawal(GamebaseCallback.GamebaseDelegate< GamebaseResponse.TemporaryWithdrawalInfo > callback)
Request to Temporary Withdrawal.
Definition Gamebase.cs:3708
This class provides wrapping of function execution related to temporary withdrawal.
Definition Gamebase.cs:3651
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