Class DeviceUser
-
- All Implemented Interfaces:
@Serializable() public final class DeviceUserRepresents the model of a device user.
- Since:
3.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDeviceUser.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final Stringnameprivate final Stringemailprivate final StringsecureStoreNameprivate final StringfamilyNameprivate final StringgivenNameprivate final StringsecureStoreName2private final Useruserprivate final Booleancurrentprivate final BooleanonBoardedprivate final LongcreationTimeprivate final LongupdateTimepublic final static DeviceUser.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description DeviceUser(User user, Boolean current, Boolean onBoarded, Long creationTime, Long updateTime)
-
Method Summary
Modifier and Type Method Description final StringgetId()final StringgetName()final StringgetEmail()final StringgetSecureStoreName()final StringgetFamilyName()final StringgetGivenName()final StringgetSecureStoreName2()final UsergetUser()final BooleangetCurrent()Whether a user is the current active user or not. final BooleangetOnBoarded()Whether a user went through the complete onboarding process and ready to unlock the app with the passcode. final LonggetCreationTime()The creation time of this user. final LonggetUpdateTime()The latest update time. StringtoString()final static StringobfuscateEmail(String str)The default algorithm to obfuscate email, only keep the first one or two characters of the user name and only the first character of the domain name. final static StringobfuscateName(String name)The default algorithm to obfuscate user name, only keep the first one or 2 characters. -
-
Constructor Detail
-
DeviceUser
DeviceUser(User user, Boolean current, Boolean onBoarded, Long creationTime, Long updateTime)
-
-
Method Detail
-
getId
final String getId()
-
getName
final String getName()
-
getEmail
final String getEmail()
-
getSecureStoreName
final String getSecureStoreName()
-
getFamilyName
final String getFamilyName()
-
getGivenName
final String getGivenName()
-
getSecureStoreName2
final String getSecureStoreName2()
-
getCurrent
final Boolean getCurrent()
Whether a user is the current active user or not.
-
getOnBoarded
final Boolean getOnBoarded()
Whether a user went through the complete onboarding process and ready to unlock the app with the passcode.
-
getCreationTime
final Long getCreationTime()
The creation time of this user.
-
getUpdateTime
final Long getUpdateTime()
The latest update time.
-
toString
String toString()
-
obfuscateEmail
final static String obfuscateEmail(String str)
The default algorithm to obfuscate email, only keep the first one or two characters of the user name and only the first character of the domain name.
-
obfuscateName
final static String obfuscateName(String name)
The default algorithm to obfuscate user name, only keep the first one or 2 characters.
-
-
-
-