Class Message
Inherited Members
Namespace: com.tencent.imsdk.unity.types
Assembly: cs.temp.dll.dll
Syntax
public class Message : ExtraData
Fields
message_client_time
Declaration
public ulong? message_client_time
Field Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | 读写(选填), 客户端时间 |
message_cloud_custom_str
Declaration
public string message_cloud_custom_str
Field Value
Type | Description |
---|---|
System.String | 读写(选填), 消息自定义数据(云端保存,会发送到对端,程序卸载重装后还能拉取到) |
message_conv_id
Declaration
public string message_conv_id
Field Value
Type | Description |
---|---|
System.String | 读写(选填), 消息所属会话ID |
message_conv_type
Declaration
public TIMConvType? message_conv_type
Field Value
Type | Description |
---|---|
System.Nullable<TIMConvType> | 读写(选填), 消息所属会话类型 |
message_custom_int
Declaration
public int? message_custom_int
Field Value
Type | Description |
---|---|
System.Nullable<System.Int32> | 读写(选填), 自定义整数值字段(本地保存,不会发送到对端,程序卸载重装后失效) |
message_custom_str
Declaration
public string message_custom_str
Field Value
Type | Description |
---|---|
System.String | 读写(选填), 自定义数据字段(本地保存,不会发送到对端,程序卸载重装后失效) |
message_elem_array
Declaration
public List<Elem> message_elem_array
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<Elem> | 读写(必填), 消息内元素列表 |
message_excluded_from_last_message
Declaration
public bool message_excluded_from_last_message
Field Value
Type | Description |
---|---|
System.Boolean | 读写 是否作为会话的 lasgMessage,true - 不作为,false - 作为 |
message_group_at_user_array
Declaration
public List<string> message_group_at_user_array
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | 读写(选填), 群消息中被 @ 的用户 UserID 列表(即该消息都 @ 了哪些人),如果需要 @ALL ,请传入 kImSDK_MesssageAtALL 字段 |
message_group_receipt_read_count
Declaration
public int? message_group_receipt_read_count
Field Value
Type | Description |
---|---|
System.Nullable<System.Int32> | 只读, 注意:这个字段是内部字段,不推荐使用,推荐调用 TIMMsgGetMessageReadReceipts 获取群消息已读回执 |
message_group_receipt_unread_count
Declaration
public int? message_group_receipt_unread_count
Field Value
Type | Description |
---|---|
System.Nullable<System.Int32> | 只读, 注意:这个字段是内部字段,不推荐使用,推荐调用 TIMMsgGetMessageReadReceipts 获取群消息已读回执 |
message_has_sent_receipt
Declaration
public bool? message_has_sent_receipt
Field Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | 只读, 是否已经发送了已读回执(只有Group 消息有效) |
message_is_excluded_from_unread_count
Declaration
public bool? message_is_excluded_from_unread_count
Field Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | 读写(选填), 消息是否不计入未读计数:默认为 NO,表明需要计入未读计数,设置为 YES,表明不需要计入未读计数 |
message_is_forward_message
Declaration
public bool? message_is_forward_message
Field Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | 读写(选填), 是否是转发消息 |
message_is_from_self
Declaration
public bool? message_is_from_self
Field Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | 读写(选填), 消息是否来自自己 |
message_is_online_msg
Declaration
public bool? message_is_online_msg
Field Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | 读写(选填), 消息是否是在线消息,false表示普通消息,true表示阅后即焚消息,默认为false |
message_is_peer_read
Declaration
public bool? message_is_peer_read
Field Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | 只读, 消息是否被会话对方已读 |
message_is_read
Declaration
public bool? message_is_read
Field Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | 读写(选填), 消息是否已读 |
message_msg_id
Declaration
public string message_msg_id
Field Value
Type | Description |
---|---|
System.String | 只读, 消息的唯一标识 |
message_need_read_receipt
Declaration
public bool? message_need_read_receipt
Field Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | 读写(选填), 消息是否需要已读回执(6.1 以上版本有效,需要您购买旗舰版套餐),群消息在使用该功能之前,需要先到 IM 控制台设置已读回执支持的群类型 |
message_offlie_push_config
Declaration
public OfflinePushConfig message_offlie_push_config
Field Value
Type | Description |
---|---|
OfflinePushConfig | 读写(选填), 消息的离线推送设置 |
message_platform
Declaration
public TIMPlatform? message_platform
Field Value
Type | Description |
---|---|
System.Nullable<TIMPlatform> | 读写(选填), 发送消息的平台 |
message_priority
Declaration
public TIMMsgPriority? message_priority
Field Value
Type | Description |
---|---|
System.Nullable<TIMMsgPriority> | 读写(选填), 消息优先级 |
message_rand
Declaration
public ulong message_rand
Field Value
Type | Description |
---|---|
System.UInt64 | 只读, 消息的随机码 |
message_sender
Declaration
public string message_sender
Field Value
Type | Description |
---|---|
System.String | 读写(选填), 消息的发送者 |
message_sender_group_member_info
Declaration
public GroupMemberInfo message_sender_group_member_info
Field Value
Type | Description |
---|---|
GroupMemberInfo | 读写(选填), 消息发送者在群里面的信息,只有在群会话有效。目前仅能获取字段 kTIMGroupMemberInfoIdentifier、kTIMGroupMemberInfoNameCard 其他的字段建议通过 TIMGroupGetMemberInfoList 接口获取 |
message_sender_profile
Declaration
public UserProfile message_sender_profile
Field Value
Type | Description |
---|---|
UserProfile | 读写(选填), 消息的发送者的用户资料 |
message_seq
Declaration
public ulong message_seq
Field Value
Type | Description |
---|---|
System.UInt64 | 只读, 消息序列 |
message_server_time
Declaration
public ulong? message_server_time
Field Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | 读写(选填), 服务端时间 |
message_status
Declaration
public TIMMsgStatus? message_status
Field Value
Type | Description |
---|---|
System.Nullable<TIMMsgStatus> | 读写(选填), 消息当前状态 |
message_target_group_member_array
Declaration
public List<string> message_target_group_member_array
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | 只写(选填), 指定群消息接收成员(定向消息);不支持群 @ 消息设置,不支持社群(Community)和直播群(AVChatRoom)消息设置;该字段设置后,消息会不计入会话未读数。 |
message_unique_id
Declaration
public ulong message_unique_id
Field Value
Type | Description |
---|---|
System.UInt64 | 只读, 消息的唯一标识,推荐使用 kTIMMsgMsgId |
message_version
Declaration
public ulong? message_version
Field Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | 只读,注意:这个字段是内部字段,不推荐使用 |