Command class Null safety

Annotations

Constructors

Command({required String cmd, String? requestId, int? timestamp, bool? requireAuth, int? errorCode, String? errorMessage, bool replyToChannel = false, Map<String, dynamic> payload = const {}})
Command.fromJson(Map<String, dynamic> json)
factory

Properties

cmd String
read / write
errorCode int?
final
errorMessage String?
final
hasError bool
read-only
hashCode int
The hash code for this object.
read-onlyinherited
isAckRequired bool
read-only
isDeletedMessage bool
read-only
isDelivery bool
read-only
isError bool
read-only
isLogin bool
read-only
isMemberCountChange bool
read-only
isNewMessage bool
read-only
isReaction bool
read-only
isRead bool
read-only
isSessionExpired bool
read-only
isSystemEvent bool
read-only
isThread bool
read-only
isUpdatedMessage bool
read-only
isUpdatedPoll bool
read-only
isUserEvent bool
read-only
isVote bool
read-only
payload Map<String, dynamic>
read / write
replyToChannel bool
Retrieve whether the option includes reply to channel The Default value is false
read / write
requestId String?
read / write
requireAuth bool?
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
timestamp int?
final

Methods

encode() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

buildEndTyping(String channelUrl, int endAt) Command
buildEnterChannel(BaseChannel channel) Command
buildExitChannel(BaseChannel channel) Command
buildFileMessage({required String channelUrl, required FileMessageParams params, required String? requestId, List? thumbnails, bool? requireAuth}) Command
buildLOGIUpdateSessionKey(String? token) Command
buildMessageMACK(String channelUrl, int messageId) Command
buildPing() Command
buildRead(String channelUrl) Command
buildStartTyping(String channelUrl, int startAt) Command
buildUpdateFileMessage(String channelUrl, int messageId, FileMessageParams params) Command
buildUpdateMessageMetaArray(BaseMessage message, List<MessageMetaArray> metaArrays, MetaArrayUpdateMode updateMode, bool upsert) Command
buildUpdateUserMessage(String channelUrl, int messageId, UserMessageParams params) Command
buildUserMessage(String channelUrl, UserMessageParams params, String requestId) Command