Gamebase SDK for Unity 2.75.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

  callback | Callbacks the result of OpenContact.

Example Usage :

public void SampleRequestWithdrawal()
{
Gamebase.TemporaryWithdrawal.RequestWithdrawal((data, error) =>
{
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));
}
});
}
Toast.Gamebase.Gamebase.TemporaryWithdrawal.RequestWithdrawal
static void RequestWithdrawal(GamebaseCallback.GamebaseDelegate< GamebaseResponse.TemporaryWithdrawalInfo > callback)
Request to Temporary Withdrawal.
Definition: Gamebase.cs:3758
Toast.Gamebase.Gamebase.TemporaryWithdrawal
This class provides wrapping of function execution related to temporary withdrawal.
Definition: Gamebase.cs:3701
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