VIConversation class

Interface that may be used to manage a conversation.

Properties

createdTime int
The UNIX timestamp (seconds) that specifies the time of the conversation creation.
final
customData Map<String, dynamic>
A custom data, up to 5kb.
getter/setter pair
direct bool
A bool value that determines whether the conversation is direct.
final
hashCode int
The hash code for this object.
no setterinherited
lastSequence int
The sequence of the last event in the conversation.
final
lastUpdateTime int
The UNIX timestamp (seconds) that specifies the time when one of VIConversationEvent or VIMessageEvent was the last provoked event in this conversation.
final
participants List<VIConversationParticipant>
A list of participants alongside with their permissions.
final
publicJoin bool
A bool value that determines whether the conversation is public.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
The current conversation title.
getter/setter pair
uber bool
A bool value that determines whether the conversation is uber.
final
uuid String
An universally unique identifier (UUID) of this conversation.
final

Methods

addParticipants(List<VIConversationParticipant> participants) Future<VIConversationEvent>
Add new participants to the conversation.
editParticipants(List<VIConversationParticipant> participants) Future<VIConversationEvent>
Edit participants permissions. It's possible only if the current user can manage other participants (VIConversationParticipant.canManageParticipants is true).
markAsRead(int sequence) Future<VIConversationServiceEvent>
Mark the event with the specified sequence as read.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeParticipants(List<VIConversationParticipant> participants) Future<VIConversationEvent>
Remove participants from the conversation.
retransmitEvents(int from, int to) Future<VIRetransmitEvent>
Request events in the specified sequence range to be sent from the cloud to this client.
retransmitEventsFrom(int from, int count) Future<VIRetransmitEvent>
Request a number of events starting with the specified sequence to be sent from the cloud to this client.
retransmitEventsTo(int to, int count) Future<VIRetransmitEvent>
Request a number of events up to the specified sequence to be sent from the cloud to this client.
sendMessage({String? text, List<Map<String, Object>>? payload}) Future<VIMessageEvent>
Send a message to the conversation.
toString() String
A string representation of this object.
inherited
typing() Future<VIConversationServiceEvent>
Inform the cloud that the user is typing some text.
update() Future<VIConversationEvent>
Send conversation changes to the cloud. The sent changes are: title, public join flag and custom data.

Operators

operator ==(Object other) bool
The equality operator.
inherited