If the login or addMapping API fails with error BANNED_MEMBER (7),
this VO class tells you the ban information.
More...
|
static BanInfo | 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) |
|
If the login or addMapping API fails with error BANNED_MEMBER (7),
this VO class tells you the ban information.
- Since
- Added 1.11.0.
Example Usage:
void onLoginWithBannedMember() {
@Override
if (banInfo != null) {
return;
}
...
return;
}
}
});
}
This class is a wrapper class that is provided to use various features of Gamebase platform.
Definition: Gamebase.java:61
static void login(@NonNull final Activity activity, final String providerName, @Nullable final GamebaseDataCallback< AuthToken > callback)
Logs the user in with the external authentication provider.
Definition: Gamebase.java:236
static boolean isSuccess(@Nullable final GamebaseException exception)
Returns true if the GamebaseException object is null or the error code is zero.
Definition: Gamebase.java:160
Definition: AuthToken.java:15
If the login or addMapping API fails with error BANNED_MEMBER (7), this VO class tells you the ban i...
Definition: BanInfo.java:56
static BanInfo from(GamebaseException exception)
Factory method to create VO instance.
Definition: BanInfo.java:116
An object that contains the success or failure of the execution of the Gamebase function.
Definition: GamebaseException.java:26
Generic callback interface that returns data.
Definition: GamebaseDataCallback.java:12
- See also
com.toast.android.gamebase.Gamebase#loginForLastLoggedInProvider(Activity, GamebaseDataCallback)
-
com.toast.android.gamebase.Gamebase#login(Activity, String, GamebaseDataCallback)
-
com.toast.android.gamebase.Gamebase#login(Activity, String, Map, GamebaseDataCallback)
-
com.toast.android.gamebase.Gamebase#login(Activity, Map, GamebaseDataCallback)
-
com.toast.android.gamebase.Gamebase#addMapping(Activity, String, GamebaseDataCallback)
-
com.toast.android.gamebase.Gamebase#addMapping(Activity, String, Map, GamebaseDataCallback)
-
com.toast.android.gamebase.Gamebase#addMapping(Activity, Map, GamebaseDataCallback)
-
com.toast.android.gamebase.base.GamebaseException
◆ from()
Factory method to create VO instance.
- Parameters
-
exception | Extracts the VO class instance from this exception. |
- Returns
- VO instance
◆ fromJson() [1/3]
static< T > T fromJson |
( |
@NonNull JSONObject |
jsonObject, |
|
|
Class< T > |
classOfT |
|
) |
| |
|
staticinherited |
◆ fromJson() [2/3]
static< T > T fromJson |
( |
@NonNull String |
json, |
|
|
Class< T > |
classOfT |
|
) |
| |
|
staticinherited |
◆ fromJson() [3/3]
static< T > T fromJson |
( |
@NonNull String |
json, |
|
|
Type |
type |
|
) |
| |
|
staticinherited |
◆ toJsonString()
◆ toPrettyJsonString()
String toPrettyJsonString |
( |
| ) |
|
|
inherited |
◆ toString()
◆ banType
There are two types of the banning.
"TEMPORARY", "PERMANENT".
◆ beginDate
Time when banning was started.
◆ csInfo
The URL of the customer center web page.
◆ csUrl
The email address of the customer center.
◆ endDate
Time when banning will be released.
◆ message
Banning message entered from the Gamebase console.
◆ userId