Class DeviceUser

  • All Implemented Interfaces:

    @Serializable() 
    public final class DeviceUser
    
                        

    Represents the model of a device user.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class DeviceUser.Companion
    • Constructor Summary

      Constructors 
      Constructor Description
      DeviceUser(User user, Boolean current, Boolean onBoarded, Long creationTime, Long updateTime)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getId()
      final String getName()
      final String getEmail()
      final String getSecureStoreName()
      final String getFamilyName()
      final String getGivenName()
      final String getSecureStoreName2()
      final User getUser()
      final Boolean getCurrent() Whether a user is the current active user or not.
      final Boolean getOnBoarded() Whether a user went through the complete onboarding process and ready to unlock the app with the passcode.
      final Long getCreationTime() The creation time of this user.
      final Long getUpdateTime() The latest update time.
      String toString()
      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.
      final static String obfuscateName(String name) The default algorithm to obfuscate user name, only keep the first one or 2 characters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeviceUser

        DeviceUser(User user, Boolean current, Boolean onBoarded, Long creationTime, Long updateTime)
    • Method Detail

      • getId

         final String getId()
      • 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.

      • 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.