MesiboMessage class
- Inheritance
-
- Object
- MesiboMessageFlutter
- MesiboMessage
Constructors
- MesiboMessage({required int mid, required int refid, required int rsid, required int type, required int flags, required int status, required int expiry, required int origin, String? title, String? subtitle, String? message, String? filePath, required int fileType, required int fileSize, required double latitude, required double longitude, required MesiboProfileFlutter? profile, required MesiboProfileFlutter? groupProfile, MesiboDateTimeFlutter? ts, String? fileName, String? mimeType, bool? fileReady, bool? fileTransferInProgress, bool? fileTransferRequired, int? fileTransferProgress})
Properties
- expiry ↔ int
-
getter/setter pairinherited
- fileName ↔ String?
-
getter/setter pairinherited
- filePath ↔ String?
-
getter/setter pairinherited
- fileReady ↔ bool?
-
getter/setter pairinherited
- fileSize ↔ int
-
getter/setter pairinherited
- fileTransferInProgress ↔ bool?
-
getter/setter pairinherited
- fileTransferProgress ↔ int?
-
getter/setter pairinherited
- fileTransferRequired ↔ bool?
-
getter/setter pairinherited
- fileType ↔ int
-
getter/setter pairinherited
- flags ↔ int
-
getter/setter pairinherited
-
getter/setter pairinherited
- groupProfile ↔ MesiboProfileFlutter?
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- latitude ↔ double
-
getter/setter pairinherited
- longitude ↔ double
-
getter/setter pairinherited
- message ↔ String?
-
getter/setter pairinherited
- mid ↔ int
-
getter/setter pairinherited
- mimeType ↔ String?
-
getter/setter pairinherited
- origin ↔ int
-
getter/setter pairinherited
- profile ↔ MesiboProfileFlutter?
-
getter/setter pairinherited
- refid ↔ int
-
getter/setter pairinherited
- rsid ↔ int
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ int
-
getter/setter pairinherited
- subtitle ↔ String?
-
getter/setter pairinherited
- title ↔ String?
-
getter/setter pairinherited
- ts ↔ MesiboDateTimeFlutter?
-
getter/setter pairinherited
- type ↔ int
-
getter/setter pairinherited
Methods
-
delete(
) → Future< bool> - deletes the message on this device
-
enableBroadcast(
bool enable) → void -
enableCustom(
bool enable) → void -
enableDeliveryReceipt(
bool enable) → void -
enableModify(
bool enable) → void -
enableReadReceipt(
bool enable) → void -
enableTransient(
bool enable) → void -
encode(
) → Object -
inherited
-
forward(
MesiboProfile profile) → Future< int> - forwards the message to another user or group, and sends it
-
getCallDuration(
) → int -
getFileName(
) → String? -
getFilePath(
) → String? -
getFileSize(
) → int -
getFileTransferProgress(
) → int - 0 to 100 while transferring; Mesibo_onMessageUpdate is called as it changes
-
getInReplyTo(
) → int -
getMimeType(
) → String? -
getReadSession(
) → MesiboReadSession? -
getTimestamp(
) → MesiboDateTime -
hasFile(
) → bool -
isAudio(
) → bool -
isCall(
) → bool -
isCustom(
) → bool -
isDate(
) → bool -
isDbMessage(
) → bool -
isDbPendingMessage(
) → bool -
isDbSummaryMessage(
) → bool -
isDeleted(
) → bool -
isDelivered(
) → bool -
isDocument(
) → bool -
isEndToEndEncrypted(
) → bool -
isEndToEndEncryptionStatus(
) → bool -
isFailed(
) → bool -
isFileReady(
) → bool - the file is on the device (getFilePath()), downloaded or sent from it
-
isFileTransferFailed(
) → bool -
isFileTransferInProgress(
) → bool -
isFileTransferRequired(
) → bool - the file needs a download (received) or an upload (failed to send): startFileTransfer()
-
isForwarded(
) → bool -
isGroupMessage(
) → bool -
isHeader(
) → bool -
isImage(
) → bool -
isIncoming(
) → bool -
isIncomingCall(
) → bool -
isInOutbox(
) → bool -
isInvisible(
) → bool -
isLastMessage(
) → bool -
isMessage(
) → bool -
isMissedCall(
) → bool -
isModified(
) → bool -
isOutgoing(
) → bool -
isOutgoingCall(
) → bool -
isPendingMessage(
) → bool -
isPlainMessage(
) → bool -
isPstnCall(
) → bool -
isReadByPeer(
) → bool -
isReadByUs(
) → bool -
isRealtimeMessage(
) → bool -
isReply(
) → bool -
isRichMessage(
) → bool -
isSavedMessage(
) → bool -
isSent(
) → bool -
isUnread(
) → bool -
isVideo(
) → bool -
isVideoCall(
) → bool -
isVoiceCall(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recall(
) → Future< bool> - deletes the message for the recipients (a sent message, within the retraction interval)
-
resend(
) → Future< bool> - sends a failed message again
-
send(
) → void -
sendUpdate(
) → Future< int> - sends the changed title, message or footer of a sent message (an edit)
-
setInReplyTo(
int messageid) → void -
setInReplyToMessage(
MesiboMessage message) → void -
startFileTransfer(
{int priority = 0}) → Future< bool> - downloads or uploads the file; progress comes through Mesibo_onMessageUpdate
-
stopFileTransfer(
) → Future< bool> -
toString(
) → String -
A string representation of this object.
inherited
-
wipe(
) → Future< bool> - removes the content of the message on this device, keeping a "deleted" placeholder
-
wipeAndRecall(
) → Future< bool> - deletes the message for everyone: wipe() and recall()
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
objMap
→ Map<
int, MesiboMessage> -
final
Static Methods
-
createInstance(
List< Object?> result, {required int mid, required int refid, required int rsid, required int type, required int flags, required int status, required int expiry, required int origin, String? title, String? subtitle, String? message, String? filePath, required int fileType, required int fileSize, required double latitude, required double longitude, MesiboProfileFlutter? profile, MesiboProfileFlutter? groupProfile, MesiboDateTimeFlutter? ts, String? fileName, String? mimeType, bool? fileReady, bool? fileTransferInProgress, bool? fileTransferRequired, int? fileTransferProgress}) → MesiboMessage
Constants
- CLIENT_MSGFLAG_DELETED → const int
- CLIENT_MSGFLAG_FILEFAILED → const int
- CLIENT_MSGFLAG_FILETRANSFERRED → const int
- CLIENT_MSGFLAG_SAVEONLY → const int
- CLIENT_MSGFLAG_WIPED → const int
- CM_MSGSTATUS_DATETIME → const int
- MESIBO_FILETYPE_AUDIO → const int
- MESIBO_FILETYPE_AUTO → const int
- MESIBO_FILETYPE_IMAGE → const int
- MESIBO_FILETYPE_OTHER → const int
- MESIBO_FILETYPE_VIDEO → const int
- MESIBO_FLAG_BROADCAST → const int
- MESIBO_FLAG_DELIVERYRECEIPT → const int
- MESIBO_FLAG_DONTSEND → const int
- MESIBO_FLAG_ENCRYPTED → const int
- MESIBO_FLAG_EORS → const int
- MESIBO_FLAG_FILEFAILED → const int
- MESIBO_FLAG_FILETRANSFERRED → const int
- MESIBO_FLAG_FORWARDED → const int
- MESIBO_FLAG_LASTMESSAGE → const int
- MESIBO_FLAG_MODIFY → const int
- MESIBO_FLAG_NONBLOCKING → const int
- MESIBO_FLAG_PRESENCE → const int
- MESIBO_FLAG_READRECEIPT → const int
- MESIBO_FLAG_SAVECUSTOM → const int
- MESIBO_FLAG_TLV → const int
- MESIBO_FLAG_TRANSIENT → const int
- MESIBO_MSGSTATUS_BLOCKED → const int
- MESIBO_MSGSTATUS_CALLINCOMING → const int
- MESIBO_MSGSTATUS_CALLMISSED → const int
- MESIBO_MSGSTATUS_CALLOUTGOING → const int
- MESIBO_MSGSTATUS_CUSTOM → const int
- MESIBO_MSGSTATUS_DATETIME → const int
- MESIBO_MSGSTATUS_DELIVERED → const int
- MESIBO_MSGSTATUS_E2E → const int
- MESIBO_MSGSTATUS_EXPIRED → const int
- MESIBO_MSGSTATUS_FAIL → const int
- MESIBO_MSGSTATUS_GROUPPAUSED → const int
- MESIBO_MSGSTATUS_HEADER → const int
- MESIBO_MSGSTATUS_INBOXFULL → const int
- MESIBO_MSGSTATUS_INVALIDDEST → const int
- MESIBO_MSGSTATUS_INVISIBLE → const int
- MESIBO_MSGSTATUS_NOTMEMBER → const int
- MESIBO_MSGSTATUS_OUTBOX → const int
- MESIBO_MSGSTATUS_READ → const int
- MESIBO_MSGSTATUS_RECEIVEDNEW → const int
- MESIBO_MSGSTATUS_RECEIVEDREAD → const int
- MESIBO_MSGSTATUS_SENT → const int
- MESIBO_MSGSTATUS_TIMESTAMP → const int
- MESIBO_MSGSTATUS_USEROFFLINE → const int
- MESIBO_ORIGIN_DBMESSAGE → const int
- MESIBO_ORIGIN_DBSUMMARY → const int
- MESIBO_ORIGIN_PENDING → const int
- MESIBO_ORIGIN_REALTIME → const int
- MESIBO_RESULT_AUTHFAIL → const int
- MESIBO_RESULT_BADREQ → const int
- MESIBO_RESULT_BUFFERFULL → const int
- MESIBO_RESULT_CONNECTFAIL → const int
- MESIBO_RESULT_DENIED → const int
- MESIBO_RESULT_DISCONNECTED → const int
- MESIBO_RESULT_E2EERROR → const int
- MESIBO_RESULT_FAIL → const int
- MESIBO_RESULT_GENERROR → const int
- MESIBO_RESULT_INBOXFULL → const int
- MESIBO_RESULT_NOSUCHERROR → const int
- MESIBO_RESULT_OK → const int
- MESIBO_RESULT_OVERCAPACITY → const int
- MESIBO_RESULT_REQINPROGRESS → const int
- MESIBO_RESULT_RETRYLATER → const int
- MESIBO_RESULT_TIMEOUT → const int
- MESIBO_STATUS_ACTIVITY → const int
- MESIBO_STATUS_AUTHFAIL → const int
- MESIBO_STATUS_CONNECTFAILURE → const int
- MESIBO_STATUS_CONNECTING → const int
- MESIBO_STATUS_MANDUPDATE → const int
- MESIBO_STATUS_NONETWORK → const int
- MESIBO_STATUS_OFFLINE → const int
- MESIBO_STATUS_ONLINE → const int
- MESIBO_STATUS_ONPREMISEERROR → const int
- MESIBO_STATUS_SHUTDOWN → const int
- MESIBO_STATUS_SIGNOUT → const int
- MESIBO_STATUS_STOPPED → const int
- MESIBO_STATUS_SUSPEND → const int
- MESIBO_STATUS_UNKNOWN → const int
- MESIBO_STATUS_UPDATE → const int