DeviceUser

@Serializable
data class DeviceUser(val user: User, val current: Boolean = false, val onBoarded: Boolean = false, val creationTime: Long = System.currentTimeMillis(), val updateTime: Long = System.currentTimeMillis())

Represents the model of a device user.

Since

3.3

See also

Constructors

Link copied to clipboard
constructor(user: User, current: Boolean = false, onBoarded: Boolean = false, creationTime: Long = System.currentTimeMillis(), updateTime: Long = System.currentTimeMillis())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val creationTime: Long

The creation time of this user.

Link copied to clipboard
val current: Boolean = false

Whether a user is the current active user or not.

Link copied to clipboard
val email: String

The email address, it might be empty.

Link copied to clipboard
val familyName: String?
Link copied to clipboard
val givenName: String?
Link copied to clipboard
val id: String

The user id, it's the same as the user model saved at server side.

Link copied to clipboard
val name: String

If name property returned from server, then 'name' would be 'family name, first name', otherwise 'userName'.

Link copied to clipboard
val onBoarded: Boolean = false

Whether a user went through the complete onboarding process and ready to unlock the app with the passcode.

Link copied to clipboard
val secureStoreName: String

The secure store name of this user.

Link copied to clipboard
val secureStoreName2: String

The secure store name with the one way hash algorithm.

Link copied to clipboard
val updateTime: Long

The latest update time.

Link copied to clipboard
val user: User

Functions

Link copied to clipboard
open override fun toString(): String