TransferAccountFailInfo
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. Example Usage:
void transferAccountSample(String id, String password) {
Gamebase.transferAccountWithIdPLogin(accountId, accountPassword, new GamebaseDataCallback<AuthToken>() {
@Override
public void onCallback(AuthToken authToken, GamebaseException exception) {
if (!Gamebase.isSuccess(exception)) {
// Transfering Account failed.
TransferAccountFailInfo failInfo = TransferAccountFailInfo.from(exception);
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
}
});
}
Content copied to clipboard
Since
Added 2.2.0