Show / Hide Table of Contents

Class Message

Inheritance
System.Object
Message
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: com.tencent.imsdk.unity.types
Assembly: cs.temp.dll.dll
Syntax
public class Message

Fields

message_client_time

Declaration
public ulong message_client_time
Field Value
Type Description
System.UInt64

Read/Write (optional); the client time

message_cloud_custom_str

Declaration
public string message_cloud_custom_str
Field Value
Type Description
System.String

Read/Write (optional); the custom message data (a message saved in the cloud will be sent to the peer end and can still be pulled after the app is uninstalled and reinstalled)

message_conv_id

Declaration
public string message_conv_id
Field Value
Type Description
System.String

Read/Write (optional); the conversation ID of the message

message_conv_type

Declaration
public TIMConvType message_conv_type
Field Value
Type Description
TIMConvType

Read/Write (optional); the conversation type of the message

message_custom_int

Declaration
public int message_custom_int
Field Value
Type Description
System.Int32

Read/Write (optional); the custom integer field (a message saved locally will not be sent to the peer end and will become invalid after the app is uninstalled and reinstalled)

message_custom_str

Declaration
public string message_custom_str
Field Value
Type Description
System.String

Read/Write (optional); the custom data field (a message saved locally will not be sent to the peer end and will become invalid after the app is uninstalled and reinstalled)

message_elem_array

Declaration
public List<Elem> message_elem_array
Field Value
Type Description
System.Collections.Generic.List<Elem>

Read/Write (required); the list of elements in the message

message_excluded_from_last_message

Declaration
public bool message_excluded_from_last_message
Field Value
Type Description
System.Boolean

Read/Write; whether the current message is used as the last message (`lastMessage`) of the conversation. `true`: No; `false`: Yes.

message_group_at_user_array

Declaration
public List<string> message_group_at_user_array
Field Value
Type Description
System.Collections.Generic.List<System.String>

Read/Write (optional); the UserID list of users that need to be mentioned (@) in the group. To @all, pass in `kImSDK_MesssageAtALL`.

message_is_excluded_from_unread_count

Declaration
public bool message_is_excluded_from_unread_count
Field Value
Type Description
System.Boolean

Read/Write (optional); whether the message is excluded from the unread count of the conversation. `NO` (default): Included in the unread count of the conversation; YES: Excluded from the unread count of the conversation.

message_is_forward_message

Declaration
public bool message_is_forward_message
Field Value
Type Description
System.Boolean

Read/Write (optional); whether to forward a message

message_is_from_self

Declaration
public bool message_is_from_self
Field Value
Type Description
System.Boolean

Read/Write (optional); whether the message sender is the current user

message_is_online_msg

Declaration
public bool message_is_online_msg
Field Value
Type Description
System.Boolean

Read/Write (optional); whether the message is an online message. `false` (default): Common message; `true`: Message that disappears after being viewed.

message_is_peer_read

Declaration
public bool message_is_peer_read
Field Value
Type Description
System.Boolean

Read-only; whether the message is read by the peer of the conversation

message_is_read

Declaration
public bool message_is_read
Field Value
Type Description
System.Boolean

Read/Write (optional); whether the message is read

message_msg_id

Declaration
public string message_msg_id
Field Value
Type Description
System.String

Read-only; the unique message ID

message_offlie_push_config

Declaration
public OfflinePushConfig message_offlie_push_config
Field Value
Type Description
OfflinePushConfig

Read/Write (optional); the offline push settings of the message

message_platform

Declaration
public TIMPlatform message_platform
Field Value
Type Description
TIMPlatform

Read/Write (optional); the platform that sends the message

message_priority

Declaration
public TIMMsgPriority message_priority
Field Value
Type Description
TIMMsgPriority

Read/Write (optional); the message priority

message_rand

Declaration
public ulong message_rand
Field Value
Type Description
System.UInt64

Read-only; the random code of the message

message_sender

Declaration
public string message_sender
Field Value
Type Description
System.String

Read/Write (optional); the message sender

message_sender_group_member_info

Declaration
public GroupMemberInfo message_sender_group_member_info
Field Value
Type Description
GroupMemberInfo

Read/Write (optional); the information of the message sender in a group. This parameter is valid only in a group conversation. Currently, only the kTIMGroupMemberInfoIdentifier` and `kTIMGroupMemberInfoNameCard` fields can be obtained. You are advised to obtain other fields via the `TIMGroupGetMemberInfoList` API.

message_sender_profile

Declaration
public UserProfile message_sender_profile
Field Value
Type Description
UserProfile

Read/Write (optional); the user profile of the message sender

message_seq

Declaration
public ulong message_seq
Field Value
Type Description
System.UInt64

Read-only; the message sequence

message_server_time

Declaration
public ulong message_server_time
Field Value
Type Description
System.UInt64

Read/Write (optional); the server time

message_status

Declaration
public TIMMsgStatus message_status
Field Value
Type Description
TIMMsgStatus

Read/Write (optional); the current message status

message_unique_id

Declaration
public ulong message_unique_id
Field Value
Type Description
System.UInt64

Read-only; the unique message ID. `kTIMMsgMsgId` is recommended.

In This Article
Back to top Generated by DocFX