Gamebase SDK for Android  2.21.1
Toast Gamebase Platform
PushConfiguration Class Reference

Parameter class for the initialization of the Pushable#registerPush(Map, Pushable.PushCallback). More...

Inheritance diagram for PushConfiguration:
Inheritance graph
Collaboration diagram for PushConfiguration:
Collaboration graph

Classes

class  Builder
 

Public Member Functions

 PushConfiguration (final boolean enabled, final boolean adAgree, final boolean adAgreeNight)
 
 PushConfiguration (final boolean enabled, final boolean adAgree, final boolean adAgreeNight, final String displayLanguageCode)
 
String toJsonString ()
 
String toPrettyJsonString ()
 
String toString ()
 

Static Public Member Functions

static Builder newBuilder ()
 The factory method to create an instance of the builder to build PushConfiguration. More...
 
static Builder newBuilder (final boolean enabled, final boolean adAgree, final boolean adAgreeNight)
 The factory method to create an instance of the builder to build PushConfiguration. More...
 
static PushConfiguration from (@Nullable GamebaseDataContainer container)
 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)
 

Public Attributes

boolean pushEnabled
 
boolean adAgreement
 
boolean adAgreementNight
 
String displayLanguageCode
 

Detailed Description

Parameter class for the initialization of the Pushable#registerPush(Map, Pushable.PushCallback).

See also
Pushable#registerPush(Map, Pushable.PushCallback)
Since
2017-02-06

Constructor & Destructor Documentation

◆ PushConfiguration() [1/2]

PushConfiguration ( final boolean  enabled,
final boolean  adAgree,
final boolean  adAgreeNight 
)

◆ PushConfiguration() [2/2]

PushConfiguration ( final boolean  enabled,
final boolean  adAgree,
final boolean  adAgreeNight,
final String  displayLanguageCode 
)

Member Function Documentation

◆ from()

static PushConfiguration from ( @Nullable GamebaseDataContainer  container)
static

Factory method to create VO instance.

Parameters
containerExtracts the VO class instance from this data container.
Returns
VO instance
Since
Added 2.20.0

◆ fromJson() [1/3]

static <T> T fromJson ( @NonNull JSONObject  jsonObject,
Class< T >  classOfT 
)
staticinherited
Here is the call graph for this function:

◆ fromJson() [2/3]

static <T> T fromJson ( @NonNull String  json,
Class< T >  classOfT 
)
staticinherited
Here is the caller graph for this function:

◆ fromJson() [3/3]

static <T> T fromJson ( @NonNull String  json,
Type  type 
)
staticinherited

◆ newBuilder() [1/2]

static Builder newBuilder ( )
static

The factory method to create an instance of the builder to build PushConfiguration.

Returns
an instance of the builder to build PushConfiguration.
Since
Added 2.15.0.

◆ newBuilder() [2/2]

static Builder newBuilder ( final boolean  enabled,
final boolean  adAgree,
final boolean  adAgreeNight 
)
static

The factory method to create an instance of the builder to build PushConfiguration.

Parameters
enabledEnable push notification or not
adAgreeEnable advertisement push notification of day or not
adAgreeNightEnable advertisement push notification of night or not
Returns
an instance of the builder to build PushConfiguration.
Since
Added 2.20.0.

◆ toJsonString()

String toJsonString ( )
inherited
Here is the caller graph for this function:

◆ toPrettyJsonString()

String toPrettyJsonString ( )
inherited

◆ toString()

String toString ( )
inherited

Reimplemented in TransferAccountRenewConfiguration.

Here is the call graph for this function:

Member Data Documentation

◆ adAgreement

boolean adAgreement

◆ adAgreementNight

boolean adAgreementNight

◆ displayLanguageCode

String displayLanguageCode

◆ pushEnabled

boolean pushEnabled