Participant

interface Participant

Representation of a Conversation Participant object.

Types

Link copied to clipboard
enum Type
The participant's type.
Link copied to clipboard
enum UpdateReason
Indicates reason for participant info update.

Functions

Link copied to clipboard
abstract fun getAndSubscribeUser(listener: CallbackListener<User>)
Return subscribed user object for current participant
Link copied to clipboard
abstract fun getAttributes(): Attributes
Custom attributes associated with this participant.
Link copied to clipboard
abstract fun getConversation(): Conversation
Return conversation this participant belongs to.
Link copied to clipboard
abstract fun getDateCreated(): String
Get creation date of the participant as an ISO 8601 string.
Link copied to clipboard
abstract fun getDateCreatedAsDate(): Date
Get creation date of the participant.
Link copied to clipboard
abstract fun getDateUpdated(): String
Get update date of the participant as an ISO 8601 string.
Link copied to clipboard
abstract fun getDateUpdatedAsDate(): Date
Get update date of the participant.
Link copied to clipboard
abstract fun getIdentity(): String
Return user identity for current participant
Link copied to clipboard
abstract fun getLastReadMessageIndex(): Long
Return participant's last read message index for this conversation
Link copied to clipboard
abstract fun getLastReadTimestamp(): String
Return participant's last read message timestamp for this conversation
Link copied to clipboard
abstract fun getSid(): String
Returns unique identifier of a participant on a conversation.
Link copied to clipboard
abstract fun getType(): Participant.Type
Return Type of current participant
Link copied to clipboard
abstract fun remove(listener: StatusListener)
Remove this participant from conversation
Link copied to clipboard
abstract fun setAttributes(attributes: Attributes, listener: StatusListener)
Set attributes associated with this participant.