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) {
if (exception.getCode() == GamebaseError.AUTH_TRANSFERACCOUNT_BLOCK) {
final TransferAccountFailInfo failInfo = TransferAccountFailInfo.from(exception);
final String failedId = failInfo.id;
final Date blockedDate = new Date(failInfo.blockEndDate);
}
return;
}
}
};
}
- See also
- com.toast.android.gamebase.Gamebase#transferAccountWithIdPLogin(String, String, GamebaseDataCallback)