# TransferAccountFailInfo

class TransferAccountFailInfo : ValueObject

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

#### See also

Gamebase
GamebaseException

## Properties

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

## Functions

from
Link copied to clipboard
open fun from(exception: GamebaseException): TransferAccountFailInfo
Factory method to create VO instance.
fromJson
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
toJsonString
Link copied to clipboard
open fun toJsonString(): String
toPrettyJsonString
Link copied to clipboard
open fun toPrettyJsonString(): String
toString
Link copied to clipboard
open fun toString(): String