Gamebase SDK for Android  2.8.0
Toast Gamebase Platform
TransferAccountFailInfo Class Reference

TransferAccount API가 실패하였을 경우, 해당 VO로 실패 사유를 알 수 있습니다. 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

TransferAccount API가 실패하였을 경우, 해당 VO로 실패 사유를 알 수 있습니다.

Example Usage:

void transferAccountSample(String id, String password) {
Gamebase.transferAccountWithIdPLogin(id, password, new GamebaseDataCallback<AuthToken>() {
@Override
public void onCallback(AuthToken data, GamebaseException exception) {
if (exception != null) {
// Transfer Account Failed !!
// Login Failed
// ...
if (exception.getCode() == GamebaseError.AUTH_TRANSFERACCOUNT_BLOCK) {
final TransferAccountFailInfo failInfo = TransferAccountFailInfo.from(exception);
final int failCount = failInfo.failCount;
final String failedId = failInfo.id;
final Date blockedDate = new Date(failInfo.blockEndDate);
// ...
}
return;
}
// Transfer Account Success !!
// Login Success
// ...
}
};
}
See also
com.toast.android.gamebase.Gamebase#transferAccountWithIdPLogin(String, String, GamebaseDataCallback)

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 String  json,
Class< T >  classOfT 
)
staticinherited
Here is the caller graph for this function:

◆ fromJson() [2/3]

static <T> T fromJson ( @NonNull JSONObject  jsonObject,
Class< T >  classOfT 
)
staticinherited
Here is the call 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
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