NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_talkex_helper_pin_message.h
浏览该文件的文档.
1
7#ifndef _NIM_SDK_CPP_TALKEX_HELPER_PIN_MESSAGE_H_
8#define _NIM_SDK_CPP_TALKEX_HELPER_PIN_MESSAGE_H_
9
10#include <algorithm>
11#include <functional>
12#include <list>
13#include <string>
17#include "nim_define_include.h"
23namespace nim {
27 std::string id;
29 std::string session_id;
31 uint64_t server_id{0};
33 std::string client_id;
37 std::string from_account;
39 std::string to_account;
41 uint64_t message_time{0};
43 std::string operator_account;
45 std::string ext;
47 uint64_t create_time{0};
49 uint64_t update_time{0};
50
51 static std::string ToJsonString(const PinMessageInfo& info);
52 static void ToJsonObject(const PinMessageInfo& info, nim_cpp_wrapper_util::Json::Value& json_info);
53 static nim_cpp_wrapper_util::Json::Value ToJsonObject(const PinMessageInfo& info);
54 static void FromJsonString(const std::string& json_info, PinMessageInfo& info);
55 static void FromJsonObject(const nim_cpp_wrapper_util::Json::Value& json_info, PinMessageInfo& info);
56};
57
61 std::string session;
65 std::string id;
67 std::string ext;
68 static std::string ToJsonString(const ModifyPinMessageParam& info);
69};
70
73 std::list<PinMessageInfo> pin_list;
74 static void FromJsonString(const std::string& json_info, QueryAllPinMessageResponse& info);
75 static std::string ToJsonString(const QueryAllPinMessageResponse& rsp);
76};
77} // namespace nim
78
79#endif //_NIM_SDK_CPP_TALKEX_HELPER_PIN_MESSAGE_H_
Represents a JSON value.
Definition: value.h:196
namespace nim
NIM 公共数据类型定义总的包含文件
JSON辅助方法
定义导出宏
#define NIM_SDK_CPPWRAPPER_DLL_API
Definition: nim_sdk_cpp_wrapper.h:38
加载 NIM SDK 的帮助类头文件
Talk 辅助方法和数据结构定义
修改、取消Pin Message参数定义
Definition: nim_talkex_helper_pin_message.h:59
int to_type
UnPin 消息所属会话类型
Definition: nim_talkex_helper_pin_message.h:63
std::string session
UnPin 消息所属会话
Definition: nim_talkex_helper_pin_message.h:61
std::string ext
扩展字段
Definition: nim_talkex_helper_pin_message.h:67
std::string id
Pin Message 的ID 客户端生成服务端没有
Definition: nim_talkex_helper_pin_message.h:65
Pin消息属性
Definition: nim_talkex_helper_pin_message.h:25
std::string id
Pin Message的ID 客户端生成服务端没有
Definition: nim_talkex_helper_pin_message.h:27
std::string operator_account
Pin Message的操作者ID
Definition: nim_talkex_helper_pin_message.h:43
std::string to_account
被 pin 消息的接收方ID
Definition: nim_talkex_helper_pin_message.h:39
std::string ext
Pin Message的扩展字段
Definition: nim_talkex_helper_pin_message.h:45
int to_type
被 pin 消息的会话类型
Definition: nim_talkex_helper_pin_message.h:35
std::string session_id
Pin Message对应的会话ID (客户端数据)
Definition: nim_talkex_helper_pin_message.h:29
std::string from_account
被 pin 消息的发送方ID
Definition: nim_talkex_helper_pin_message.h:37
std::string client_id
被 pin 消息的客户商dID
Definition: nim_talkex_helper_pin_message.h:33
查询Pin Message应答参数定义
Definition: nim_talkex_helper_pin_message.h:72
std::list< PinMessageInfo > pin_list
Definition: nim_talkex_helper_pin_message.h:73