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
            }
        });
    }

Since

Added 2.2.0

See also

Properties

Link copied to clipboard
open var appId: String
Link copied to clipboard
open var blockEndDate: Long
Link copied to clipboard
open var failCount: Int
Link copied to clipboard
open var id: String
Link copied to clipboard
open var regDate: Long
Link copied to clipboard
open var status: String

Functions

Link copied to clipboard
Factory method to create VO instance.
Link copied to clipboard
open fun <T> fromJson(@NonNull json: String, classOfT: Class<T>): T
open fun <T> fromJson(@NonNull json: String, type: Type): T
open fun <T> fromJson(@NonNull jsonObject: JSONObject, classOfT: Class<T>): T
Link copied to clipboard
open fun toJsonString(): String
Link copied to clipboard
Link copied to clipboard
open fun toString(): String