NIM PC Cross Platform SDK
nim_qchat_message_def.h File Reference

Go to the source code of this file.

Classes

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  NIMQChatRegRecvMsgCbParam
 
struct  NIMQChatRegMsgUpdatedCbParam
 
struct  NIMQChatSendMessageParam
 
struct  NIMQChatUpdateMessageParam
 
struct  NIMQChatRevokeMessageParam
 
struct  NIMQChatDeleteMessageParam
 
struct  NIMQChatGetMessagesParam
 
struct  NIMQChatGetLastMessagesParam
 
struct  NIMQChatGetMessagesCacheParam
 
struct  NIMQChatMarkMessageReadParam
 
struct  NIMQChatReplyMessageParam
 
struct  NIMQChatGetMessageColumns
 
struct  NIMQChatGetMessageHistoryByIdsParam
 
struct  NIMQChatGetReferMessagesParam
 
struct  NIMQChatGetThreadMessagesParam
 
struct  NIMQChatGetThreadRootMessagesMetaParam
 
struct  NIMQChatAddQuickCommentParam
 
struct  NIMQChatGetQuickCommentsParam
 
struct  NIMQChatMessageSearchPageParam
 

Typedefs

typedef NIMQChatSendMessageResp NIMQChatReplyMsgResp
 
typedef NIMQChatGetMessagesResp NIMQChatGetLastMessagesResp
 
typedef NIMQChatGetMessagesResp NIMQChatGetMessageHistoryByIdsResp
 
typedef NIMQChatGetMessagesResp NIMQChatGetReferMessagesResp
 
typedef NIMQChatGetMessagesResp NIMQChatGetMessagesCacheResp
 
typedef NIMQChatBaseResp NIMQChatAddQuickCommentResp
 
typedef NIMQChatBaseResp NIMQChatRemoveQuickCommentResp
 
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_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 NIMQChatAddQuickCommentParam NIMQChatRemoveQuickCommentParam
 

Enumerations

enum  NIMQChatMessageStatus { kMsgStatusNormal = 0 , kMsgStatusRevoke , kMsgStatusDelete , 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 }
 

Detailed Description

Author
NetEase Yunxin
Version
0.1
Date
2022-01-17

Enumeration Type Documentation

◆ NIMQChatGetReferMessageType

Enumerator
kNIMQChatGetReferMessageTypeReply 

获取被回复的消息

kNIMQChatGetReferMessageTypeThreadRoot 

获取 thread 根消息

kNIMQChatGetReferMessageTypeAll 

获取以上两个条件的消息

◆ NIMQChatMessageNotifyReason

Enumerator
kMessageNotifyReasonUnkonw 

未知原因

kMessageNotifyReasonNotifyAll 

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

kMessageNotifyReasonNotifySubscribe 

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

◆ NIMQChatMessageStatus

Enumerator
kMsgStatusNormal 

普通消息状态

kMsgStatusRevoke 

被撤回的消息

kMsgStatusDelete 

被删除的消息

◆ NIMQChatMsgType

圈组消息类型

Enumerator
kNIMQChatMsgTypeText 

文本类型消息

kNIMQChatMsgTypeImage 

图片类型消息

kNIMQChatMsgTypeAudio 

音频类型消息

kNIMQChatMsgTypeVideo 

视频类型消息

kNIMQChatMsgTypeLocation 

位置类型消息

kNIMQChatMsgTypeNotification 

通知类型消息

kNIMQChatMsgTypeFile 

文件类型消息

kNIMQChatMsgTypeTips 

提醒类型消息

kNIMQChatMsgTypeCustom 

自定义消息

kNIMQChatMsgTypeUnknown 

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

◆ NIMQChatQuickCommentOperation

Enumerator
kNIMQChatQuickCommentAdd 

添加

kNIMQChatQuickCommentRemove 

删除