NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_qchat_message_def.h 文件参考

浏览源代码.

struct  NIMQChatDefaultAttach
 
struct  NIMQChatImageAttach
 
struct  NIMQChatAudioAttach
 
struct  NIMQChatVideoAttach
 
struct  NIMQChatLocationAttach
 
struct  NIMQChatNotificationAttach
 
struct  NIMQChatFileAttach
 
struct  NIMQChatTipsAttach
 
struct  NIMQChatMessageThreadInfo
 
struct  NIMQChatMessageUpdateContent
 
struct  NIMQChatMessageUpdateOpeInfo
 
struct  NIMQChatMessage
 
struct  NIMQChatMsgUpdatedResp
 
struct  NIMQChatRecvMsgResp
 
struct  NIMQChatSendMessageResp
 
struct  NIMQChatUpdateMessageResp
 
struct  NIMQChatMarkMessageReadResp
 
struct  NIMQChatGetMessagesResp
 
struct  NIMQChatQuickCommentDetail
 
struct  NIMQChatQuickCommentInfo
 
struct  NIMQChatGetQuickCommentsResp
 
struct  NIMQChatThreadMessageMetaInfo
 
struct  NIMQChatGetThreadMessagesResp
 
struct  NIMQChatGetThreadRootMessagesMetaResp
 
struct  NIMQChatMessageSearchPageResp
 
struct  NIMQChatMentionedResult
 
struct  NIMQChatAreMentionedMeMessagesResp
 
struct  NIMQChatGetTextCacheResp
 
struct  NIMQChatRegRecvMsgCbParam
 
struct  NIMQChatRegMsgUpdatedCbParam
 
struct  NIMQChatSendMessageParam
 
struct  NIMQChatUpdateMessageParam
 
struct  NIMQChatRevokeMessageParam
 
struct  NIMQChatDeleteMessageParam
 
struct  NIMQChatGetMessagesParam
 
struct  NIMQChatGetMentionedMeMessagesParam
 
struct  NIMQChatAreMentionedMeMessagesParam
 
struct  NIMQChatGetLastMessagesParam
 
struct  NIMQChatGetMessagesCacheParam
 
struct  NIMQChatMarkMessageReadParam
 
struct  NIMQChatReplyMessageParam
 
struct  NIMQChatGetMessageColumns
 
struct  NIMQChatGetMessageHistoryByIdsParam
 
struct  NIMQChatGetReferMessagesParam
 
struct  NIMQChatGetThreadMessagesParam
 
struct  NIMQChatGetThreadRootMessagesMetaParam
 
struct  NIMQChatAddQuickCommentParam
 
struct  NIMQChatGetQuickCommentsParam
 
struct  NIMQChatMessageSearchPageParam
 
struct  NIMQChatInsertOrReplaceTextCacheParam
 
struct  NIMQChatDeleteTextCacheParam
 
struct  NIMQChatGetTextCacheParam
 

类型定义

typedef NIMQChatSendMessageResp NIMQChatReplyMsgResp
 
typedef NIMQChatGetMessagesResp NIMQChatGetLastMessagesResp
 
typedef NIMQChatGetMessagesResp NIMQChatGetMessageHistoryByIdsResp
 
typedef NIMQChatGetMessagesResp NIMQChatGetReferMessagesResp
 
typedef NIMQChatGetMessagesResp NIMQChatGetMessagesCacheResp
 
typedef NIMQChatBaseResp NIMQChatAddQuickCommentResp
 
typedef NIMQChatBaseResp NIMQChatRemoveQuickCommentResp
 
typedef NIMQChatMessageSearchPageResp NIMQChatGetMentionedMeMessagesResp
 
typedef void(* nim_qchat_recv_msg_cb_func) (const NIMQChatRecvMsgResp *resp)
 接收消息回调
 
typedef void(* nim_qchat_msg_updated_cb_func) (const NIMQChatMsgUpdatedResp *resp)
 消息更新通知回调
 
typedef void(* nim_qchat_send_msg_cb_func) (const NIMQChatSendMessageResp *resp)
 发送消息回调
 
typedef void(* nim_qchat_update_msg_cb_func) (const NIMQChatUpdateMessageResp *resp)
 更新消息回调
 
typedef void(* nim_qchat_ack_cb_func) (const NIMQChatMarkMessageReadResp *resp)
 消息标记已读回调
 
typedef void(* nim_qchat_query_history_msg_cb_func) (const NIMQChatGetMessagesResp *resp)
 查询历史消息回调
 
typedef void(* nim_qchat_get_last_messages_cb_func) (const NIMQChatGetLastMessagesResp *resp)
 查询频道最后一条消息回调
 
typedef void(* nim_qchat_reply_msg_cb_func) (const NIMQChatReplyMsgResp *resp)
 回复消息回调
 
typedef void(* nim_qchat_get_message_history_by_ids_cb_func) (const NIMQChatGetMessageHistoryByIdsResp *resp)
 根据消息 ID 查询消息回调
 
typedef void(* nim_qchat_get_mentioned_me_messages_cb_func) (const NIMQChatGetMentionedMeMessagesResp *resp)
 查询未读消息中 @ 当前用户的消息回调
 
typedef void(* nim_qchat_are_mentioned_me_messages_cb_func) (const NIMQChatAreMentionedMeMessagesResp *resp)
 查询消息是否 @ 当前用户回调
 
typedef void(* nim_qchat_get_refer_messages_cb_func) (const NIMQChatGetReferMessagesResp *resp)
 获取关联消息回调
 
typedef void(* nim_qchat_query_history_msg_cache_cb_func) (const NIMQChatGetMessagesCacheResp *resp)
 查询本地缓存消息历史
 
typedef void(* nim_qchat_get_thread_messages_cb_func) (const NIMQChatGetThreadMessagesResp *resp)
 查询Thread消息回调
 
typedef void(* nim_qchat_get_thread_messages_meta_cb_func) (const NIMQChatGetThreadRootMessagesMetaResp *resp)
 查询Thread消息元信息回调
 
typedef void(* nim_qchat_add_quick_comment_cb_func) (const NIMQChatAddQuickCommentResp *resp)
 添加快捷回复回调
 
typedef void(* nim_qchat_remove_quick_comment_cb_func) (const NIMQChatRemoveQuickCommentResp *resp)
 删除快捷回复回调
 
typedef void(* nim_qchat_get_quick_comments_cb_func) (const NIMQChatGetQuickCommentsResp *resp)
 查询快捷回复回调
 
typedef void(* nim_qchat_message_search_page_cb_func) (const NIMQChatMessageSearchPageResp *resp)
 消息搜索回调
 
typedef void(* nim_qchat_write_text_cache_cb_func) (const NIMQChatBaseResp *resp)
 写入文本缓存回调
 
typedef void(* nim_qchat_get_text_cache_cb_func) (const NIMQChatGetTextCacheResp *resp)
 文本缓存回调
 
typedef NIMQChatAddQuickCommentParam NIMQChatRemoveQuickCommentParam
 
typedef NIMQChatBaseResp NIMQChatInsertOrReplaceTextCacheResp
 
typedef NIMQChatBaseResp NIMQChatDeleteTextCacheResp
 @broef 删除文本缓存回包
 

枚举

enum  NIMQChatMessageStatus {
  kMsgStatusNormal = 0 , kMsgStatusRevoke , kMsgStatusDelete , kMsgStatusSendFailed ,
  kMsgStatusUser = 10000
}
 
enum  NIMQChatMessageNotifyReason { kMessageNotifyReasonUnkonw = 0 , kMessageNotifyReasonNotifyAll = 1 , kMessageNotifyReasonNotifySubscribe = 2 }
 
enum  NIMQChatMsgType {
  kNIMQChatMsgTypeText = 0 , kNIMQChatMsgTypeImage = 1 , kNIMQChatMsgTypeAudio = 2 , kNIMQChatMsgTypeVideo = 3 ,
  kNIMQChatMsgTypeLocation = 4 , kNIMQChatMsgTypeNotification = 5 , kNIMQChatMsgTypeFile = 6 , kNIMQChatMsgTypeTips = 10 ,
  kNIMQChatMsgTypeCustom = 100 , kNIMQChatMsgTypeUnknown = 1000
}
 
enum  NIMQChatQuickCommentOperation { kNIMQChatQuickCommentAdd = 1 , kNIMQChatQuickCommentRemove }
 
enum  NIMQChatGetReferMessageType { kNIMQChatGetReferMessageTypeReply = 1 , kNIMQChatGetReferMessageTypeThreadRoot = 2 , kNIMQChatGetReferMessageTypeAll = kNIMQChatGetReferMessageTypeReply | kNIMQChatGetReferMessageTypeThreadRoot }
 

详细描述

作者
NetEase Yunxin
版本
0.1
日期
2022-01-17

类型定义说明

◆ nim_qchat_ack_cb_func

typedef void(* nim_qchat_ack_cb_func) (const NIMQChatMarkMessageReadResp *resp)

消息标记已读回调

◆ nim_qchat_add_quick_comment_cb_func

typedef void(* nim_qchat_add_quick_comment_cb_func) (const NIMQChatAddQuickCommentResp *resp)

添加快捷回复回调

◆ nim_qchat_are_mentioned_me_messages_cb_func

typedef void(* nim_qchat_are_mentioned_me_messages_cb_func) (const NIMQChatAreMentionedMeMessagesResp *resp)

查询消息是否 @ 当前用户回调

◆ nim_qchat_get_last_messages_cb_func

typedef void(* nim_qchat_get_last_messages_cb_func) (const NIMQChatGetLastMessagesResp *resp)

查询频道最后一条消息回调

◆ nim_qchat_get_mentioned_me_messages_cb_func

typedef void(* nim_qchat_get_mentioned_me_messages_cb_func) (const NIMQChatGetMentionedMeMessagesResp *resp)

查询未读消息中 @ 当前用户的消息回调

◆ nim_qchat_get_message_history_by_ids_cb_func

typedef void(* nim_qchat_get_message_history_by_ids_cb_func) (const NIMQChatGetMessageHistoryByIdsResp *resp)

根据消息 ID 查询消息回调

◆ nim_qchat_get_quick_comments_cb_func

typedef void(* nim_qchat_get_quick_comments_cb_func) (const NIMQChatGetQuickCommentsResp *resp)

查询快捷回复回调

◆ nim_qchat_get_refer_messages_cb_func

typedef void(* nim_qchat_get_refer_messages_cb_func) (const NIMQChatGetReferMessagesResp *resp)

获取关联消息回调

◆ nim_qchat_get_text_cache_cb_func

typedef void(* nim_qchat_get_text_cache_cb_func) (const NIMQChatGetTextCacheResp *resp)

文本缓存回调

◆ nim_qchat_get_thread_messages_cb_func

typedef void(* nim_qchat_get_thread_messages_cb_func) (const NIMQChatGetThreadMessagesResp *resp)

查询Thread消息回调

◆ nim_qchat_get_thread_messages_meta_cb_func

typedef void(* nim_qchat_get_thread_messages_meta_cb_func) (const NIMQChatGetThreadRootMessagesMetaResp *resp)

查询Thread消息元信息回调

◆ nim_qchat_message_search_page_cb_func

typedef void(* nim_qchat_message_search_page_cb_func) (const NIMQChatMessageSearchPageResp *resp)

消息搜索回调

◆ nim_qchat_msg_updated_cb_func

typedef void(* nim_qchat_msg_updated_cb_func) (const NIMQChatMsgUpdatedResp *resp)

消息更新通知回调

◆ nim_qchat_query_history_msg_cache_cb_func

typedef void(* nim_qchat_query_history_msg_cache_cb_func) (const NIMQChatGetMessagesCacheResp *resp)

查询本地缓存消息历史

◆ nim_qchat_query_history_msg_cb_func

typedef void(* nim_qchat_query_history_msg_cb_func) (const NIMQChatGetMessagesResp *resp)

查询历史消息回调

◆ nim_qchat_recv_msg_cb_func

typedef void(* nim_qchat_recv_msg_cb_func) (const NIMQChatRecvMsgResp *resp)

接收消息回调

◆ nim_qchat_remove_quick_comment_cb_func

typedef void(* nim_qchat_remove_quick_comment_cb_func) (const NIMQChatRemoveQuickCommentResp *resp)

删除快捷回复回调

◆ nim_qchat_reply_msg_cb_func

typedef void(* nim_qchat_reply_msg_cb_func) (const NIMQChatReplyMsgResp *resp)

回复消息回调

◆ nim_qchat_send_msg_cb_func

typedef void(* nim_qchat_send_msg_cb_func) (const NIMQChatSendMessageResp *resp)

发送消息回调

◆ nim_qchat_update_msg_cb_func

typedef void(* nim_qchat_update_msg_cb_func) (const NIMQChatUpdateMessageResp *resp)

更新消息回调

◆ nim_qchat_write_text_cache_cb_func

typedef void(* nim_qchat_write_text_cache_cb_func) (const NIMQChatBaseResp *resp)

写入文本缓存回调

◆ NIMQChatAddQuickCommentResp

◆ NIMQChatDeleteTextCacheResp

@broef 删除文本缓存回包

◆ NIMQChatGetLastMessagesResp

◆ NIMQChatGetMentionedMeMessagesResp

◆ NIMQChatGetMessageHistoryByIdsResp

◆ NIMQChatGetMessagesCacheResp

◆ NIMQChatGetReferMessagesResp

◆ NIMQChatInsertOrReplaceTextCacheResp

◆ NIMQChatRemoveQuickCommentParam

◆ NIMQChatRemoveQuickCommentResp

◆ NIMQChatReplyMsgResp

枚举类型说明

◆ NIMQChatGetReferMessageType

枚举值
kNIMQChatGetReferMessageTypeReply 

获取被回复的消息

kNIMQChatGetReferMessageTypeThreadRoot 

获取 thread 根消息

kNIMQChatGetReferMessageTypeAll 

获取以上两个条件的消息

◆ NIMQChatMessageNotifyReason

枚举值
kMessageNotifyReasonUnkonw 

未知原因

kMessageNotifyReasonNotifyAll 

本消息发给了channel里的所有人

kMessageNotifyReasonNotifySubscribe 

本消息发给了channel里的订阅者

◆ NIMQChatMessageStatus

枚举值
kMsgStatusNormal 

普通消息状态

kMsgStatusRevoke 

被撤回的消息

kMsgStatusDelete 

被删除的消息

kMsgStatusSendFailed 

发送失败的消息

kMsgStatusUser 

◆ NIMQChatMsgType

圈组消息类型

枚举值
kNIMQChatMsgTypeText 

文本类型消息

kNIMQChatMsgTypeImage 

图片类型消息

kNIMQChatMsgTypeAudio 

音频类型消息

kNIMQChatMsgTypeVideo 

视频类型消息

kNIMQChatMsgTypeLocation 

位置类型消息

kNIMQChatMsgTypeNotification 

通知类型消息

kNIMQChatMsgTypeFile 

文件类型消息

kNIMQChatMsgTypeTips 

提醒类型消息

kNIMQChatMsgTypeCustom 

自定义消息

kNIMQChatMsgTypeUnknown 

未知类型消息,作为默认值

◆ NIMQChatQuickCommentOperation

枚举值
kNIMQChatQuickCommentAdd 

添加

kNIMQChatQuickCommentRemove 

删除