NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_qchat_message_def.h
浏览该文件的文档.
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
32 kMsgStatusUser = 10000 // 大于10000为用户自定义状态
33};
34
43};
44
67};
68
75};
76
85};
86
90};
91
94 char* file_path;
95 uint32_t width;
96 uint32_t height;
97 // 以下字段仅在收到消息时有效
98 char* url;
99 char* md5;
100 char* ext;
101 char* name;
102};
103
107 uint64_t duration;
108 // 以下字段仅在收到消息时有效
109 char* url;
110 char* md5;
111 char* ext;
112 char* name;
113};
114
118 uint64_t duration;
119 uint32_t width;
120 uint32_t height;
121 // 以下字段仅在收到消息时有效
122 char* url;
123 char* md5;
124 char* ext;
125 char* name;
126};
127
130 double latitude;
131 double longitude;
132 char* title;
133};
134
137 uint32_t id;
138 char* data;
139};
140
144 // 以下字段仅在收到消息时有效
145 char* url;
146 char* md5;
147 char* ext;
148 char* name;
149};
150
153 uint32_t type;
154 char* data;
155};
156
175};
176
182 char* msg_body;
184 char* msg_ext;
185};
186
201};
202
206 uint64_t server_id;
208 uint64_t channel_id;
212 uint32_t msg_sub_type;
214 char* msg_body;
216 char* msg_ext;
252 char* env;
255 union {
272 };
273 // 以下字段仅在收到消息时有效
277 char* msg_id;
289 uint64_t timestamp;
298 // 内部字段, 无需关注
305};
306
315};
316
323};
324
328 uint32_t res_code;
333};
334
338 uint32_t res_code;
343};
344
348 uint32_t res_code;
353};
354
357
361 uint32_t res_code;
368};
369
372
375
378
381
384
387
391 uint64_t type;
393 uint64_t count;
395 uint64_t create_time;
399 char** accids;
402};
403
407 uint64_t server_id;
409 uint64_t channel_id;
413 uint64_t count;
415 uint64_t timestamp;
420};
421
425 uint32_t res_code;
430};
431
435 uint32_t total;
437 uint64_t timestamp;
442};
443
447 uint32_t res_code;
454};
455
459 uint32_t res_code;
466};
467
471 uint32_t res_code;
480};
481
484
488 char* msg_id;
491};
492
496 uint32_t res_code;
503};
504
508 uint32_t res_code;
512 const char* value;
513};
514
515/* ---------------------------- 接口回调声明 --------------------------- */
516
559
560/* ---------------------------- 接口调用参数 --------------------------- */
561
568};
569
576};
577
586};
587
599 uint64_t timestamp;
604 // 以下为待更新的消息属性
608 char* msg_body;
610 char* msg_ext;
612 uint32_t msg_sub_type;
613};
614
626 uint64_t timestamp;
629};
630
642 uint64_t timestamp;
645};
646
654 uint64_t server_id;
656 uint64_t channel_id;
658 uint64_t from_time;
660 uint64_t to_time;
664 uint32_t limit;
669};
670
678 uint64_t server_id;
680 uint64_t channel_id;
682 uint64_t timestamp;
684 uint32_t limit;
685};
686
697};
698
706 uint64_t server_id;
708 uint64_t* channel_ids;
711};
712
718 uint64_t server_id;
720 uint64_t channel_id;
723};
724
734 uint64_t timestamp;
735};
736
747};
748
754 uint64_t timestamp;
755};
756
761 uint64_t server_id;
763 uint64_t channel_id;
770};
771
782};
783
791 uint64_t from_time;
793 uint64_t to_time;
797 uint32_t limit;
802};
803
809 uint64_t server_id;
811 uint64_t channel_id;
818};
819
827 uint32_t type;
832};
833
836
842 uint64_t server_id;
844 uint64_t channel_id;
851};
852
860 char* keyword;
862 uint64_t server_id;
864 uint64_t channel_id;
868 uint64_t from_time;
870 uint64_t to_time;
878 uint32_t* sub_types;
886 uint32_t limit;
888 char* cursor;
889};
890
898 uint64_t server_id;
900 uint64_t channel_id;
902 char* value;
903};
904
907
915 uint64_t server_id;
917 uint64_t channel_id;
918};
919
922
930 uint64_t server_id;
932 uint64_t channel_id;
933};
934
935#ifdef __cplusplus
936}
937#endif
938
939#endif // __NIM_QCHAT_MESSAGE_DEF_H__
NIMQChatBaseResp NIMQChatInsertOrReplaceTextCacheResp
Definition: nim_qchat_message_def.h:906
void(* nim_qchat_get_message_history_by_ids_cb_func)(const NIMQChatGetMessageHistoryByIdsResp *resp)
根据消息 ID 查询消息回调
Definition: nim_qchat_message_def.h:534
void(* nim_qchat_get_mentioned_me_messages_cb_func)(const NIMQChatGetMentionedMeMessagesResp *resp)
查询未读消息中 @ 当前用户的消息回调
Definition: nim_qchat_message_def.h:536
void(* nim_qchat_update_msg_cb_func)(const NIMQChatUpdateMessageResp *resp)
更新消息回调
Definition: nim_qchat_message_def.h:524
NIMQChatGetMessagesResp NIMQChatGetLastMessagesResp
Definition: nim_qchat_message_def.h:371
NIMQChatSendMessageResp NIMQChatReplyMsgResp
Definition: nim_qchat_message_def.h:356
void(* nim_qchat_send_msg_cb_func)(const NIMQChatSendMessageResp *resp)
发送消息回调
Definition: nim_qchat_message_def.h:522
void(* nim_qchat_add_quick_comment_cb_func)(const NIMQChatAddQuickCommentResp *resp)
添加快捷回复回调
Definition: nim_qchat_message_def.h:548
void(* nim_qchat_get_text_cache_cb_func)(const NIMQChatGetTextCacheResp *resp)
文本缓存回调
Definition: nim_qchat_message_def.h:558
void(* nim_qchat_get_thread_messages_meta_cb_func)(const NIMQChatGetThreadRootMessagesMetaResp *resp)
查询Thread消息元信息回调
Definition: nim_qchat_message_def.h:546
NIMQChatBaseResp NIMQChatDeleteTextCacheResp
@broef 删除文本缓存回包
Definition: nim_qchat_message_def.h:921
NIMQChatGetMessagesResp NIMQChatGetMessagesCacheResp
Definition: nim_qchat_message_def.h:380
void(* nim_qchat_get_thread_messages_cb_func)(const NIMQChatGetThreadMessagesResp *resp)
查询Thread消息回调
Definition: nim_qchat_message_def.h:544
void(* nim_qchat_remove_quick_comment_cb_func)(const NIMQChatRemoveQuickCommentResp *resp)
删除快捷回复回调
Definition: nim_qchat_message_def.h:550
void(* nim_qchat_recv_msg_cb_func)(const NIMQChatRecvMsgResp *resp)
接收消息回调
Definition: nim_qchat_message_def.h:518
void(* nim_qchat_are_mentioned_me_messages_cb_func)(const NIMQChatAreMentionedMeMessagesResp *resp)
查询消息是否 @ 当前用户回调
Definition: nim_qchat_message_def.h:538
NIMQChatBaseResp NIMQChatRemoveQuickCommentResp
Definition: nim_qchat_message_def.h:386
NIMQChatMessageSearchPageResp NIMQChatGetMentionedMeMessagesResp
Definition: nim_qchat_message_def.h:483
void(* nim_qchat_query_history_msg_cache_cb_func)(const NIMQChatGetMessagesCacheResp *resp)
查询本地缓存消息历史
Definition: nim_qchat_message_def.h:542
NIMQChatGetReferMessageType
Definition: nim_qchat_message_def.h:78
@ kNIMQChatGetReferMessageTypeAll
获取以上两个条件的消息
Definition: nim_qchat_message_def.h:84
@ kNIMQChatGetReferMessageTypeThreadRoot
获取 thread 根消息
Definition: nim_qchat_message_def.h:82
@ kNIMQChatGetReferMessageTypeReply
获取被回复的消息
Definition: nim_qchat_message_def.h:80
void(* nim_qchat_get_refer_messages_cb_func)(const NIMQChatGetReferMessagesResp *resp)
获取关联消息回调
Definition: nim_qchat_message_def.h:540
void(* nim_qchat_write_text_cache_cb_func)(const NIMQChatBaseResp *resp)
写入文本缓存回调
Definition: nim_qchat_message_def.h:556
void(* nim_qchat_ack_cb_func)(const NIMQChatMarkMessageReadResp *resp)
消息标记已读回调
Definition: nim_qchat_message_def.h:526
NIMQChatQuickCommentOperation
Definition: nim_qchat_message_def.h:70
@ kNIMQChatQuickCommentRemove
删除
Definition: nim_qchat_message_def.h:74
@ kNIMQChatQuickCommentAdd
添加
Definition: nim_qchat_message_def.h:72
NIMQChatGetMessagesResp NIMQChatGetReferMessagesResp
Definition: nim_qchat_message_def.h:377
NIMQChatGetMessagesResp NIMQChatGetMessageHistoryByIdsResp
Definition: nim_qchat_message_def.h:374
NIMQChatMsgType
Definition: nim_qchat_message_def.h:46
@ kNIMQChatMsgTypeNotification
通知类型消息
Definition: nim_qchat_message_def.h:58
@ kNIMQChatMsgTypeVideo
视频类型消息
Definition: nim_qchat_message_def.h:54
@ kNIMQChatMsgTypeCustom
自定义消息
Definition: nim_qchat_message_def.h:64
@ kNIMQChatMsgTypeText
文本类型消息
Definition: nim_qchat_message_def.h:48
@ kNIMQChatMsgTypeTips
提醒类型消息
Definition: nim_qchat_message_def.h:62
@ kNIMQChatMsgTypeAudio
音频类型消息
Definition: nim_qchat_message_def.h:52
@ kNIMQChatMsgTypeLocation
位置类型消息
Definition: nim_qchat_message_def.h:56
@ kNIMQChatMsgTypeFile
文件类型消息
Definition: nim_qchat_message_def.h:60
@ kNIMQChatMsgTypeUnknown
未知类型消息,作为默认值
Definition: nim_qchat_message_def.h:66
@ kNIMQChatMsgTypeImage
图片类型消息
Definition: nim_qchat_message_def.h:50
void(* nim_qchat_query_history_msg_cb_func)(const NIMQChatGetMessagesResp *resp)
查询历史消息回调
Definition: nim_qchat_message_def.h:528
NIMQChatBaseResp NIMQChatAddQuickCommentResp
Definition: nim_qchat_message_def.h:383
NIMQChatMessageStatus
Definition: nim_qchat_message_def.h:23
@ kMsgStatusSendFailed
发送失败的消息
Definition: nim_qchat_message_def.h:31
@ kMsgStatusRevoke
被撤回的消息
Definition: nim_qchat_message_def.h:27
@ kMsgStatusNormal
普通消息状态
Definition: nim_qchat_message_def.h:25
@ kMsgStatusUser
Definition: nim_qchat_message_def.h:32
@ kMsgStatusDelete
被删除的消息
Definition: nim_qchat_message_def.h:29
void(* nim_qchat_msg_updated_cb_func)(const NIMQChatMsgUpdatedResp *resp)
消息更新通知回调
Definition: nim_qchat_message_def.h:520
void(* nim_qchat_get_quick_comments_cb_func)(const NIMQChatGetQuickCommentsResp *resp)
查询快捷回复回调
Definition: nim_qchat_message_def.h:552
void(* nim_qchat_message_search_page_cb_func)(const NIMQChatMessageSearchPageResp *resp)
消息搜索回调
Definition: nim_qchat_message_def.h:554
void(* nim_qchat_reply_msg_cb_func)(const NIMQChatReplyMsgResp *resp)
回复消息回调
Definition: nim_qchat_message_def.h:532
NIMQChatAddQuickCommentParam NIMQChatRemoveQuickCommentParam
Definition: nim_qchat_message_def.h:835
NIMQChatMessageNotifyReason
Definition: nim_qchat_message_def.h:36
@ kMessageNotifyReasonNotifyAll
本消息发给了channel里的所有人
Definition: nim_qchat_message_def.h:40
@ kMessageNotifyReasonNotifySubscribe
本消息发给了channel里的订阅者
Definition: nim_qchat_message_def.h:42
@ kMessageNotifyReasonUnkonw
未知原因
Definition: nim_qchat_message_def.h:38
void(* nim_qchat_get_last_messages_cb_func)(const NIMQChatGetLastMessagesResp *resp)
查询频道最后一条消息回调
Definition: nim_qchat_message_def.h:530
NIMQChatMessageSearchSort
消息搜索排序规则
Definition: nim_qchat_public_def.h:135
NIMQChatSearchOrder
搜索排序顺序
Definition: nim_qchat_public_def.h:109
Definition: nim_qchat_message_def.h:821
NIMQChatMessage quote_message
要被添加快捷评论的消息体
Definition: nim_qchat_message_def.h:825
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:831
uint32_t type
快捷评论类型,是一个数字,大于0
Definition: nim_qchat_message_def.h:827
NIMQChatQuickCommentOperation operation
快捷评论操作,1 是添加,2 是删除
Definition: nim_qchat_message_def.h:829
nim_qchat_add_quick_comment_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:823
Definition: nim_qchat_message_def.h:688
nim_qchat_are_mentioned_me_messages_cb_func cb
查询消息是否 @ 当前用户的异步回调
Definition: nim_qchat_message_def.h:690
size_t message_count
要查询的息数量
Definition: nim_qchat_message_def.h:694
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:692
NIMQChatMessage * messages
要查询的消息列表
Definition: nim_qchat_message_def.h:696
Definition: nim_qchat_message_def.h:494
NIMQChatMentionedResult * result
结果列表
Definition: nim_qchat_message_def.h:502
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:496
size_t result_count
结果数量
Definition: nim_qchat_message_def.h:500
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:498
Definition: nim_qchat_message_def.h:105
char * name
Definition: nim_qchat_message_def.h:112
char * file_path
Definition: nim_qchat_message_def.h:106
char * md5
Definition: nim_qchat_message_def.h:110
char * url
Definition: nim_qchat_message_def.h:109
char * ext
Definition: nim_qchat_message_def.h:111
uint64_t duration
Definition: nim_qchat_message_def.h:107
Definition: nim_qchat_public_def.h:141
Definition: nim_qchat_public_def.h:157
Definition: nim_qchat_message_def.h:88
char * msg_attach
Definition: nim_qchat_message_def.h:89
Definition: nim_qchat_message_def.h:632
NIMQChatMessageUpdateInfo update_info
更新信息
Definition: nim_qchat_message_def.h:644
NIMQChatChannelIDInfo id_info
频道ID信息
Definition: nim_qchat_message_def.h:638
uint64_t timestamp
消息发送时间戳
Definition: nim_qchat_message_def.h:642
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:636
nim_qchat_update_msg_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:634
uint64_t msg_server_id
消息服务器 id
Definition: nim_qchat_message_def.h:640
Definition: nim_qchat_message_def.h:909
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:915
nim_qchat_write_text_cache_cb_func cb
写入文本缓存异步回调
Definition: nim_qchat_message_def.h:911
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:917
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:913
Definition: nim_qchat_message_def.h:142
char * md5
Definition: nim_qchat_message_def.h:146
char * file_path
Definition: nim_qchat_message_def.h:143
char * name
Definition: nim_qchat_message_def.h:148
char * url
Definition: nim_qchat_message_def.h:145
char * ext
Definition: nim_qchat_message_def.h:147
Definition: nim_qchat_message_def.h:700
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:704
uint64_t * channel_ids
频道ID
Definition: nim_qchat_message_def.h:708
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:706
nim_qchat_get_last_messages_cb_func cb
查询历史消息异步回调
Definition: nim_qchat_message_def.h:702
size_t channel_ids_count
频道ID数量
Definition: nim_qchat_message_def.h:710
Definition: nim_qchat_message_def.h:672
uint64_t timestamp
查询的起始时间位置, 0表示当前时间
Definition: nim_qchat_message_def.h:682
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:680
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:676
uint32_t limit
查询条数
Definition: nim_qchat_message_def.h:684
nim_qchat_get_mentioned_me_messages_cb_func cb
查询未读消息中 @ 当前用户的消息异步回调
Definition: nim_qchat_message_def.h:674
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:678
Definition: nim_qchat_message_def.h:750
uint64_t msg_server_id
消息服务器 ID
Definition: nim_qchat_message_def.h:752
uint64_t timestamp
消息发送时间戳
Definition: nim_qchat_message_def.h:754
Definition: nim_qchat_message_def.h:758
size_t column_count
查询的消息数量
Definition: nim_qchat_message_def.h:767
nim_qchat_get_message_history_by_ids_cb_func cb
Definition: nim_qchat_message_def.h:759
uint64_t channel_id
频道 ID
Definition: nim_qchat_message_def.h:763
NIMQChatGetMessageColumns * columns
消息列表
Definition: nim_qchat_message_def.h:765
uint64_t server_id
服务器 ID
Definition: nim_qchat_message_def.h:761
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:769
Definition: nim_qchat_message_def.h:714
nim_qchat_query_history_msg_cache_cb_func cb
查询本地缓存消息历史异步回调
Definition: nim_qchat_message_def.h:716
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:722
uint64_t channel_id
频道 ID
Definition: nim_qchat_message_def.h:720
uint64_t server_id
服务器 ID
Definition: nim_qchat_message_def.h:718
Definition: nim_qchat_message_def.h:648
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:654
bool include_local_messages
是否包含本地消息
Definition: nim_qchat_message_def.h:668
uint32_t limit
查询条数
Definition: nim_qchat_message_def.h:664
bool reverse
是否倒序, false: 否, true: 是
Definition: nim_qchat_message_def.h:666
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:652
nim_qchat_query_history_msg_cb_func cb
查询历史消息异步回调
Definition: nim_qchat_message_def.h:650
uint64_t exclude_msg_server_id
排除某条消息, msg server id
Definition: nim_qchat_message_def.h:662
uint64_t from_time
查询开始时间
Definition: nim_qchat_message_def.h:658
uint64_t to_time
查询结束时间
Definition: nim_qchat_message_def.h:660
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:656
Definition: nim_qchat_message_def.h:359
size_t messages_count
消息数量
Definition: nim_qchat_message_def.h:365
NIMQChatMessage * messages
消息列表
Definition: nim_qchat_message_def.h:367
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:363
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:361
Definition: nim_qchat_message_def.h:838
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:850
size_t msg_server_id_count
消息服务器 ID 列表数量
Definition: nim_qchat_message_def.h:848
uint64_t * msg_server_id_list
消息服务器 ID 列表
Definition: nim_qchat_message_def.h:846
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:842
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:844
nim_qchat_get_quick_comments_cb_func cb
获取快捷评论异步回调
Definition: nim_qchat_message_def.h:840
Definition: nim_qchat_message_def.h:423
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:427
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:425
NIMQChatQuickCommentInfo * comments
Definition: nim_qchat_message_def.h:428
size_t comments_count
Definition: nim_qchat_message_def.h:429
Definition: nim_qchat_message_def.h:773
nim_qchat_get_refer_messages_cb_func cb
获取引用消息异步回调
Definition: nim_qchat_message_def.h:775
NIMQChatGetReferMessageType type
查询的类型
Definition: nim_qchat_message_def.h:777
NIMQChatMessage message
要查询的消息体
Definition: nim_qchat_message_def.h:779
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:781
Definition: nim_qchat_message_def.h:924
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:932
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:928
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:930
nim_qchat_get_text_cache_cb_func cb
获取文本缓存异步回调
Definition: nim_qchat_message_def.h:926
Definition: nim_qchat_message_def.h:506
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:510
const char * value
文本内容
Definition: nim_qchat_message_def.h:512
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:508
Definition: nim_qchat_message_def.h:785
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:789
uint64_t exclude_msg_server_id
排除某条消息, message server id
Definition: nim_qchat_message_def.h:795
nim_qchat_get_thread_messages_cb_func cb
查询 thread 消息异步回调
Definition: nim_qchat_message_def.h:787
uint32_t limit
查询条数
Definition: nim_qchat_message_def.h:797
bool reverse
是否倒序, false: 否, true: 是
Definition: nim_qchat_message_def.h:799
uint64_t from_time
查询开始时间
Definition: nim_qchat_message_def.h:791
uint64_t to_time
查询结束时间
Definition: nim_qchat_message_def.h:793
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:801
Definition: nim_qchat_message_def.h:445
size_t messages_count
Definition: nim_qchat_message_def.h:453
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:447
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:449
NIMQChatMessage root_message
Definition: nim_qchat_message_def.h:451
NIMQChatThreadMessageMetaInfo meta_info
Definition: nim_qchat_message_def.h:450
NIMQChatMessage * messages
Definition: nim_qchat_message_def.h:452
Definition: nim_qchat_message_def.h:805
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:811
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:817
nim_qchat_get_thread_messages_meta_cb_func cb
查询 thread 消息元信息异步回调
Definition: nim_qchat_message_def.h:807
size_t message_count
要查询的 thread root 消息数量
Definition: nim_qchat_message_def.h:815
NIMQChatMessage * messages
要查询的 thread root 消息列表
Definition: nim_qchat_message_def.h:813
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:809
Definition: nim_qchat_message_def.h:457
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:459
NIMQChatThreadMessageMetaInfo * meta_infos
消息元信息
Definition: nim_qchat_message_def.h:461
size_t meta_info_count
消息元信息数量
Definition: nim_qchat_message_def.h:463
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:465
Definition: nim_qchat_message_def.h:93
char * name
Definition: nim_qchat_message_def.h:101
uint32_t width
Definition: nim_qchat_message_def.h:95
char * file_path
Definition: nim_qchat_message_def.h:94
uint32_t height
Definition: nim_qchat_message_def.h:96
char * ext
Definition: nim_qchat_message_def.h:100
char * url
Definition: nim_qchat_message_def.h:98
char * md5
Definition: nim_qchat_message_def.h:99
Definition: nim_qchat_message_def.h:892
char * value
缓存的内容
Definition: nim_qchat_message_def.h:902
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:896
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:898
nim_qchat_write_text_cache_cb_func cb
写入文本缓存异步回调
Definition: nim_qchat_message_def.h:894
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:900
Definition: nim_qchat_message_def.h:129
char * title
Definition: nim_qchat_message_def.h:132
double latitude
Definition: nim_qchat_message_def.h:130
double longitude
Definition: nim_qchat_message_def.h:131
Definition: nim_qchat_message_def.h:726
NIMQChatChannelIDInfo id_info
标记已读channel ID
Definition: nim_qchat_message_def.h:732
uint64_t timestamp
标记消息已读时间戳
Definition: nim_qchat_message_def.h:734
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:730
nim_qchat_ack_cb_func cb
标记消息已读异步回调
Definition: nim_qchat_message_def.h:728
Definition: nim_qchat_message_def.h:346
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:350
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:348
NIMQChatUnreadInfo unread_info
未读数信息
Definition: nim_qchat_message_def.h:352
Definition: nim_qchat_message_def.h:486
char * msg_id
消息 id
Definition: nim_qchat_message_def.h:488
bool mentioned_me
是否被提及
Definition: nim_qchat_message_def.h:490
Definition: nim_qchat_public_def.h:186
Definition: nim_qchat_message_def.h:204
uint32_t msg_sub_type
消息子类型
Definition: nim_qchat_message_def.h:212
bool need_push_nick
是否需要推送昵称, false: 不需要, true: 需要, 默认 true
Definition: nim_qchat_message_def.h:240
uint32_t from_client_type
消息发送者的客户端类型
Definition: nim_qchat_message_def.h:283
NIMQChatNotificationAttach notification_attach
通知消息附件
Definition: nim_qchat_message_def.h:267
bool route_enable
是否需要抄送, false: 不需要, true: 需要, 默认 true
Definition: nim_qchat_message_def.h:242
size_t mention_accids_count
@成员列表长度
Definition: nim_qchat_message_def.h:224
char * env
环境变量,用于指向不同的抄送、第三方回调等配置
Definition: nim_qchat_message_def.h:252
char * push_payload
自定义的推送属性,限制json
Definition: nim_qchat_message_def.h:232
NIMQChatMsgType msg_type
消息类型
Definition: nim_qchat_message_def.h:210
NIMQChatTipsAttach tips_attach
提醒消息附件
Definition: nim_qchat_message_def.h:271
char ** mention_accids
@成员列表
Definition: nim_qchat_message_def.h:222
NIMQChatVideoAttach video_attach
视频消息附件
Definition: nim_qchat_message_def.h:263
bool history_enable
该消息是否存储云端历史,0:不支持,1:支持
Definition: nim_qchat_message_def.h:230
uint64_t server_id
消息所属的server id
Definition: nim_qchat_message_def.h:206
bool accids_of_mentioned_roles_available
@身份组所包含的accid列表是否有效
Definition: nim_qchat_message_def.h:300
bool mention_all
是否@所有人,false:否,true:是
Definition: nim_qchat_message_def.h:220
uint64_t channel_id
消息所属的channel id
Definition: nim_qchat_message_def.h:208
char * callback_ext
第三方回调扩展字段
Definition: nim_qchat_message_def.h:254
char * from_accid
消息发送者的accid
Definition: nim_qchat_message_def.h:281
bool push_enable
是否需要推送, false: 不需要, true: 需要, 默认 false
Definition: nim_qchat_message_def.h:236
NIMQChatMessageThreadInfo thread_info
回复消息信息
Definition: nim_qchat_message_def.h:244
char * push_content
自定义的推送内容
Definition: nim_qchat_message_def.h:234
NIMQChatImageAttach image_attach
图片消息附件
Definition: nim_qchat_message_def.h:259
char * from_device_id
消息发送者的设备id
Definition: nim_qchat_message_def.h:285
uint64_t * mention_role_ids
@身份组列表
Definition: nim_qchat_message_def.h:226
char ** accids_of_mentioned_roles
@身份组所包含的accid列表(部分)
Definition: nim_qchat_message_def.h:302
NIMQChatFileAttach file_attach
文件消息附件
Definition: nim_qchat_message_def.h:269
bool need_badge
是否需要消息计数, false: 不需要, true: 需要, 默认 true
Definition: nim_qchat_message_def.h:238
NIMQChatAudioAttach audio_attach
音频消息附件
Definition: nim_qchat_message_def.h:261
uint64_t update_timestamp
消息更新时间戳
Definition: nim_qchat_message_def.h:291
size_t mention_role_ids_count
@身份组列表长度
Definition: nim_qchat_message_def.h:228
char * from_nick
消息发送者的昵称
Definition: nim_qchat_message_def.h:287
NIMQChatLocationAttach location_attach
位置消息附件
Definition: nim_qchat_message_def.h:265
char * msg_ext
消息扩展字段
Definition: nim_qchat_message_def.h:216
NIMQChatMessageNotifyReason notify_reason
消息下发原因
Definition: nim_qchat_message_def.h:293
uint64_t timestamp
消息发送时间戳
Definition: nim_qchat_message_def.h:289
uint64_t msg_server_id
消息服务器 id
Definition: nim_qchat_message_def.h:279
NIMQChatMessageAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_message_def.h:246
NIMQChatDefaultAttach default_attach
默认附件
Definition: nim_qchat_message_def.h:257
char * msg_body
消息内容
Definition: nim_qchat_message_def.h:214
NIMQChatMessageStatus status
消息状态
Definition: nim_qchat_message_def.h:275
size_t accids_of_mentioned_roles_count
@身份组所包含的accid列表长度(部分)
Definition: nim_qchat_message_def.h:304
char * anti_spam_result
反垃圾结果
Definition: nim_qchat_message_def.h:250
NIMQChatMessageUpdateOpeInfo update_ope_info
上次消息变更操作信息
Definition: nim_qchat_message_def.h:297
char * msg_id
消息id
Definition: nim_qchat_message_def.h:277
NIMQChatMessageUpdateContent update_content
上次消息变更内容
Definition: nim_qchat_message_def.h:295
bool resend_flag
重发标记,false:不是重发,true:是重发
Definition: nim_qchat_message_def.h:218
bool is_anti_spamed
是否被反垃圾拦截, false: 未被拦截, true: 已被拦截, 默认 false
Definition: nim_qchat_message_def.h:248
Definition: nim_qchat_message_def.h:854
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:858
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:864
char * from_accid
消息发送者ID
Definition: nim_qchat_message_def.h:866
uint64_t from_time
搜索的开始时间
Definition: nim_qchat_message_def.h:868
size_t msg_types_count
搜索的消息类型数量
Definition: nim_qchat_message_def.h:872
char * keyword
搜索的关键字
Definition: nim_qchat_message_def.h:860
NIMQChatSearchOrder order
排序顺序
Definition: nim_qchat_message_def.h:882
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:862
NIMQChatMsgType * msg_types
搜索的消息类型
Definition: nim_qchat_message_def.h:874
uint32_t * sub_types
搜索的消息子类型
Definition: nim_qchat_message_def.h:878
char * cursor
查询游标, 查询的起始位置
Definition: nim_qchat_message_def.h:888
size_t sub_types_count
搜索的消息子类型数量
Definition: nim_qchat_message_def.h:876
NIMQChatMessageSearchSort sort
排序规则
Definition: nim_qchat_message_def.h:884
bool include_self
是否包含自己的消息
Definition: nim_qchat_message_def.h:880
uint64_t to_time
搜索的结束时间
Definition: nim_qchat_message_def.h:870
nim_qchat_message_search_page_cb_func cb
消息搜索异步回调
Definition: nim_qchat_message_def.h:856
uint32_t limit
查询条数
Definition: nim_qchat_message_def.h:886
Definition: nim_qchat_message_def.h:469
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:473
size_t messages_count
消息数量
Definition: nim_qchat_message_def.h:477
NIMQChatMessage * messages
消息列表
Definition: nim_qchat_message_def.h:479
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:471
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_message_def.h:475
Definition: nim_qchat_message_def.h:158
char * reply_from_accid
被回复的消息所有者 ID
Definition: nim_qchat_message_def.h:160
char * thread_root_accid
thread 根消息的所有者 ID
Definition: nim_qchat_message_def.h:168
char * reply_msg_client_id
被回复消息得客户端消息 ID
Definition: nim_qchat_message_def.h:166
uint64_t reply_msg_timestamp
被回复消息得创建时间
Definition: nim_qchat_message_def.h:162
uint64_t thread_root_msg_timestamp
thread 根消息的创建时间
Definition: nim_qchat_message_def.h:170
uint64_t thread_root_msg_server_id
thread 根消息的服务器消息 ID
Definition: nim_qchat_message_def.h:172
char * thread_root_msg_client_id
thread 根消息的客户端消息 ID
Definition: nim_qchat_message_def.h:174
uint64_t reply_msg_server_id
被回复消息得服务器消息 ID
Definition: nim_qchat_message_def.h:164
Definition: nim_qchat_message_def.h:178
NIMQChatMessageStatus status
消息状态
Definition: nim_qchat_message_def.h:180
char * msg_ext
消息扩展字段
Definition: nim_qchat_message_def.h:184
char * msg_body
消息内容
Definition: nim_qchat_message_def.h:182
Definition: nim_qchat_public_def.h:165
Definition: nim_qchat_message_def.h:188
uint32_t operator_client_type
操作者客户端类型
Definition: nim_qchat_message_def.h:192
char * push_payload
推送payload
Definition: nim_qchat_message_def.h:200
char * push_content
推送文案
Definition: nim_qchat_message_def.h:198
char * operator_id
操作者账号
Definition: nim_qchat_message_def.h:190
char * postscript
操作附言
Definition: nim_qchat_message_def.h:194
char * extension
操作扩展字段
Definition: nim_qchat_message_def.h:196
Definition: nim_qchat_message_def.h:308
NIMQChatMessageUpdateInfo update_info
消息更新信息
Definition: nim_qchat_message_def.h:312
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:310
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:314
Definition: nim_qchat_message_def.h:136
uint32_t id
Definition: nim_qchat_message_def.h:137
char * data
Definition: nim_qchat_message_def.h:138
Definition: nim_qchat_public_def.h:204
Definition: nim_qchat_message_def.h:389
size_t account_count
account ID 总数
Definition: nim_qchat_message_def.h:401
uint64_t count
这个评论的数量
Definition: nim_qchat_message_def.h:393
bool include_yourself
是否包含自己
Definition: nim_qchat_message_def.h:397
uint64_t type
评论类型
Definition: nim_qchat_message_def.h:391
char ** accids
若干个添加过评论的 account ID
Definition: nim_qchat_message_def.h:399
uint64_t create_time
创建时间
Definition: nim_qchat_message_def.h:395
Definition: nim_qchat_message_def.h:405
uint64_t server_id
评论所在服务器 ID
Definition: nim_qchat_message_def.h:407
uint64_t count
总的评论数量
Definition: nim_qchat_message_def.h:413
NIMQChatQuickCommentDetail * detail
评论详情
Definition: nim_qchat_message_def.h:417
size_t detail_count
评论详情数量
Definition: nim_qchat_message_def.h:419
uint64_t msg_server_id
评论所属消息服务器 ID
Definition: nim_qchat_message_def.h:411
uint64_t timestamp
最后一次操作的时间
Definition: nim_qchat_message_def.h:415
uint64_t channel_id
评论所在频道 ID
Definition: nim_qchat_message_def.h:409
Definition: nim_qchat_message_def.h:318
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:320
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:322
Definition: nim_qchat_message_def.h:571
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:575
nim_qchat_msg_updated_cb_func cb
消息更新异步回调
Definition: nim_qchat_message_def.h:573
Definition: nim_qchat_message_def.h:563
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:567
nim_qchat_recv_msg_cb_func cb
接收消息异步回调
Definition: nim_qchat_message_def.h:565
Definition: nim_qchat_message_def.h:738
nim_qchat_reply_msg_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:740
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:746
NIMQChatMessage quote_message
被引用的消息体
Definition: nim_qchat_message_def.h:742
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:744
Definition: nim_qchat_message_def.h:616
uint64_t timestamp
消息发送时间戳
Definition: nim_qchat_message_def.h:626
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:620
nim_qchat_update_msg_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:618
NIMQChatChannelIDInfo id_info
频道ID信息
Definition: nim_qchat_message_def.h:622
NIMQChatMessageUpdateInfo update_info
更新信息
Definition: nim_qchat_message_def.h:628
uint64_t msg_server_id
消息服务器 id
Definition: nim_qchat_message_def.h:624
Definition: nim_qchat_message_def.h:579
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:583
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:585
nim_qchat_send_msg_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:581
Definition: nim_qchat_message_def.h:326
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:332
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:328
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:330
Definition: nim_qchat_message_def.h:433
uint64_t thread_msg_timestamp
thread 消息时间戳
Definition: nim_qchat_message_def.h:441
uint64_t thread_msg_server_id
thread 消息服务器 ID
Definition: nim_qchat_message_def.h:439
uint32_t total
总数
Definition: nim_qchat_message_def.h:435
uint64_t timestamp
最后一条消息时间戳
Definition: nim_qchat_message_def.h:437
Definition: nim_qchat_message_def.h:152
char * data
Definition: nim_qchat_message_def.h:154
uint32_t type
Definition: nim_qchat_message_def.h:153
Definition: nim_qchat_public_def.h:214
Definition: nim_qchat_message_def.h:589
uint32_t msg_sub_type
消息子类型
Definition: nim_qchat_message_def.h:612
NIMQChatMessageUpdateInfo update_info
更新信息
Definition: nim_qchat_message_def.h:601
uint64_t msg_server_id
消息服务器 id
Definition: nim_qchat_message_def.h:597
NIMQChatChannelIDInfo id_info
频道ID信息
Definition: nim_qchat_message_def.h:595
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:593
NIMQChatMessageStatus status
消息状态, 不允许更新为删除或撤回
Definition: nim_qchat_message_def.h:606
uint64_t timestamp
消息发送时间戳
Definition: nim_qchat_message_def.h:599
char * msg_ext
消息扩展字段
Definition: nim_qchat_message_def.h:610
NIMQChatMessageAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_message_def.h:603
char * msg_body
消息体
Definition: nim_qchat_message_def.h:608
nim_qchat_update_msg_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:591
Definition: nim_qchat_message_def.h:336
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:342
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:338
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:340
Definition: nim_qchat_message_def.h:116
uint64_t duration
Definition: nim_qchat_message_def.h:118
char * file_path
Definition: nim_qchat_message_def.h:117
char * ext
Definition: nim_qchat_message_def.h:124
char * url
Definition: nim_qchat_message_def.h:122
char * name
Definition: nim_qchat_message_def.h:125
uint32_t height
Definition: nim_qchat_message_def.h:120
uint32_t width
Definition: nim_qchat_message_def.h:119
char * md5
Definition: nim_qchat_message_def.h:123