Package ai.tock.bot.engine.user
Class UserPreferences
-
- All Implemented Interfaces:
public final class UserPreferencesUser preferences.
-
-
Method Summary
Modifier and Type Method Description final StringgetFirstName()First name of the user. final UnitsetFirstName(String firstName)First name of the user. final StringgetLastName()Last name of the user. final UnitsetLastName(String lastName)Last name of the user. final StringgetEmail()Email of the user. final UnitsetEmail(String email)Email of the user. final ZoneIdgetTimezone()Timezone of the user. final UnitsetTimezone(ZoneId timezone)Timezone of the user. final LocalegetLocale()Locale of the user. final UnitsetLocale(Locale locale)Locale of the user. final StringgetPicture()Picture url of the user. final UnitsetPicture(String picture)Picture url of the user. final StringgetGender()Gender of the user. final UnitsetGender(String gender)Gender of the user. final BooleangetTest()Is it a test user? final UnitsetTest(Boolean test)Is it a test user? final LocalegetInitialLocale()The initial locale of the user final UnitsetInitialLocale(Locale initialLocale)The initial locale of the user final UnitfillWith(UserPreferences userPref)Fill the current UserPreferences with the specified UserPreferences. final UnitrefreshWith(UserPreferences userPref)Refresh the current UserPreferences with the specified UserPreferences. -
-
Method Detail
-
getFirstName
final String getFirstName()
First name of the user.
-
setFirstName
final Unit setFirstName(String firstName)
First name of the user.
-
getLastName
final String getLastName()
Last name of the user.
-
setLastName
final Unit setLastName(String lastName)
Last name of the user.
-
getTimezone
final ZoneId getTimezone()
Timezone of the user.
-
setTimezone
final Unit setTimezone(ZoneId timezone)
Timezone of the user.
-
getPicture
final String getPicture()
Picture url of the user.
-
setPicture
final Unit setPicture(String picture)
Picture url of the user.
-
getInitialLocale
final Locale getInitialLocale()
The initial locale of the user
-
setInitialLocale
final Unit setInitialLocale(Locale initialLocale)
The initial locale of the user
-
fillWith
final Unit fillWith(UserPreferences userPref)
Fill the current UserPreferences with the specified UserPreferences.
-
refreshWith
final Unit refreshWith(UserPreferences userPref)
Refresh the current UserPreferences with the specified UserPreferences. Only not null values are taken into account.
-
-
-
-