Suggestions

close search

StringeeMessage class

Represents a message.


Constructors


StringeeMessage.typeText(StringeeClient client, String text, {Map<dynamic, dynamic>? customData})

Create a new StringeeMessage type text.

StringeeMessage.typePhoto(StringeeClient client, String filePath, {String? thumbnail, double? ratio, Map<dynamic, dynamic>? customData})

Create a new StringeeMessage type photo.

StringeeMessage.typeVideo(StringeeClient client, String filePath, double duration, {String? thumbnail, double? ratio, Map<dynamic, dynamic>? customData})

Create a new StringeeMessage type video.

StringeeMessage.typeAudio(StringeeClient client, String filePath, double duration, {Map<dynamic, dynamic>? customData})

Create a new StringeeMessage type audio.

StringeeMessage.typeFile(StringeeClient client, String filePath, {String? fileName, int? fileLength, Map<dynamic, dynamic>? customData})

Create a new StringeeMessage type file.

StringeeMessage.typeLink(StringeeClient client, String text, {Map<dynamic, dynamic>? customData})

Create a new StringeeMessage type link.

StringeeMessage.typeFile(StringeeClient client, String filePath, {String? fileName, int? fileLength, Map<dynamic, dynamic>? customData})

Create a new StringeeMessage type file.

StringeeMessage.typeLocation(StringeeClient client, double latitude, double longitude, {Map<dynamic, dynamic>? customData})

Create a new StringeeMessage type location.

StringeeMessage.typeContact(StringeeClient client, String vcard, {Map<dynamic, dynamic>? customData})

Create a new StringeeMessage type contact.

StringeeMessage.typeSticker(StringeeClient client, String stickerCategory, String stickerName, {Map<dynamic, dynamic>? customData})

Create a new StringeeMessage type sticker.


Properties


idString?

It's the unique identification of the message on Stringee system.

localIdString?

It's the unique identification of the message on local database.

convIdString?

It's the unique identification of the conversation have this message on Stringee system.

convLocalIdString?

It's the unique identification of the conversation have this message on local database.

senderStringeeUser?

It's user send this message.

createdAtint?

It's the time create the message.

updateAtint?

It's the time update the message.

sequenceint?

It's sequence of the message.

stateMsgState?

It's status of the message.

typeMsgType?

It's type of the message.

textString?

It's content of the message.

deletedbool?

Whether the message is deleted:

thumbnailString?

It's thumbnail of the file in the photo/video message.

fileUrlString?

It's url of the file in the photo/video/audio/file message.

longitudedouble?

It's longitude of the location in the location message.

latitudedouble?

It's latitude of the location in the location message.

fileNameString?

It's name of the file in the file message.

fileLengthint?

It's size of the file in the file message.

durationdouble?

It's duration of the video/audio in the video/audio message.

ratiodouble?

It's ratio of the video/photo in the video/photo message.

vcardString?

It's the contact information of the contact message.

stickerCategoryString?

It's category of the sticker in the sticker message.

stickerNameString?

It's name of the sticker in the sticker message.

customDataMap<dynamic, dynamic>?

It's the custom data user send with the message.

notiContentMap<dynamic, dynamic>?

It's content of the notice in the notification message.


Methods


edit(String content)Map<dynamic, dynamic>

Edit message's content.

pinOrUnPin(bool pinOrUnPin)Map<dynamic, dynamic>

Pin/Unpin a message. -true - pin message. -false - unpin message.