User

data class User(val id: String, val name: String, val cover: ImageHolder? = null, val subtitle: String? = null, val extras: Map<String, String> = emptyMap())

A data class representing a user

Constructors

Link copied to clipboard
constructor(id: String, name: String, cover: ImageHolder? = null, subtitle: String? = null, extras: Map<String, String> = emptyMap())

Properties

Link copied to clipboard
val cover: ImageHolder? = null

The cover image of the user

Link copied to clipboard

Any extra data you want to associate with the user

Link copied to clipboard
val id: String

The id of the user

Link copied to clipboard

The name of the user

Link copied to clipboard
val subtitle: String? = null

The subtitle of the user, used to display information under the name