Show / Hide Table of Contents

Class Elem

Inheritance
System.Object
ExtraData
Elem
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 Elem : ExtraData

Fields

custom_elem_data

Declaration
public string custom_elem_data
Field Value
Type Description
System.String

读写, 数据,支持二进制数据

custom_elem_desc

Declaration
public string custom_elem_desc
Field Value
Type Description
System.String

读写, 自定义描述

custom_elem_ext

Declaration
public string custom_elem_ext
Field Value
Type Description
System.String

读写, 后台推送对应的ext字段

custom_elem_sound

Declaration
public string custom_elem_sound
Field Value
Type Description
System.String

读写, 自定义声音

elem_type

Declaration
public TIMElemType elem_type
Field Value
Type Description
TIMElemType

读写(必填), 元素类型

face_elem_buf

Declaration
public string face_elem_buf
Field Value
Type Description
System.String

读写(必填), 表情索引

face_elem_index

Declaration
public int face_elem_index
Field Value
Type Description
System.Int32

读写(选填), 其他额外数据,可由用户自定义填写。若要传输二进制,麻烦先转码成字符串。JSON只支持字符串

file_elem_business_id

Declaration
public int file_elem_business_id
Field Value
Type Description
System.Int32

只读, 下载时用到的businessID

file_elem_download_flag

Declaration
public int file_elem_download_flag
Field Value
Type Description
System.Int32

只读, 文件下载flag

file_elem_file_id

Declaration
public string file_elem_file_id
Field Value
Type Description
System.String

只读, 文件 ID

file_elem_file_name

Declaration
public string file_elem_file_name
Field Value
Type Description
System.String

读写(必填), 文件名,显示的名称。不设置该参数时,kTIMFileElemFileName默认为kTIMFileElemFilePath指定的文件路径中的文件名

file_elem_file_path

Declaration
public string file_elem_file_path
Field Value
Type Description
System.String

读写(必填), 文件所在路径(包含文件名)

file_elem_file_size

Declaration
public int file_elem_file_size
Field Value
Type Description
System.Int32

读写(必填), 文件大小

file_elem_task_id

Declaration
public int file_elem_task_id
Field Value
Type Description
System.Int32

只读, 任务ID,废弃

file_elem_url

Declaration
public string file_elem_url
Field Value
Type Description
System.String

只读, 文件下载的URL

group_report_elem_group_id

Declaration
public string group_report_elem_group_id
Field Value
Type Description
System.String

只读, 群组ID

group_report_elem_group_name

Declaration
public string group_report_elem_group_name
Field Value
Type Description
System.String

只读, 群组名称

group_report_elem_msg

Declaration
public string group_report_elem_msg
Field Value
Type Description
System.String

只读, 操作理由

group_report_elem_op_group_memberinfo

Declaration
public GroupMemberInfo group_report_elem_op_group_memberinfo
Field Value
Type Description
GroupMemberInfo

只读,操作者群内资料

group_report_elem_op_user

Declaration
public string group_report_elem_op_user
Field Value
Type Description
System.String

只读, 操作者ID

group_report_elem_op_user_info

Declaration
public UserProfile group_report_elem_op_user_info
Field Value
Type Description
UserProfile

只读, 操作者个人资料

group_report_elem_platform

Declaration
public string group_report_elem_platform
Field Value
Type Description
System.String

只读, 操作方平台信息

group_report_elem_report_type

Declaration
public TIMGroupReportType group_report_elem_report_type
Field Value
Type Description
TIMGroupReportType

只读, 类型

group_report_elem_user_data

Declaration
public string group_report_elem_user_data
Field Value
Type Description
System.String

只读, 操作者填的自定义数据

group_tips_elem_changed_group_memberinfo_array

Declaration
public List<GroupMemberInfo> group_tips_elem_changed_group_memberinfo_array
Field Value
Type Description
System.Collections.Generic.List<GroupMemberInfo>

只读, 群成员信息列表

group_tips_elem_changed_user_info_array

Declaration
public List<UserProfile> group_tips_elem_changed_user_info_array
Field Value
Type Description
System.Collections.Generic.List<UserProfile>

只读, 被操作者列表资料

group_tips_elem_group_change_info_array

Declaration
public List<GroupTipGroupChangeInfo> group_tips_elem_group_change_info_array
Field Value
Type Description
System.Collections.Generic.List<GroupTipGroupChangeInfo>

只读, 群资料变更信息列表,仅当 tips_type 值为 kTIMGroupTip_GroupInfoChange 时有效

group_tips_elem_group_id

Declaration
public string group_tips_elem_group_id
Field Value
Type Description
System.String

只读, 群组ID

group_tips_elem_group_name

Declaration
public string group_tips_elem_group_name
Field Value
Type Description
System.String

只读, 群组名称

group_tips_elem_member_change_info_array

Declaration
public List<GroupTipMemberChangeInfo> group_tips_elem_member_change_info_array
Field Value
Type Description
System.Collections.Generic.List<GroupTipMemberChangeInfo>

只读, 群成员变更信息列表,仅当 tips_type 值为 kTIMGroupTip_MemberInfoChange 时有效

group_tips_elem_member_num

Declaration
public uint group_tips_elem_member_num
Field Value
Type Description
System.UInt32

只读, 当前群成员数,只有当事件消息类型为 kTIMGroupTip_Invite 、 kTIMGroupTip_Quit 、 kTIMGroupTip_Kick 时有效

group_tips_elem_op_group_memberinfo

Declaration
public GroupMemberInfo group_tips_elem_op_group_memberinfo
Field Value
Type Description
GroupMemberInfo

只读, 群成员信息

group_tips_elem_op_user

Declaration
public string group_tips_elem_op_user
Field Value
Type Description
System.String

只读, 操作者ID

group_tips_elem_op_user_info

Declaration
public UserProfile group_tips_elem_op_user_info
Field Value
Type Description
UserProfile

只读, 操作者个人资料

group_tips_elem_platform

Declaration
public string group_tips_elem_platform
Field Value
Type Description
System.String

只读, 操作方平台信息

group_tips_elem_time

Declaration
public uint group_tips_elem_time
Field Value
Type Description
System.UInt32

只读, 群消息时间,废弃

group_tips_elem_tip_type

Declaration
public TIMGroupTipType group_tips_elem_tip_type
Field Value
Type Description
TIMGroupTipType

只读, 群消息类型

group_tips_elem_user_array

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

只读, 被操作的帐号列表

image_elem_format

Declaration
public int image_elem_format
Field Value
Type Description
System.Int32

读写, 发送图片格式:,0xff:未知格式, 1:JPG, 2:GIF, 3:PNG, 4:BMP

image_elem_large_id

Declaration
public string image_elem_large_id
Field Value
Type Description
System.String

只读, 大图片uuid

image_elem_large_pic_height

Declaration
public int image_elem_large_pic_height
Field Value
Type Description
System.Int32

只读, 大图片的图片高度

image_elem_large_pic_size

Declaration
public int image_elem_large_pic_size
Field Value
Type Description
System.Int32

只读, 大图片的图片大小

image_elem_large_pic_width

Declaration
public int image_elem_large_pic_width
Field Value
Type Description
System.Int32

只读, 大图片的图片宽度

image_elem_large_url

Declaration
public string image_elem_large_url
Field Value
Type Description
System.String

只读, 大图片URL

image_elem_level

Declaration
public TIMImageLevel image_elem_level
Field Value
Type Description
TIMImageLevel

读写(必填), 发送图片的质量级别

image_elem_orig_id

Declaration
public string image_elem_orig_id
Field Value
Type Description
System.String

只读, 原图 ID

image_elem_orig_path

Declaration
public string image_elem_orig_path
Field Value
Type Description
System.String

读写(必填), 发送图片的路径

image_elem_orig_pic_height

Declaration
public int image_elem_orig_pic_height
Field Value
Type Description
System.Int32

只读, 原图的图片高度

image_elem_orig_pic_size

Declaration
public int image_elem_orig_pic_size
Field Value
Type Description
System.Int32

只读, 原图的图片大小

image_elem_orig_pic_width

Declaration
public int image_elem_orig_pic_width
Field Value
Type Description
System.Int32

只读, 原图的图片宽度

image_elem_orig_url

Declaration
public string image_elem_orig_url
Field Value
Type Description
System.String

只读, 原图URL

image_elem_task_id

Declaration
public int image_elem_task_id
Field Value
Type Description
System.Int32

只读, 任务ID,废弃

image_elem_thumb_id

Declaration
public string image_elem_thumb_id
Field Value
Type Description
System.String

只读, 缩略图 ID

image_elem_thumb_pic_height

Declaration
public int image_elem_thumb_pic_height
Field Value
Type Description
System.Int32

只读, 缩略图的图片高度

image_elem_thumb_pic_size

Declaration
public int image_elem_thumb_pic_size
Field Value
Type Description
System.Int32

只读, 缩略图的图片大小

image_elem_thumb_pic_width

Declaration
public int image_elem_thumb_pic_width
Field Value
Type Description
System.Int32

只读, 缩略图的图片宽度

image_elem_thumb_url

Declaration
public string image_elem_thumb_url
Field Value
Type Description
System.String

只读, 缩略图URL

location_elem_desc

Declaration
public string location_elem_desc
Field Value
Type Description
System.String

读写(选填), 位置描述

location_elem_latitude

Declaration
public double location_elem_latitude
Field Value
Type Description
System.Double

读写(必填), 纬度

location_elem_longitude

Declaration
public double location_elem_longitude
Field Value
Type Description
System.Double

读写(必填), 经度

merge_elem_abstract_array

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

读写(必填), 合并消息摘要列表

merge_elem_compatible_text

Declaration
public string merge_elem_compatible_text
Field Value
Type Description
System.String

读写(必填), 合并消息兼容文本,低版本 SDK 如果不支持合并消息,默认会收到一条文本消息,文本消息的内容为 compatibleText,该参数不能为空。

merge_elem_layer_over_limit

Declaration
public bool merge_elem_layer_over_limit
Field Value
Type Description
System.Boolean

只读, 合并消息里面又包含合并消息我们称之为合并嵌套,合并嵌套层数不能超过 100 层,如果超过限制,layersOverLimit 会返回 YES,kTIMMergerElemTitle 和 kTIMMergerElemAbstractArray 为空,DownloadMergerMessage 会返回 ERR_MERGER_MSG_LAYERS_OVER_LIMIT 错误码。

merge_elem_message_array

Declaration
public List<Message> merge_elem_message_array
Field Value
Type Description
System.Collections.Generic.List<Message>

读写(必填), 消息列表(最大支持 300 条,消息对象必须是 kTIMMsg_SendSucc 状态,消息类型不能为 GroupTipsElem 或 GroupReportElem)

merge_elem_relay_buffer

Declaration
public string merge_elem_relay_buffer
Field Value
Type Description
System.String

只读, 转发消息的 buffer

merge_elem_relay_json_key

Declaration
public string merge_elem_relay_json_key
Field Value
Type Description
System.String

只读, web 端消息列表下载 key

merge_elem_relay_pb_key

Declaration
public string merge_elem_relay_pb_key
Field Value
Type Description
System.String

只读, native 端消息列表下载 key

merge_elem_title

Declaration
public string merge_elem_title
Field Value
Type Description
System.String

读写(必填), 合并消息 title

profile_change_elem_change_type

Declaration
public TIMProfileChangeType profile_change_elem_change_type
Field Value
Type Description
TIMProfileChangeType

只读, 资料变更类型

profile_change_elem_from_identifer

Declaration
public string profile_change_elem_from_identifer
Field Value
Type Description
System.String

只读, 资料变更用户的UserID

profile_change_elem_user_profile_item

Declaration
public UserProfileItem profile_change_elem_user_profile_item
Field Value
Type Description
UserProfileItem

只读, 具体的变更信息,只有当 change_type 为 kTIMProfileChange_Profile 时有效

sound_elem_business_id

Declaration
public int sound_elem_business_id
Field Value
Type Description
System.Int32

只读, 下载时用到的businessID

sound_elem_download_flag

Declaration
public int sound_elem_download_flag
Field Value
Type Description
System.Int32

只读, 是否需要申请下载地址(0:需要申请,1:到cos申请,2:不需要申请,直接拿url下载)

sound_elem_file_id

Declaration
public string sound_elem_file_id
Field Value
Type Description
System.String

只读, 语音 ID

sound_elem_file_path

Declaration
public string sound_elem_file_path
Field Value
Type Description
System.String

读写(必填), 语音文件路径,需要开发者自己先保存语言然后指定路径

sound_elem_file_size

Declaration
public int sound_elem_file_size
Field Value
Type Description
System.Int32

读写(必填), 语言数据文件大小,以秒为单位

sound_elem_file_time

Declaration
public int sound_elem_file_time
Field Value
Type Description
System.Int32

读写(必填), 语音时长

sound_elem_task_id

Declaration
public int sound_elem_task_id
Field Value
Type Description
System.Int32

只读, 任务ID,废弃

sound_elem_url

Declaration
public string sound_elem_url
Field Value
Type Description
System.String

只读, 下载的URL

text_elem_content

Declaration
public string text_elem_content
Field Value
Type Description
System.String

读写(必填), 文本内容

video_elem_business_id

Declaration
public int video_elem_business_id
Field Value
Type Description
System.Int32

只读, 下载时用到的businessID

video_elem_image_download_flag

Declaration
public int video_elem_image_download_flag
Field Value
Type Description
System.Int32

只读, 截图文件下载flag

video_elem_image_height

Declaration
public uint video_elem_image_height
Field Value
Type Description
System.UInt32

读写(必填), 截图宽度,发送消息时进行设置

video_elem_image_id

Declaration
public string video_elem_image_id
Field Value
Type Description
System.String

只读, 截图 ID

video_elem_image_path

Declaration
public string video_elem_image_path
Field Value
Type Description
System.String

读写(必填), 保存截图的路径

video_elem_image_size

Declaration
public uint video_elem_image_size
Field Value
Type Description
System.UInt32

读写(必填), 截图文件大小

video_elem_image_type

Declaration
public string video_elem_image_type
Field Value
Type Description
System.String

读写(必填), 截图文件类型,发送消息时进行设置

video_elem_image_url

Declaration
public string video_elem_image_url
Field Value
Type Description
System.String

只读, 截图文件下载的URL

video_elem_image_width

Declaration
public uint video_elem_image_width
Field Value
Type Description
System.UInt32

读写(必填), 截图高度,发送消息时进行设置

video_elem_task_id

Declaration
public uint video_elem_task_id
Field Value
Type Description
System.UInt32

只读, 任务ID,废弃

video_elem_video_download_flag

Declaration
public int video_elem_video_download_flag
Field Value
Type Description
System.Int32

只读, 视频文件下载flag

video_elem_video_duration

Declaration
public uint video_elem_video_duration
Field Value
Type Description
System.UInt32

读写(必填), 视频时长,发送消息时进行设置

video_elem_video_id

Declaration
public string video_elem_video_id
Field Value
Type Description
System.String

只读, 视频 ID

video_elem_video_path

Declaration
public string video_elem_video_path
Field Value
Type Description
System.String

读写(必填), 适配文件路径

video_elem_video_size

Declaration
public uint video_elem_video_size
Field Value
Type Description
System.UInt32

读写(必填), 视频文件大小

video_elem_video_type

Declaration
public string video_elem_video_type
Field Value
Type Description
System.String

读写(必填), 视频文件类型,发送消息时进行设置

video_elem_video_url

Declaration
public string video_elem_video_url
Field Value
Type Description
System.String

只读, 视频文件下载的URL

In This Article
Back to top Generated by DocFX