Represents a message.
Properties |
---|
localId → String |
Methods |
---|
Edit a message. |
pinOrUnpin(bool pinOrUnpin) → result Pin/Unpin a message. |
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.typeLink(String text, {Map<dynamic, dynamic> customData}) |
---|
Create a new link 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. |
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. |
edit(String content) → result |
---|
Edit message's content. |
pinOrUnpin(bool pinOrUnpin) → result |
---|
Pin/Unpin a message. -true - pin message -false - unpin message |