data class UserEntity
The UserEntity, id is a required field All other fields are optional and can be null
You can convert a User object from the low level client to a UserEntity like this val userEntity = UserEntity(user) and back: userEntity.toUser()
<init> |
create a userEntity from a user object UserEntity(user: User)
The UserEntity, id is a required field All other fields are optional and can be null UserEntity(id: String) |
banned |
if the current user id banned var banned: Boolean |
createdAt |
when the user was created var createdAt: Date? |
extraData |
all the custom data provided for this user var extraData: MutableMap<String, Any> |
id |
var id: String |
invisible |
only provided for the current user, invisible marks the user as offline for other users var invisible: Boolean |
lastActive |
last active date var lastActive: Date? |
mutes |
only provided for the current user, list of users you've muted var mutes: List<String> |
originalId |
used for storing the current user var originalId: String |
role |
the user's role var role: String |
updatedAt |
when the user was updated var updatedAt: Date? |
toUser |
converts a user entity into a user fun toUser(): User |