Gamebase SDK for Android 2.49.0
NHN Cloud Gamebase Platform
Loading...
Searching...
No Matches
TransferAccountFailInfo Class Reference

If the transferAccountWithIdPLogin API fails with error AUTH_TRANSFERACCOUNT_BLOCK (3042),
this VO will tell you the number of failed attempts and the block duration. More...

Inheritance diagram for TransferAccountFailInfo:
Inheritance graph
Collaboration diagram for TransferAccountFailInfo:
Collaboration graph

Public Member Functions

String toJsonString ()
 
String toPrettyJsonString ()
 
String toString ()
 

Static Public Member Functions

static TransferAccountFailInfo from (GamebaseException exception)
 Factory method to create VO instance. More...
 
static< T > T fromJson (@NonNull String json, Class< T > classOfT)
 
static< T > T fromJson (@NonNull JSONObject jsonObject, Class< T > classOfT)
 
static< T > T fromJson (@NonNull String json, Type type)
 

Public Attributes

String appId
 
String id
 
String status
 
int failCount
 
long blockEndDate
 
long regDate
 

Detailed Description

If the transferAccountWithIdPLogin API fails with error AUTH_TRANSFERACCOUNT_BLOCK (3042),
this VO will tell you the number of failed attempts and the block duration.

Since
Added 2.2.0

Example Usage:

void transferAccountSample(String id, String password) {
@Override
public void onCallback(AuthToken authToken, GamebaseException exception) {
if (!Gamebase.isSuccess(exception)) {
// Transfering Account failed.
if (failInfo != null) {
// Transfering Account failed by entering the wrong id / pw multiple times.
// You can tell when the account transfer is blocked by the TransferAccountFailInfo.
String failedId = failInfo.id;
int failCount = failInfo.failCount;
Date blockedDate = new Date(failInfo.blockEndDate);
return;
}
// Transfering Account failed by another reason.
return;
}
// Transfering Account success.
// Implement post login process
}
});
}
This class is a wrapper class that is provided to use various features of Gamebase platform.
Definition: Gamebase.java:61
static void transferAccountWithIdPLogin(final String accountId, final String accountPassword, final GamebaseDataCallback< AuthToken > callback)
Try to transfer account with transfer account id and password.
Definition: Gamebase.java:1003
static boolean isSuccess(@Nullable final GamebaseException exception)
Returns true if the GamebaseException object is null or the error code is zero.
Definition: Gamebase.java:160
If the transferAccountWithIdPLogin API fails with error AUTH_TRANSFERACCOUNT_BLOCK (3042),...
Definition: TransferAccountFailInfo.java:45
String id
Definition: TransferAccountFailInfo.java:49
int failCount
Definition: TransferAccountFailInfo.java:51
static TransferAccountFailInfo from(GamebaseException exception)
Factory method to create VO instance.
Definition: TransferAccountFailInfo.java:66
long blockEndDate
Definition: TransferAccountFailInfo.java:52
An object that contains the success or failure of the execution of the Gamebase function.
Definition: GamebaseException.java:26
Generic callback interface that returns data.
Definition: GamebaseDataCallback.java:12
See also
com.toast.android.gamebase.Gamebase#transferAccountWithIdPLogin(String, String, GamebaseDataCallback)
com.toast.android.gamebase.base.GamebaseException

Member Function Documentation

◆ from()

static TransferAccountFailInfo from ( GamebaseException  exception)
static

Factory method to create VO instance.

Parameters
exceptionExtracts the VO class instance from this exception.
Returns
VO instance
Here is the call graph for this function:

◆ fromJson() [1/3]

static< T > T fromJson ( @NonNull JSONObject  jsonObject,
Class< T >  classOfT 
)
staticinherited
Here is the call graph for this function:

◆ fromJson() [2/3]

static< T > T fromJson ( @NonNull String  json,
Class< T >  classOfT 
)
staticinherited
Here is the caller graph for this function:

◆ fromJson() [3/3]

static< T > T fromJson ( @NonNull String  json,
Type  type 
)
staticinherited

◆ toJsonString()

String toJsonString ( )
inherited
Here is the caller graph for this function:

◆ toPrettyJsonString()

String toPrettyJsonString ( )
inherited

◆ toString()

String toString ( )
inherited

Reimplemented in TransferAccountRenewConfiguration.

Here is the call graph for this function:

Member Data Documentation

◆ appId

String appId

◆ blockEndDate

long blockEndDate

◆ failCount

int failCount

◆ id

String id

◆ regDate

long regDate

◆ status

String status