Package ai.tock.bot.engine.user
Class UserPreferences
-
- All Implemented Interfaces:
public final class UserPreferencesUser preferences.
-
-
Field Summary
Fields Modifier and Type Field Description private StringfirstNameprivate StringlastNameprivate Stringemailprivate ZoneIdtimezoneprivate Localelocaleprivate Stringpictureprivate Stringgenderprivate Booleantestprivate LocaleinitialLocaleprivate Stringusernameprivate StringphoneNumber
-
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 StringgetUsername()Full name or screen name of the user in the application. final UnitsetUsername(String username)Full name or screen name of the user in the application. final StringgetPhoneNumber()Phone number of the user of application in E.164 format : +33612345678. final UnitsetPhoneNumber(String phoneNumber)Phone number of the user of application in E.164 format : +33612345678. 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
-
getUsername
final String getUsername()
Full name or screen name of the user in the application.
-
setUsername
final Unit setUsername(String username)
Full name or screen name of the user in the application.
-
getPhoneNumber
final String getPhoneNumber()
Phone number of the user of application in E.164 format : +33612345678.
-
setPhoneNumber
final Unit setPhoneNumber(String phoneNumber)
Phone number of the user of application in E.164 format : +33612345678.
-
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.
-
-
-
-