Gamebase SDK for Android  2.8.0
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

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< 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

◆ fromJson() [1/3]

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

◆ fromJson() [2/3]

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

◆ fromJson() [3/3]

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

◆ toJsonString()

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

◆ toPrettyJsonString()

String toPrettyJsonString ( )
inherited

◆ toString()

String toString ( )
inherited
Here is the call graph for this function:

Member Data Documentation

◆ adAgreement

boolean adAgreement

◆ adAgreementNight

boolean adAgreementNight

◆ displayLanguageCode

String displayLanguageCode

◆ pushEnabled

boolean pushEnabled