CubeDialog class

Inheritance

Constructors

CubeDialog(int? type, {String? dialogId, String? name, String? description, List<int>? occupantsIds, String? photo, List<String>? pinnedMessagesIds, List<int>? adminsIds, CubeDialogCustomData? customData, Map<String, String>? extensions})
CubeDialog.fromJson(Map<String, dynamic> json)

Properties

adminsIds List<int>?
getter/setter pair
createdAt DateTime?
getter/setter pairinherited
customData CubeDialogCustomData?
getter/setter pair
description String?
getter/setter pair
dialogId String?
getter/setter pair
extensions Map<String, String>?
The keys should be specified in the Connectycube admin panel first.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int?
getter/setter pairinherited
isEncrypted bool?
getter/setter pair
isMuted bool?
getter/setter pair
lastMessage String?
getter/setter pair
lastMessageDateSent int?
getter/setter pair
lastMessageId String?
getter/setter pair
lastMessageState MessageState?
Last sent message state. Will be 'null' if the last message is sent by another user (not you). Will be one of the MessageState.sent, MessageState.delivered, MessageState.read if last message is sent by you.
getter/setter pair
lastMessageUserId int?
getter/setter pair
name String?
getter/setter pair
occupantsCount int?
getter/setter pair
occupantsIds List<int>?
getter/setter pair
photo String?
getter/setter pair
pinnedMessagesIds List<String>?
getter/setter pair
roomJid String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type int?
getter/setter pair
unreadMessageCount int?
getter/setter pair
updatedAt DateTime?
getter/setter pairinherited
userId int?
getter/setter pair

Methods

checkInit() Future<AbstractChat>
deleteMessage(CubeMessage message) Future<void>
Deletes the message using chat connection. Opponent(s) will receive event about it to the listener:
deliverMessage(CubeMessage message) Future<void>
editMessage(CubeMessage message, bool isLast) Future<void>
Edits the message using chat connection. Opponent(s) will receive event about it to the listener:
getRecipientId() int
join() Future<CubeDialog>
leave() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readMessage(CubeMessage message) Future<void>
sendIsTypingStatus() → void
sendMessage(CubeMessage message) Future<CubeMessage>
sendStopTypingStatus() → void
sendText(String text) Future<void>
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
override

Operators

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