Suggestions

close search

StringeeMessage class

Represents a message.


Summary


Constructor  

Text message

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

Photo message

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

Video message

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

Audio message

StringeeMessage.typeAudio(String filePath, int duration, {Map<dynamic, dynamic> customData})

File message

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

Link message

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

Location message

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

Contact message

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

Sticker message

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

id → String

localId → String

convId → String

senderId → String

createdAt → int

sequence → int

state → MsgState

type → MsgType

text → String

thumbnail → String

filePath → String

fileUrl → String

latitude → double

longitude → double

fileName → String

fileLength → int

duration → int

ratio → double

vcard → String

stickerCategory → String

stickerName → String

customData → Map<dynamic, dynamic>

notiContent → Map<dynamic, dynamic>

Methods

edit(String content) → result

Edit a message.

pinOrUnpin(bool pinOrUnpin) → result

Pin/Unpin a message.

Constructors


StringeeMessage.typeText( String text, { Map<dynamic, dynamic> customData})
Create a new text message.
StringeeMessage.typePhoto(String filePath, {String thumbnail, double ratio, Map<dynamic, dynamic> customData})
Create a photo text message.
StringeeMessage.typeVideo( String filePath, int duration, { String thumbnail, double ratio, Map<dynamic, dynamic> customData})
Create a new video message.
StringeeMessage.typeAudio(String filePath, int duration, {Map<dynamic, dynamic> customData})
Create a new audio message.
StringeeMessage.typeFile(String filePath, {String fileName, int fileLength, Map<dynamic, dynamic> customData})
Create a new file message.
StringeeMessage.typeLocation(double latitude, double longitude, {Map<dynamic, dynamic> customData})
Create a new location message.
StringeeMessage.typeContact(String vcard, {Map<dynamic, dynamic> customData})
Create a new contact message.
StringeeMessage.typeSticker(String stickerCategory, String stickerName, {Map<dynamic, dynamic> customData})
Create a new sticker message.

Properties


id → String
It's the unique identification of the message on Stringee system.
localId → String
It's the unique identification of the message on local database.
convId → String
It's conversation's id have this message.
senderId → String
It's user's id send this message.
createdAt → int
It's time create the message.
sequence → int
It's sequence of message.
state → MsgState
It's status of message.
type → MsgType
It's type of message.
text → String
It's content of message.
thumbnail → String
It's thumbnail of file in photo/video message.
filePath → String
It's path url in local database of file in photo/video/audio/file message.
fileUrl → String
It's url of file in photo/video/audio/file message.
latitude → double
It's latitude of location in location message.
longitude → double
It's longitude of location in location message.
fileName → String
It's name of file in file message.
fileLength → int
It's size of file in file message.
duration → int
It's duration of video/audio in video/audio message.
ratio → double
It's ratio of video/photo in video/photo message.
vcard → String
It's contact information of contact message.
stickerCategory → String
It's category of sticker in sticker message.
stickerName → String
It's name of sticker in sticker message.
customData → Map<dynamic, dynamic>
It's custom data user send with message.
notiContent → Map<dynamic, dynamic>
It's content of the notice in notification message.

Methods


edit(String content) → result
Edit message's content.
pinOrUnpin(bool pinOrUnpin) → result
Pin/Unpin a message.
-true - pin message
-false - unpin message