VIConversationParticipant class
Class that represents a participant of the conversation.
In order to apply changes made by setters, you have to call one of the following methods:
- VIMessenger.createConversation
- VIConversation.addParticipants
- VIConversation.editParticipants The default permissions for all participants are: write / edit / remove their own messages.
The creator of any conversation by default:
- is the owner (ConversationParticipant.isOwner() is true)
- can edit / remove other participant's messages
- can manage other participants
Constructors
Properties
- canEditAllMessages ↔ bool
-
A bool value that determines whether the conversation participant can edit messages other than its own.
getter/setter pair
- canEditMessages ↔ bool
-
A bool value that determines whether the conversation participant can edit its own messages.
Default is true
getter/setter pair
- canManageParticipants ↔ bool
-
A bool value that determines whether the conversation participant can manage other participants in the conversation:
getter/setter pair
- canRemoveAllMessages ↔ bool
-
A bool value that determines whether the conversation participant can remove messages other than its own.
getter/setter pair
- canRemoveMessages ↔ bool
-
A bool value that determines whether the conversation participant can remove its own messages.
Default is true
getter/setter pair
- canWrite ↔ bool
-
A bool value that determines whether the conversation participant can send messages to the conversation.
Default is true
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- imUserId → int
-
The IM user id.
final
- isOwner ↔ bool
-
A bool value that determines whether the conversation participant is an owner.
There could be more than one owner in the conversation.
If true, the participant can edit the conversation.
If true and canManageParticipants is true, the participant can manage other owners.
Note that a value change doesn't apply changes by itself; there are appropriate methods for applying:
getter/setter pair
- lastReadSequence → int
-
Sequence of the event that was last marked as read or 0 if the participant didn't mark events as read.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited