V2TimMessage class Models
V2TimMessageReceipt
Constructors
-
V2TimMessage({String? msgID, int? timestamp, int? progress, String? sender, String? nickName, String? friendRemark, String? faceUrl, String? nameCard, String? groupID, String? userID, int? status, required int elemType, V2TimTextElem? textElem, V2TimCustomElem? customElem, V2TimImageElem? imageElem, V2TimSoundElem? soundElem, V2TimVideoElem? videoElem, V2TimFileElem? fileElem, V2TimLocationElem? locationElem, V2TimFaceElem? faceElem, V2TimGroupTipsElem? groupTipsElem, V2TimMergerElem? mergerElem, String? localCustomData, int? localCustomInt, String? cloudCustomData, bool? isSelf, bool? isRead, bool? isPeerRead, int? priority, OfflinePushInfo? offlinePushInfo, List<
String> ? groupAtUserList, String? seq, int? random, bool? isExcludedFromUnreadCount, bool? isExcludedFromLastMessage, bool? isSupportMessageExtension, String? messageFromWeb, String? id, bool? needReadReceipt}) -
V2TimMessage.fromJson(Map<
String, dynamic> json)
Properties
- cloudCustomData ↔ String?
-
消息的云端自定义字段(string类型)
getter/setter pair
- customElem ↔ V2TimCustomElem?
-
文本消息
getter/setter pair
- elemType ↔ int
-
消息类型 文本消息 图片消息等
getter/setter pair
- faceElem ↔ V2TimFaceElem?
-
表情消息
getter/setter pair
- faceUrl ↔ String?
-
发送者头像
getter/setter pair
- fileElem ↔ V2TimFileElem?
-
文件消息
getter/setter pair
- friendRemark ↔ String?
-
消息发送者好友备注,只有当与消息发送者有好友关系,且给好友设置过备注,才会有值
getter/setter pair
-
groupAtUserList
↔ List<
String> ? -
群@消息@数组
getter/setter pair
- groupID ↔ String?
-
群ID,只有群消息才会有
getter/setter pair
- groupTipsElem ↔ V2TimGroupTipsElem?
-
群提示消息
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasRiskContent ↔ bool?
-
getter/setter pair
- id ↔ String?
-
消息id,仅在 createXXXMessage后sendMessage调用异步返回后有小
getter/setter pair
- imageElem ↔ V2TimImageElem?
-
文本消息
getter/setter pair
- isBroadcastMessage ↔ bool?
-
getter/setter pair
- isExcludedFromContentModeration ↔ bool?
-
getter/setter pair
- isExcludedFromLastMessage ↔ bool?
-
消息是否计入会话lastmessage
getter/setter pair
- isExcludedFromUnreadCount ↔ bool?
-
消息是否计入会话未读数
getter/setter pair
- isPeerRead ↔ bool?
-
消息是否接收方已读,仅c2c消息有效
getter/setter pair
- isRead ↔ bool?
-
消息是否自己已读
getter/setter pair
- isSelf ↔ bool?
-
是否是当前登录用户的消息
getter/setter pair
- isSupportMessageExtension ↔ bool?
-
消息是否支持消息扩展
getter/setter pair
- localCustomData ↔ String?
-
消息的本地自定义字段(string类型),只存在于本地,删除应用后丢失
getter/setter pair
- localCustomInt ↔ int?
-
消息的本地自定义字段(int 类型),只存在于本地,删除应用后丢失
getter/setter pair
- locationElem ↔ V2TimLocationElem?
-
位置消息
getter/setter pair
- mergerElem ↔ V2TimMergerElem?
-
合并消息
getter/setter pair
- messageFromWeb ↔ String?
-
来自web的消息,仅在flutter for web时有用
getter/setter pair
- msgID ↔ String?
-
消息ID
getter/setter pair
- nameCard ↔ String?
-
发送者备注
getter/setter pair
- needReadReceipt ↔ bool?
-
是否要群消息已读回执
getter/setter pair
- nickName ↔ String?
-
消息发送者昵称
getter/setter pair
- offlinePushInfo ↔ OfflinePushInfo?
-
离线推送相关配置
getter/setter pair
- priority ↔ int?
-
消息优先级
getter/setter pair
- progress ↔ int?
-
消息发送进度,只有多媒体消息才会有,其余消息为100
getter/setter pair
- random ↔ int?
-
合并消息
getter/setter pair
- revokeReason ↔ String?
-
getter/setter pair
- revokerInfo ↔ V2TimUserFullInfo?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sender ↔ String?
-
消息发送者
getter/setter pair
- seq ↔ String?
-
消息序列号
getter/setter pair
- soundElem ↔ V2TimSoundElem?
-
录音消息
getter/setter pair
- status ↔ int?
-
消息状态 发送中 成功 失败等
getter/setter pair
- textElem ↔ V2TimTextElem?
-
文本消息
getter/setter pair
- timestamp ↔ int?
-
消息时间戳
getter/setter pair
- userID ↔ String?
-
消息接受者用户ID
getter/setter pair
- videoElem ↔ V2TimVideoElem?
-
视频消息
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override