Rate this page:

User

Class that represents user information. Voximplant users are created via the Voximplant control panel or HTTP API.

Methods

toString

Copy URL
fun toString(): 

String

Returns

  • type:

    String

Props

imId

Copy URL
val imId: 

Long

The IM user id that is used to identify users in events and specify in user-related methods.

Returns

  • type:

    Long

username

Copy URL
val username: 

String

The Voximplant username, for example username@appname.accname.

Returns

  • type:

    String

displayName

Copy URL
val displayName: 

String

The user's display name which is specified during user creation via the Voximplant control panel or HTTP API.

The display name is available to all users.

Returns

  • type:

    String

conversationUuidList

Copy URL
val conversationUuidList: 

List<String>?

The list of UUIDs of the conversations that the user currently belongs to. Can be null or empty.

Note that if this getter is called not for the current user, the result is null.

Returns

  • type:

    List<String>?

leaveConversationUuidList

Copy URL
val leaveConversationUuidList: 

List<String>?

The list of UUIDs for the conversations that:

  • the user belonged to, but currently is not participating in
  • are not removed

Can be null or empty.

Note that if this getter is called not for the current user, the result is null.

Returns

  • type:

    List<String>?

customData

Copy URL
val customData: 

Map<String, Any>?

The specified user's public custom data available to all users.

A custom data can be set via the Messenger.editUser method.

Returns

  • type:

    Map<String, Any>?

privateCustomData

Copy URL
val privateCustomData: 

Map<String, Any>?

The private custom data available only to the current user.

Note that if this getter is called not for the current user, the result is null.

Returns

  • type:

    Map<String, Any>?

notifications

Copy URL
val notifications: 

List<MessengerNotification>?

The list of messenger notifications that the current user is subscribed to. Can be null or empty.

Note that if this getter is called not for the current user, the result is null.

Returns

isDeleted

Copy URL
val isDeleted: 

Boolean

Whether the user is deleted.

Returns

  • type:

    Boolean