# PushConfiguration

open class PushConfiguration : ValueObject

Parameter class for the initialization of the registerToken

#### Since

2017-02-06

#### See also

GamebaseToastPushable

## Constructors

PushConfiguration
Link copied to clipboard
constructor(enabled: Boolean, adAgree: Boolean, adAgreeNight: Boolean)
The constructor of PushConfiguration class.
constructor(enabled: Boolean, adAgree: Boolean, adAgreeNight: Boolean, displayLanguageCode: String)
The constructor of PushConfiguration class.

## Types

Builder
Link copied to clipboard
open class Builder

## Properties

adAgreement
Link copied to clipboard
open var adAgreement: Boolean
adAgreementNight
Link copied to clipboard
open var adAgreementNight: Boolean
displayLanguageCode
Link copied to clipboard
@Nullable
open var displayLanguageCode: String
pushEnabled
Link copied to clipboard
open var pushEnabled: Boolean
requestNotificationPermission
Link copied to clipboard
open var requestNotificationPermission: Boolean

## Functions

from
Link copied to clipboard
@Nullable
open fun from(@Nullable container: GamebaseDataContainer): PushConfiguration
@Nullable
open fun from(@Nullable jsonString: String): PushConfiguration
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
newBuilder
Link copied to clipboard
open fun newBuilder(): PushConfiguration.Builder
open fun newBuilder(enabled: Boolean, adAgree: Boolean, adAgreeNight: Boolean): PushConfiguration.Builder
The factory method to create an instance of the builder to build PushConfiguration.
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