Participant

interface Participant

Representation of a Conversation Participant object.

Types

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

Functions

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