NIM PC Cross Platform SDK
nim_qchat_message_def.h
Go to the documentation of this file.
1
11#ifndef __NIM_QCHAT_MESSAGE_DEF_H__
12#define __NIM_QCHAT_MESSAGE_DEF_H__
13
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
30 kMsgStatusUser = 10000 // 大于10000为用户自定义状态
31};
32
41};
42
65};
66
73};
74
83};
84
87 char* msg_attach;
88};
89
92 char* file_path;
93 uint32_t width;
94 uint32_t height;
95 // 以下字段仅在收到消息时有效
96 char* url;
97 char* md5;
98 char* ext;
99 char* name;
100};
101
104 char* file_path;
105 uint64_t duration;
106 // 以下字段仅在收到消息时有效
107 char* url;
108 char* md5;
109 char* ext;
110 char* name;
111};
112
115 char* file_path;
116 uint64_t duration;
117 uint32_t width;
118 uint32_t height;
119 // 以下字段仅在收到消息时有效
120 char* url;
121 char* md5;
122 char* ext;
123 char* name;
124};
125
128 double latitude;
129 double longitude;
130 char* title;
131};
132
135 uint32_t id;
136 char* data;
137};
138
141 char* file_path;
142 // 以下字段仅在收到消息时有效
143 char* url;
144 char* md5;
145 char* ext;
146 char* name;
147};
148
151 uint32_t type;
152 char* data;
153};
154
173};
174
180 char* msg_body;
182 char* msg_ext;
183};
184
199};
200
204 uint64_t server_id;
206 uint64_t channel_id;
210 uint32_t msg_sub_type;
212 char* msg_body;
214 char* msg_ext;
250 char* env;
253 union {
270 };
271 // 以下字段仅在收到消息时有效
275 char* msg_id;
287 uint64_t timestamp;
296 // 内部字段, 无需关注
303};
304
313};
314
321};
322
326 uint32_t res_code;
331};
332
336 uint32_t res_code;
341};
342
346 uint32_t res_code;
351};
352
355
359 uint32_t res_code;
366};
367
370
373
376
379
382
385
389 uint64_t type;
391 uint64_t count;
395 char** accids;
398};
399
403 uint64_t server_id;
405 uint64_t channel_id;
409 uint64_t count;
411 uint64_t timestamp;
416};
417
421 uint32_t res_code;
424 NIMQChatQuickCommentInfo* comments;
425 size_t comments_count;
426};
427
431 uint32_t total;
433 uint64_t timestamp;
438};
439
443 uint32_t res_code;
447 NIMQChatMessage root_message;
448 NIMQChatMessage* messages;
449 size_t messages_count;
450};
451
455 uint32_t res_code;
462};
463
467 uint32_t res_code;
476};
477
478/* ---------------------------- 接口回调声明 --------------------------- */
479
514
515/* ---------------------------- 接口调用参数 --------------------------- */
516
523};
524
531};
532
541};
542
554 uint64_t timestamp;
559 // 以下为待更新的消息属性
563 char* msg_body;
565 char* msg_ext;
567 uint32_t msg_sub_type;
568};
569
581 uint64_t timestamp;
584};
585
597 uint64_t timestamp;
600};
601
609 uint64_t server_id;
611 uint64_t channel_id;
613 uint64_t from_time;
615 uint64_t to_time;
619 uint32_t limit;
622};
623
631 uint64_t server_id;
633 uint64_t* channel_ids;
636};
637
643 uint64_t server_id;
645 uint64_t channel_id;
648};
649
659 uint64_t timestamp;
660};
661
672};
673
679 uint64_t timestamp;
680};
681
686 uint64_t server_id;
688 uint64_t channel_id;
695};
696
707};
708
716 uint64_t from_time;
718 uint64_t to_time;
722 uint32_t limit;
727};
728
734 uint64_t server_id;
736 uint64_t channel_id;
743};
744
752 uint32_t type;
757};
758
761
767 uint64_t server_id;
769 uint64_t channel_id;
776};
777
785 char* keyword;
787 uint64_t server_id;
789 uint64_t channel_id;
793 uint64_t from_time;
795 uint64_t to_time;
803 uint32_t* sub_types;
811 uint32_t limit;
813 char* cursor;
814};
815
816#ifdef __cplusplus
817}
818#endif
819
820#endif // __NIM_QCHAT_MESSAGE_DEF_H__
void(* nim_qchat_get_message_history_by_ids_cb_func)(const NIMQChatGetMessageHistoryByIdsResp *resp)
根据消息 ID 查询消息回调
Definition: nim_qchat_message_def.h:497
void(* nim_qchat_update_msg_cb_func)(const NIMQChatUpdateMessageResp &resp)
更新消息回调
Definition: nim_qchat_message_def.h:487
void(* nim_qchat_send_msg_cb_func)(const NIMQChatSendMessageResp &resp)
发送消息回调
Definition: nim_qchat_message_def.h:485
void(* nim_qchat_get_last_messages_cb_func)(const NIMQChatGetLastMessagesResp &resp)
查询频道最后一条消息回调
Definition: nim_qchat_message_def.h:493
void(* nim_qchat_ack_cb_func)(const NIMQChatMarkMessageReadResp &resp)
消息标记已读回调
Definition: nim_qchat_message_def.h:489
void(* nim_qchat_msg_updated_cb_func)(const NIMQChatMsgUpdatedResp &resp)
消息更新通知回调
Definition: nim_qchat_message_def.h:483
void(* nim_qchat_add_quick_comment_cb_func)(const NIMQChatAddQuickCommentResp *resp)
添加快捷回复回调
Definition: nim_qchat_message_def.h:507
void(* nim_qchat_get_thread_messages_meta_cb_func)(const NIMQChatGetThreadRootMessagesMetaResp *resp)
查询Thread消息元信息回调
Definition: nim_qchat_message_def.h:505
void(* nim_qchat_get_thread_messages_cb_func)(const NIMQChatGetThreadMessagesResp *resp)
查询Thread消息回调
Definition: nim_qchat_message_def.h:503
void(* nim_qchat_remove_quick_comment_cb_func)(const NIMQChatRemoveQuickCommentResp *resp)
删除快捷回复回调
Definition: nim_qchat_message_def.h:509
void(* nim_qchat_query_history_msg_cb_func)(const NIMQChatGetMessagesResp &resp)
查询历史消息回调
Definition: nim_qchat_message_def.h:491
NIMQChatGetReferMessageType
Definition: nim_qchat_message_def.h:76
@ kNIMQChatGetReferMessageTypeAll
获取以上两个条件的消息
Definition: nim_qchat_message_def.h:82
@ kNIMQChatGetReferMessageTypeThreadRoot
获取 thread 根消息
Definition: nim_qchat_message_def.h:80
@ kNIMQChatGetReferMessageTypeReply
获取被回复的消息
Definition: nim_qchat_message_def.h:78
void(* nim_qchat_get_refer_messages_cb_func)(const NIMQChatGetReferMessagesResp *resp)
获取关联消息回调
Definition: nim_qchat_message_def.h:499
NIMQChatQuickCommentOperation
Definition: nim_qchat_message_def.h:68
@ kNIMQChatQuickCommentRemove
删除
Definition: nim_qchat_message_def.h:72
@ kNIMQChatQuickCommentAdd
添加
Definition: nim_qchat_message_def.h:70
NIMQChatMsgType
Definition: nim_qchat_message_def.h:44
@ kNIMQChatMsgTypeNotification
通知类型消息
Definition: nim_qchat_message_def.h:56
@ kNIMQChatMsgTypeVideo
视频类型消息
Definition: nim_qchat_message_def.h:52
@ kNIMQChatMsgTypeCustom
自定义消息
Definition: nim_qchat_message_def.h:62
@ kNIMQChatMsgTypeText
文本类型消息
Definition: nim_qchat_message_def.h:46
@ kNIMQChatMsgTypeTips
提醒类型消息
Definition: nim_qchat_message_def.h:60
@ kNIMQChatMsgTypeAudio
音频类型消息
Definition: nim_qchat_message_def.h:50
@ kNIMQChatMsgTypeLocation
位置类型消息
Definition: nim_qchat_message_def.h:54
@ kNIMQChatMsgTypeFile
文件类型消息
Definition: nim_qchat_message_def.h:58
@ kNIMQChatMsgTypeUnknown
未知类型消息,作为默认值
Definition: nim_qchat_message_def.h:64
@ kNIMQChatMsgTypeImage
图片类型消息
Definition: nim_qchat_message_def.h:48
void(* nim_qchat_recv_msg_cb_func)(const NIMQChatRecvMsgResp &resp)
接收消息回调
Definition: nim_qchat_message_def.h:481
NIMQChatMessageStatus
Definition: nim_qchat_message_def.h:23
@ kMsgStatusRevoke
被撤回的消息
Definition: nim_qchat_message_def.h:27
@ kMsgStatusNormal
普通消息状态
Definition: nim_qchat_message_def.h:25
@ kMsgStatusDelete
被删除的消息
Definition: nim_qchat_message_def.h:29
void(* nim_qchat_get_quick_comments_cb_func)(const NIMQChatGetQuickCommentsResp *resp)
查询快捷回复回调
Definition: nim_qchat_message_def.h:511
void(* nim_qchat_message_search_page_cb_func)(const NIMQChatMessageSearchPageResp *resp)
消息搜索回调
Definition: nim_qchat_message_def.h:513
void(* nim_qchat_reply_msg_cb_func)(const NIMQChatReplyMsgResp *resp)
回复消息回调
Definition: nim_qchat_message_def.h:495
void(* nim_qchat_query_history_msg_cache_cb_func)(const NIMQChatGetMessagesCacheResp &resp)
查询本地缓存消息历史
Definition: nim_qchat_message_def.h:501
NIMQChatMessageNotifyReason
Definition: nim_qchat_message_def.h:34
@ kMessageNotifyReasonNotifyAll
本消息发给了channel里的所有人
Definition: nim_qchat_message_def.h:38
@ kMessageNotifyReasonNotifySubscribe
本消息发给了channel里的订阅者
Definition: nim_qchat_message_def.h:40
@ kMessageNotifyReasonUnkonw
未知原因
Definition: nim_qchat_message_def.h:36
NIMQChatMessageSearchSort
消息搜索排序规则
Definition: nim_qchat_public_def.h:108
NIMQChatSearchOrder
搜索排序顺序
Definition: nim_qchat_public_def.h:82
Definition: nim_qchat_message_def.h:746
NIMQChatMessage quote_message
要被添加快捷评论的消息体
Definition: nim_qchat_message_def.h:750
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:756
uint32_t type
快捷评论类型,是一个数字,大于0
Definition: nim_qchat_message_def.h:752
NIMQChatQuickCommentOperation operation
快捷评论操作,1 是添加,2 是删除
Definition: nim_qchat_message_def.h:754
nim_qchat_add_quick_comment_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:748
Definition: nim_qchat_message_def.h:103
Definition: nim_qchat_public_def.h:114
Definition: nim_qchat_public_def.h:130
Definition: nim_qchat_message_def.h:86
Definition: nim_qchat_message_def.h:587
NIMQChatMessageUpdateInfo update_info
更新信息
Definition: nim_qchat_message_def.h:599
NIMQChatChannelIDInfo id_info
频道ID信息
Definition: nim_qchat_message_def.h:593
uint64_t timestamp
消息发送时间戳
Definition: nim_qchat_message_def.h:597
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:591
nim_qchat_update_msg_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:589
uint64_t msg_server_id
消息服务器 id
Definition: nim_qchat_message_def.h:595
Definition: nim_qchat_message_def.h:140
Definition: nim_qchat_message_def.h:625
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:629
uint64_t * channel_ids
频道ID
Definition: nim_qchat_message_def.h:633
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:631
nim_qchat_get_last_messages_cb_func cb
查询历史消息异步回调
Definition: nim_qchat_message_def.h:627
size_t channel_ids_count
频道ID数量
Definition: nim_qchat_message_def.h:635
Definition: nim_qchat_message_def.h:675
uint64_t msg_server_id
消息服务器 ID
Definition: nim_qchat_message_def.h:677
uint64_t timestamp
消息发送时间戳
Definition: nim_qchat_message_def.h:679
Definition: nim_qchat_message_def.h:683
size_t column_count
查询的消息数量
Definition: nim_qchat_message_def.h:692
uint64_t channel_id
频道 ID
Definition: nim_qchat_message_def.h:688
NIMQChatGetMessageColumns * columns
消息列表
Definition: nim_qchat_message_def.h:690
uint64_t server_id
服务器 ID
Definition: nim_qchat_message_def.h:686
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:694
Definition: nim_qchat_message_def.h:639
nim_qchat_query_history_msg_cache_cb_func cb
查询本地缓存消息历史异步回调
Definition: nim_qchat_message_def.h:641
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:647
uint64_t channel_id
频道 ID
Definition: nim_qchat_message_def.h:645
uint64_t server_id
服务器 ID
Definition: nim_qchat_message_def.h:643
Definition: nim_qchat_message_def.h:603
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:609
uint32_t limit
查询条数
Definition: nim_qchat_message_def.h:619
bool reverse
是否倒序, false: 否, true: 是
Definition: nim_qchat_message_def.h:621
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:607
nim_qchat_query_history_msg_cb_func cb
查询历史消息异步回调
Definition: nim_qchat_message_def.h:605
uint64_t exclude_msg_server_id
排除某条消息, msg server id
Definition: nim_qchat_message_def.h:617
uint64_t from_time
查询开始时间
Definition: nim_qchat_message_def.h:613
uint64_t to_time
查询结束时间
Definition: nim_qchat_message_def.h:615
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:611
Definition: nim_qchat_message_def.h:357
size_t messages_count
消息数量
Definition: nim_qchat_message_def.h:363
NIMQChatMessage * messages
消息列表
Definition: nim_qchat_message_def.h:365
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:361
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:359
Definition: nim_qchat_message_def.h:763
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:775
size_t msg_server_id_count
消息服务器 ID 列表数量
Definition: nim_qchat_message_def.h:773
uint64_t * msg_server_id_list
消息服务器 ID 列表
Definition: nim_qchat_message_def.h:771
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:767
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:769
nim_qchat_get_quick_comments_cb_func cb
获取快捷评论异步回调
Definition: nim_qchat_message_def.h:765
Definition: nim_qchat_message_def.h:419
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:423
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:421
Definition: nim_qchat_message_def.h:698
nim_qchat_get_refer_messages_cb_func cb
获取引用消息异步回调
Definition: nim_qchat_message_def.h:700
NIMQChatGetReferMessageType type
查询的类型
Definition: nim_qchat_message_def.h:702
NIMQChatMessage message
要查询的消息体
Definition: nim_qchat_message_def.h:704
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:706
Definition: nim_qchat_message_def.h:710
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:714
uint64_t exclude_msg_server_id
排除某条消息, message server id
Definition: nim_qchat_message_def.h:720
nim_qchat_get_thread_messages_cb_func cb
查询 thread 消息异步回调
Definition: nim_qchat_message_def.h:712
uint32_t limit
查询条数
Definition: nim_qchat_message_def.h:722
bool reverse
是否倒序, false: 否, true: 是
Definition: nim_qchat_message_def.h:724
uint64_t from_time
查询开始时间
Definition: nim_qchat_message_def.h:716
uint64_t to_time
查询结束时间
Definition: nim_qchat_message_def.h:718
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:726
Definition: nim_qchat_message_def.h:441
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:443
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:445
Definition: nim_qchat_message_def.h:730
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:736
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:742
nim_qchat_get_thread_messages_meta_cb_func cb
查询 thread 消息元信息异步回调
Definition: nim_qchat_message_def.h:732
size_t message_count
要查询的 thread root 消息数量
Definition: nim_qchat_message_def.h:740
NIMQChatMessage * messages
要查询的 thread root 消息列表
Definition: nim_qchat_message_def.h:738
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:734
Definition: nim_qchat_message_def.h:453
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:455
NIMQChatThreadMessageMetaInfo * meta_infos
消息元信息
Definition: nim_qchat_message_def.h:457
size_t meta_info_count
消息元信息数量
Definition: nim_qchat_message_def.h:459
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:461
Definition: nim_qchat_message_def.h:91
Definition: nim_qchat_message_def.h:127
Definition: nim_qchat_message_def.h:651
NIMQChatChannelIDInfo id_info
标记已读channel ID
Definition: nim_qchat_message_def.h:657
uint64_t timestamp
标记消息已读时间戳
Definition: nim_qchat_message_def.h:659
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:655
nim_qchat_ack_cb_func cb
标记消息已读异步回调
Definition: nim_qchat_message_def.h:653
Definition: nim_qchat_message_def.h:344
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:348
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:346
NIMQChatUnreadInfo unread_info
未读数信息
Definition: nim_qchat_message_def.h:350
Definition: nim_qchat_public_def.h:159
Definition: nim_qchat_message_def.h:202
uint32_t msg_sub_type
消息子类型
Definition: nim_qchat_message_def.h:210
bool need_push_nick
是否需要推送昵称, false: 不需要, true: 需要, 默认 true
Definition: nim_qchat_message_def.h:238
uint32_t from_client_type
消息发送者的客户端类型
Definition: nim_qchat_message_def.h:281
NIMQChatNotificationAttach notification_attach
通知消息附件
Definition: nim_qchat_message_def.h:265
bool route_enable
是否需要抄送, false: 不需要, true: 需要, 默认 true
Definition: nim_qchat_message_def.h:240
size_t mention_accids_count
@成员列表长度
Definition: nim_qchat_message_def.h:222
char * env
环境变量,用于指向不同的抄送、第三方回调等配置
Definition: nim_qchat_message_def.h:250
char * push_payload
自定义的推送属性,限制json
Definition: nim_qchat_message_def.h:230
NIMQChatMsgType msg_type
消息类型
Definition: nim_qchat_message_def.h:208
NIMQChatTipsAttach tips_attach
提醒消息附件
Definition: nim_qchat_message_def.h:269
char ** mention_accids
@成员列表
Definition: nim_qchat_message_def.h:220
NIMQChatVideoAttach video_attach
视频消息附件
Definition: nim_qchat_message_def.h:261
bool history_enable
该消息是否存储云端历史,0:不支持,1:支持
Definition: nim_qchat_message_def.h:228
uint64_t server_id
消息所属的server id
Definition: nim_qchat_message_def.h:204
bool accids_of_mentioned_roles_available
@身份组所包含的accid列表是否有效
Definition: nim_qchat_message_def.h:298
bool mention_all
是否@所有人,false:否,true:是
Definition: nim_qchat_message_def.h:218
uint64_t channel_id
消息所属的channel id
Definition: nim_qchat_message_def.h:206
char * callback_ext
第三方回调扩展字段
Definition: nim_qchat_message_def.h:252
char * from_accid
消息发送者的accid
Definition: nim_qchat_message_def.h:279
bool push_enable
是否需要推送, false: 不需要, true: 需要, 默认 false
Definition: nim_qchat_message_def.h:234
NIMQChatMessageThreadInfo thread_info
回复消息信息
Definition: nim_qchat_message_def.h:242
char * push_content
自定义的推送内容
Definition: nim_qchat_message_def.h:232
NIMQChatImageAttach image_attach
图片消息附件
Definition: nim_qchat_message_def.h:257
char * from_device_id
消息发送者的设备id
Definition: nim_qchat_message_def.h:283
uint64_t * mention_role_ids
@身份组列表
Definition: nim_qchat_message_def.h:224
char ** accids_of_mentioned_roles
@身份组所包含的accid列表(部分)
Definition: nim_qchat_message_def.h:300
NIMQChatFileAttach file_attach
文件消息附件
Definition: nim_qchat_message_def.h:267
bool need_badge
是否需要消息计数, false: 不需要, true: 需要, 默认 true
Definition: nim_qchat_message_def.h:236
NIMQChatAudioAttach audio_attach
音频消息附件
Definition: nim_qchat_message_def.h:259
uint64_t update_timestamp
消息更新时间戳
Definition: nim_qchat_message_def.h:289
size_t mention_role_ids_count
@身份组列表长度
Definition: nim_qchat_message_def.h:226
char * from_nick
消息发送者的昵称
Definition: nim_qchat_message_def.h:285
NIMQChatLocationAttach location_attach
位置消息附件
Definition: nim_qchat_message_def.h:263
char * msg_ext
消息扩展字段
Definition: nim_qchat_message_def.h:214
NIMQChatMessageNotifyReason notify_reason
消息下发原因
Definition: nim_qchat_message_def.h:291
uint64_t timestamp
消息发送时间戳
Definition: nim_qchat_message_def.h:287
uint64_t msg_server_id
消息服务器 id
Definition: nim_qchat_message_def.h:277
NIMQChatMessageAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_message_def.h:244
NIMQChatDefaultAttach default_attach
默认附件
Definition: nim_qchat_message_def.h:255
char * msg_body
消息内容
Definition: nim_qchat_message_def.h:212
NIMQChatMessageStatus status
消息状态
Definition: nim_qchat_message_def.h:273
size_t accids_of_mentioned_roles_count
@身份组所包含的accid列表长度(部分)
Definition: nim_qchat_message_def.h:302
char * anti_spam_result
反垃圾结果
Definition: nim_qchat_message_def.h:248
NIMQChatMessageUpdateOpeInfo update_ope_info
上次消息变更操作信息
Definition: nim_qchat_message_def.h:295
char * msg_id
消息id
Definition: nim_qchat_message_def.h:275
NIMQChatMessageUpdateContent update_content
上次消息变更内容
Definition: nim_qchat_message_def.h:293
bool resend_flag
重发标记,false:不是重发,true:是重发
Definition: nim_qchat_message_def.h:216
bool is_anti_spamed
是否被反垃圾拦截, false: 未被拦截, true: 已被拦截, 默认 false
Definition: nim_qchat_message_def.h:246
Definition: nim_qchat_message_def.h:779
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:783
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:789
char * from_accid
消息发送者ID
Definition: nim_qchat_message_def.h:791
uint64_t from_time
搜索的开始时间
Definition: nim_qchat_message_def.h:793
size_t msg_types_count
搜索的消息类型数量
Definition: nim_qchat_message_def.h:797
char * keyword
搜索的关键字
Definition: nim_qchat_message_def.h:785
NIMQChatSearchOrder order
排序顺序
Definition: nim_qchat_message_def.h:807
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:787
NIMQChatMsgType * msg_types
搜索的消息类型
Definition: nim_qchat_message_def.h:799
uint32_t * sub_types
搜索的消息子类型
Definition: nim_qchat_message_def.h:803
char * cursor
查询游标, 查询的起始位置
Definition: nim_qchat_message_def.h:813
size_t sub_types_count
搜索的消息子类型数量
Definition: nim_qchat_message_def.h:801
NIMQChatMessageSearchSort sort
排序规则
Definition: nim_qchat_message_def.h:809
bool include_self
是否包含自己的消息
Definition: nim_qchat_message_def.h:805
uint64_t to_time
搜索的结束时间
Definition: nim_qchat_message_def.h:795
nim_qchat_message_search_page_cb_func cb
消息搜索异步回调
Definition: nim_qchat_message_def.h:781
uint32_t limit
查询条数
Definition: nim_qchat_message_def.h:811
Definition: nim_qchat_message_def.h:465
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:469
size_t messages_count
消息数量
Definition: nim_qchat_message_def.h:473
NIMQChatMessage * messages
消息列表
Definition: nim_qchat_message_def.h:475
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:467
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_message_def.h:471
Definition: nim_qchat_message_def.h:156
char * reply_from_accid
被回复的消息所有者 ID
Definition: nim_qchat_message_def.h:158
char * thread_root_accid
thread 根消息的所有者 ID
Definition: nim_qchat_message_def.h:166
char * reply_msg_client_id
被回复消息得客户端消息 ID
Definition: nim_qchat_message_def.h:164
uint64_t reply_msg_timestamp
被回复消息得创建时间
Definition: nim_qchat_message_def.h:160
uint64_t thread_root_msg_timestamp
thread 根消息的创建时间
Definition: nim_qchat_message_def.h:168
uint64_t thread_root_msg_server_id
thread 根消息的服务器消息 ID
Definition: nim_qchat_message_def.h:170
char * thread_root_msg_client_id
thread 根消息的客户端消息 ID
Definition: nim_qchat_message_def.h:172
uint64_t reply_msg_server_id
被回复消息得服务器消息 ID
Definition: nim_qchat_message_def.h:162
Definition: nim_qchat_message_def.h:176
NIMQChatMessageStatus status
消息状态
Definition: nim_qchat_message_def.h:178
char * msg_ext
消息扩展字段
Definition: nim_qchat_message_def.h:182
char * msg_body
消息内容
Definition: nim_qchat_message_def.h:180
Definition: nim_qchat_public_def.h:138
Definition: nim_qchat_message_def.h:186
uint32_t operator_client_type
操作者客户端类型
Definition: nim_qchat_message_def.h:190
char * push_payload
推送payload
Definition: nim_qchat_message_def.h:198
char * push_content
推送文案
Definition: nim_qchat_message_def.h:196
char * operator_id
操作者账号
Definition: nim_qchat_message_def.h:188
char * postscript
操作附言
Definition: nim_qchat_message_def.h:192
char * extension
操作扩展字段
Definition: nim_qchat_message_def.h:194
Definition: nim_qchat_message_def.h:306
NIMQChatMessageUpdateInfo update_info
消息更新信息
Definition: nim_qchat_message_def.h:310
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:308
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:312
Definition: nim_qchat_message_def.h:134
Definition: nim_qchat_public_def.h:177
Definition: nim_qchat_message_def.h:387
size_t account_count
account ID 总数
Definition: nim_qchat_message_def.h:397
uint64_t count
这个评论的数量
Definition: nim_qchat_message_def.h:391
bool include_yourself
是否包含自己
Definition: nim_qchat_message_def.h:393
uint64_t type
评论类型
Definition: nim_qchat_message_def.h:389
char ** accids
若干个添加过评论的 account ID
Definition: nim_qchat_message_def.h:395
Definition: nim_qchat_message_def.h:401
uint64_t server_id
评论所在服务器 ID
Definition: nim_qchat_message_def.h:403
uint64_t count
总的评论数量
Definition: nim_qchat_message_def.h:409
NIMQChatQuickCommentDetail * detail
评论详情
Definition: nim_qchat_message_def.h:413
size_t detail_count
评论详情数量
Definition: nim_qchat_message_def.h:415
uint64_t msg_server_id
评论所属消息服务器 ID
Definition: nim_qchat_message_def.h:407
uint64_t timestamp
最后一次操作的时间
Definition: nim_qchat_message_def.h:411
uint64_t channel_id
评论所在频道 ID
Definition: nim_qchat_message_def.h:405
Definition: nim_qchat_message_def.h:316
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:318
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:320
Definition: nim_qchat_message_def.h:526
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:530
nim_qchat_msg_updated_cb_func cb
消息更新异步回调
Definition: nim_qchat_message_def.h:528
Definition: nim_qchat_message_def.h:518
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:522
nim_qchat_recv_msg_cb_func cb
接收消息异步回调
Definition: nim_qchat_message_def.h:520
Definition: nim_qchat_message_def.h:663
nim_qchat_reply_msg_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:665
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:671
NIMQChatMessage quote_message
被引用的消息体
Definition: nim_qchat_message_def.h:667
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:669
Definition: nim_qchat_message_def.h:571
uint64_t timestamp
消息发送时间戳
Definition: nim_qchat_message_def.h:581
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:575
nim_qchat_update_msg_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:573
NIMQChatChannelIDInfo id_info
频道ID信息
Definition: nim_qchat_message_def.h:577
NIMQChatMessageUpdateInfo update_info
更新信息
Definition: nim_qchat_message_def.h:583
uint64_t msg_server_id
消息服务器 id
Definition: nim_qchat_message_def.h:579
Definition: nim_qchat_message_def.h:534
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:538
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:540
nim_qchat_send_msg_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:536
Definition: nim_qchat_message_def.h:324
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:330
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:326
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:328
Definition: nim_qchat_message_def.h:429
uint64_t thread_msg_timestamp
thread 消息时间戳
Definition: nim_qchat_message_def.h:437
uint64_t thread_msg_server_id
thread 消息服务器 ID
Definition: nim_qchat_message_def.h:435
uint32_t total
总数
Definition: nim_qchat_message_def.h:431
uint64_t timestamp
最后一条消息时间戳
Definition: nim_qchat_message_def.h:433
Definition: nim_qchat_message_def.h:150
Definition: nim_qchat_public_def.h:330
Definition: nim_qchat_message_def.h:544
uint32_t msg_sub_type
消息子类型
Definition: nim_qchat_message_def.h:567
NIMQChatMessageUpdateInfo update_info
更新信息
Definition: nim_qchat_message_def.h:556
uint64_t msg_server_id
消息服务器 id
Definition: nim_qchat_message_def.h:552
NIMQChatChannelIDInfo id_info
频道ID信息
Definition: nim_qchat_message_def.h:550
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:548
NIMQChatMessageStatus status
消息状态, 不允许更新为删除或撤回
Definition: nim_qchat_message_def.h:561
uint64_t timestamp
消息发送时间戳
Definition: nim_qchat_message_def.h:554
char * msg_ext
消息扩展字段
Definition: nim_qchat_message_def.h:565
NIMQChatMessageAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_message_def.h:558
char * msg_body
消息体
Definition: nim_qchat_message_def.h:563
nim_qchat_update_msg_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:546
Definition: nim_qchat_message_def.h:334
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:340
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:336
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:338
Definition: nim_qchat_message_def.h:114