NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_talkex_def_pin_message.h
浏览该文件的文档.
1
6#ifndef NIM_SDK_DLL_EXPORT_HEADERS_TALKEX_DEF_PIN_MESSAGE_H_
7#define NIM_SDK_DLL_EXPORT_HEADERS_TALKEX_DEF_PIN_MESSAGE_H_
8
9#include "public_defines.h"
10
11#ifdef __cplusplus
12extern "C" {
13#endif
25typedef void (
26 *nim_talkex_pin_message_add_pin_message_cb_func)(int code, const char* session, int to_type, const char* pin_info, const void* user_data);
27
37typedef void (*nim_talkex_pin_message_unpin_message_cb_func)(int code, const char* session, int to_type, const char* id, const void* user_data);
38
52typedef void (
53 *nim_talkex_pin_message_update_pin_message_cb_func)(int code, const char* session, int to_type, const char* pin_info, const void* user_data);
54
68typedef void (
69 *nim_talkex_pin_message_query_all_pin_message_cb_func)(int code, const char* session, int to_type, const char* pin_list, const void* user_data);
70
82typedef void (*nim_talkex_pin_message_add_pin_message_notify_cb_func)(const char* session, int to_type, const char* pin_info, const void* user_data);
83
92typedef void (*nim_talkex_pin_message_unpin_message_notify_cb_func)(const char* session, int to_type, const char* id, const void* user_data);
93
106 int to_type,
107 const char* pin_info,
108 const void* user_data);
109
114static const char* kNIMPinMessageInfoKeyID = "id";
116static const char* kNIMPinMessageInfoKeySessionID = "session_id";
118static const char* kNIMPinMessageInfoKeyServerID = "server_id";
120static const char* kNIMPinMessageInfoKeyClientID = "client_id";
122static const char* kNIMPinMessageInfoKeyToType = "to_type";
124static const char* kNIMPinMessageInfoKeyFromAccID = "from_account";
126static const char* kNIMPinMessageInfoKeyToAccID = "to_account";
128static const char* kNIMPinMessageInfoKeyMSGTime = "message_time";
130static const char* kNIMPinMessageInfoKeyOPAccID = "operator_account";
132static const char* kNIMPinMessageInfoKeyExt = "ext";
134static const char* kNIMPinMessageInfoKeyCreateTime = "create_time";
136static const char* kNIMPinMessageInfoKeyUpdateTime = "update_time"; // Pin Message 属性Json Keys
138
143static const char* kNIMPinMessageModifyParamKeySession = "session";
145static const char* kNIMPinMessageModifyParamKeyToType = "to_type";
147static const char* kNIMPinMessageModifyParamKeyID = "id";
149static const char* kNIMPinMessageModifyParamKeyExt = "ext"; // UnPin 参数定义Json Keys
151
152#ifdef __cplusplus
153};
154#endif // __cplusplus
155#endif // NIM_SDK_DLL_EXPORT_HEADERS_TALKEX_DEF_PIN_MESSAGE_H_
static const char * kNIMPinMessageInfoKeySessionID
string pin消息对应的会话ID 客户端数据
Definition: nim_talkex_def_pin_message.h:116
static const char * kNIMPinMessageInfoKeyID
string pin消息的ID 客户端生成服务端没有
Definition: nim_talkex_def_pin_message.h:114
void(* nim_talkex_pin_message_add_pin_message_cb_func)(int code, const char *session, int to_type, const char *pin_info, const void *user_data)
Definition: nim_talkex_def_pin_message.h:26
static const char * kNIMPinMessageInfoKeyClientID
string 被 pin 消息的客户商dID
Definition: nim_talkex_def_pin_message.h:120
void(* nim_talkex_pin_message_unpin_message_notify_cb_func)(const char *session, int to_type, const char *id, const void *user_data)
Definition: nim_talkex_def_pin_message.h:92
static const char * kNIMPinMessageModifyParamKeyExt
扩展字段
Definition: nim_talkex_def_pin_message.h:149
static const char * kNIMPinMessageInfoKeyUpdateTime
uint64_t pin 消息的更新时间戳
Definition: nim_talkex_def_pin_message.h:136
static const char * kNIMPinMessageModifyParamKeySession
UnPin 消息所属会话
Definition: nim_talkex_def_pin_message.h:143
void(* nim_talkex_pin_message_add_pin_message_notify_cb_func)(const char *session, int to_type, const char *pin_info, const void *user_data)
Definition: nim_talkex_def_pin_message.h:82
static const char * kNIMPinMessageInfoKeyServerID
uint64_t 被 pin 消息的服务端ID
Definition: nim_talkex_def_pin_message.h:118
static const char * kNIMPinMessageInfoKeyToType
int 被 pin 消息的会话类型
Definition: nim_talkex_def_pin_message.h:122
void(* nim_talkex_pin_message_query_all_pin_message_cb_func)(int code, const char *session, int to_type, const char *pin_list, const void *user_data)
Definition: nim_talkex_def_pin_message.h:69
static const char * kNIMPinMessageInfoKeyMSGTime
uint64_t 被 pin 消息的时间戳
Definition: nim_talkex_def_pin_message.h:128
static const char * kNIMPinMessageInfoKeyExt
pin string 消息的扩展字段
Definition: nim_talkex_def_pin_message.h:132
void(* nim_talkex_pin_message_update_pin_message_notify_cb_func)(const char *session, int to_type, const char *pin_info, const void *user_data)
Definition: nim_talkex_def_pin_message.h:105
void(* nim_talkex_pin_message_unpin_message_cb_func)(int code, const char *session, int to_type, const char *id, const void *user_data)
Definition: nim_talkex_def_pin_message.h:37
static const char * kNIMPinMessageInfoKeyToAccID
string 被 pin 消息的接收方ID
Definition: nim_talkex_def_pin_message.h:126
static const char * kNIMPinMessageModifyParamKeyID
Pin Message 的ID 客户端生成服务端没有
Definition: nim_talkex_def_pin_message.h:147
static const char * kNIMPinMessageInfoKeyOPAccID
string pin 消息的操作ID
Definition: nim_talkex_def_pin_message.h:130
static const char * kNIMPinMessageModifyParamKeyToType
UnPin 消息所属会话类型
Definition: nim_talkex_def_pin_message.h:145
static const char * kNIMPinMessageInfoKeyCreateTime
uint64_t pin 消息的创建时间戳
Definition: nim_talkex_def_pin_message.h:134
void(* nim_talkex_pin_message_update_pin_message_cb_func)(int code, const char *session, int to_type, const char *pin_info, const void *user_data)
Definition: nim_talkex_def_pin_message.h:53
static const char * kNIMPinMessageInfoKeyFromAccID
string 被 pin 消息的发送方ID
Definition: nim_talkex_def_pin_message.h:124
NIM SDK 及 NIM ChatRoom SDK 公用头文件