Sudo

constructor(title: String?, firstName: String?, lastName: String?, label: String?, notes: String?, avatar: Uri?)

Instantiates a Sudo.

Parameters

title

title.

firstName

first name.

lastName

last name.

label

label.

notes

notes.

avatar

avatar image URI.


constructor(id: String? = null, version: Int = 1, createdAt: Date = Date(0), updatedAt: Date = Date(0), claims: MutableMap<String, Claim> = mutableMapOf(), metadata: MutableMap<String, String> = mutableMapOf())

Parameters

id

globally unique identifier of this Sudo. This is generated and set by Sudo service.

version

current version of this Sudo.

createdAt

date and time at which this Sudo was created.

updatedAt

date and time at which this Sudo was last updated.

claims

claims.

metadata

arbitrary metadata set by the backend..