UserObject

data class UserObject(@Json(name = "banned") val banned: Boolean, @Json(name = "custom") val custom: Map<String, Any?>, @Json(name = "id") val id: String, @Json(name = "online") val online: Boolean, @Json(name = "role") val role: String, @Json(name = "ban_expires") val banExpires: OffsetDateTime? = null, @Json(name = "created_at") val createdAt: OffsetDateTime? = null, @Json(name = "deactivated_at") val deactivatedAt: OffsetDateTime? = null, @Json(name = "deleted_at") val deletedAt: OffsetDateTime? = null, @Json(name = "invisible") val invisible: Boolean? = null, @Json(name = "language") val language: String? = null, @Json(name = "last_active") val lastActive: OffsetDateTime? = null, @Json(name = "privacy_settings") val privacySettings: PrivacySettings? = null, @Json(name = "push_notifications") val pushNotifications: PushNotificationSettings? = null, @Json(name = "revoke_tokens_issued_before") val revokeTokensIssuedBefore: OffsetDateTime? = null, @Json(name = "teams") val teams: List<String>? = null, @Json(name = "updated_at") val updatedAt: OffsetDateTime? = null)

Represents chat user

Parameters

banned

Whether a user is banned or not

custom
id

Unique user identifier

online

Whether a user online or not

role

Determines the set of user permissions

banExpires

Expiration date of the ban

createdAt

Date/time of creation

deactivatedAt

Date of deactivation

deletedAt

Date/time of deletion

invisible
language

Preferred language of a user

lastActive

Date of last activity

privacySettings
pushNotifications
revokeTokensIssuedBefore

Revocation date for tokens

teams

List of teams user is a part of

updatedAt

Date/time of the last update

Constructors

Link copied to clipboard
constructor(@Json(name = "banned") banned: Boolean, @Json(name = "custom") custom: Map<String, Any?>, @Json(name = "id") id: String, @Json(name = "online") online: Boolean, @Json(name = "role") role: String, @Json(name = "ban_expires") banExpires: OffsetDateTime? = null, @Json(name = "created_at") createdAt: OffsetDateTime? = null, @Json(name = "deactivated_at") deactivatedAt: OffsetDateTime? = null, @Json(name = "deleted_at") deletedAt: OffsetDateTime? = null, @Json(name = "invisible") invisible: Boolean? = null, @Json(name = "language") language: String? = null, @Json(name = "last_active") lastActive: OffsetDateTime? = null, @Json(name = "privacy_settings") privacySettings: PrivacySettings? = null, @Json(name = "push_notifications") pushNotifications: PushNotificationSettings? = null, @Json(name = "revoke_tokens_issued_before") revokeTokensIssuedBefore: OffsetDateTime? = null, @Json(name = "teams") teams: List<String>? = null, @Json(name = "updated_at") updatedAt: OffsetDateTime? = null)

Properties

Link copied to clipboard
val banExpires: OffsetDateTime? = null
Link copied to clipboard
Link copied to clipboard
val createdAt: OffsetDateTime? = null
Link copied to clipboard
Link copied to clipboard
val deactivatedAt: OffsetDateTime? = null
Link copied to clipboard
val deletedAt: OffsetDateTime? = null
Link copied to clipboard
val id: String
Link copied to clipboard
val invisible: Boolean? = null
Link copied to clipboard
val language: String? = null
Link copied to clipboard
val lastActive: OffsetDateTime? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val revokeTokensIssuedBefore: OffsetDateTime? = null
Link copied to clipboard
Link copied to clipboard
val teams: List<String>? = null
Link copied to clipboard
val updatedAt: OffsetDateTime? = null