tock / ai.tock.bot.engine.user / UserPreferences

UserPreferences

data class UserPreferences (source)

User preferences.

Constructors

<init>

User preferences.

UserPreferences(firstName: String? = null, lastName: String? = null, email: String? = null, timezone: ZoneId = defaultZoneId, locale: Locale = defaultLocale, picture: String? = null, gender: String? = null, test: Boolean = false, initialLocale: Locale = locale)

Properties

email

Email of the user.

var email: String?

firstName

First name of the user.

var firstName: String?

gender

Gender of the user.

var gender: String?

initialLocale

The initial locale of the user

var initialLocale: Locale

lastName

Last name of the user.

var lastName: String?

locale

Locale of the user.

var locale: Locale

picture

Picture url of the user.

var picture: String?

test

Is it a test user?

var test: Boolean

timezone

Timezone of the user.

var timezone: ZoneId

Functions

fillWith

Fill the current UserPreferences with the specified UserPreferences.

fun fillWith(userPref: UserPreferences): Unit

refreshWith

Refresh the current UserPreferences with the specified UserPreferences. Only not null values are taken into account.

fun refreshWith(userPref: UserPreferences): Unit