public class StringeeMessage
Represents a conversation message.
| Properties | |
|---|---|
String? |
idMessage id. |
String? |
localIdLocal message id. |
String? |
convIdConversation id. |
String? |
senderIdSender id. |
int? |
createdAtCreated timestamp. |
int? |
sequenceMessage sequence. |
MsgState? |
stateMessage delivery state. |
MsgType? |
typeMessage content type. |
String? |
textText content. |
String? |
thumbnailThumbnail path or URL. |
String? |
filePathLocal file path. |
String? |
fileUrlRemote file URL. |
double? |
latitudeLocation latitude. |
double? |
longitudeLocation longitude. |
String? |
fileNameFile name. |
int? |
fileLengthFile length. |
double? |
durationAudio or video duration. |
double? |
ratioImage or video ratio. |
String? |
vcardContact vCard. |
String? |
stickerCategorySticker category. |
String? |
stickerNameSticker name. |
Map<dynamic, dynamic>? |
customDataCustom message data. |
Map<dynamic, dynamic>? |
notiContentNotification message content. |
| Public methods | |
|---|---|
Future<Map<dynamic, dynamic>> |
edit(String content)Edits this message text content. |
Future<Map<dynamic, dynamic>> |
pinOrUnPin(bool pinOrUnPin)Pins or unpins this message. |
StringeeMessage.typeText(StringeeClient client, String text, {Map<dynamic, dynamic>? customData}) |
|---|
| Creates a text message. |
StringeeMessage.typePhoto(StringeeClient client, String filePath, {String? thumbnail, double? ratio, Map<dynamic, dynamic>? customData}) |
|---|
| Creates a photo message. |
StringeeMessage.typeVideo(StringeeClient client, String filePath, double duration, {String? thumbnail, double? ratio, Map<dynamic, dynamic>? customData}) |
|---|
| Creates a video message. |
StringeeMessage.typeAudio(StringeeClient client, String filePath, double duration, {Map<dynamic, dynamic>? customData}) |
|---|
| Creates an audio message. |
StringeeMessage.typeFile(StringeeClient client, String filePath, {String? fileName, int? fileLength, Map<dynamic, dynamic>? customData}) |
|---|
| Creates a file message. |
StringeeMessage.typeLink(StringeeClient client, String text, {Map<dynamic, dynamic>? customData}) |
|---|
| Creates a link message. |
StringeeMessage.typeLocation(StringeeClient client, double latitude, double longitude, {Map<dynamic, dynamic>? customData}) |
|---|
| Creates a location message. |
StringeeMessage.typeContact(StringeeClient client, String vcard, {Map<dynamic, dynamic>? customData}) |
|---|
| Creates a contact message. |
StringeeMessage.typeSticker(StringeeClient client, String stickerCategory, String stickerName, {Map<dynamic, dynamic>? customData}) |
|---|
| Creates a sticker message. |
id |
|---|
| Message id. |
localId |
|---|
| Local message id. |
convId |
|---|
| Conversation id. |
senderId |
|---|
| Sender id. |
createdAt |
|---|
| Created timestamp. |
sequence |
|---|
| Message sequence. |
state |
|---|
| Message delivery state. |
type |
|---|
| Message content type. |
text |
|---|
| Text content. |
thumbnail |
|---|
| Thumbnail path or URL. |
filePath |
|---|
| Local file path. |
fileUrl |
|---|
| Remote file URL. |
latitude |
|---|
| Location latitude. |
longitude |
|---|
| Location longitude. |
fileName |
|---|
| File name. |
fileLength |
|---|
| File length. |
duration |
|---|
| Audio or video duration. |
ratio |
|---|
| Image or video ratio. |
vcard |
|---|
| Contact vCard. |
stickerCategory |
|---|
| Sticker category. |
stickerName |
|---|
| Sticker name. |
customData |
|---|
| Custom message data. |
notiContent |
|---|
| Notification message content. |
edit(String content) |
|---|
| Edits this message text content. |
pinOrUnPin(bool pinOrUnPin) |
|---|
| Pins or unpins this message. |