NIM PC Cross Platform SDK
nim_talkex_helper_pin_message.h
Go to the documentation of this file.
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 {
25struct NIM_SDK_CPPWRAPPER_DLL_API PinMessageInfo {
27 std::string id;
29 std::string session_id;
31 uint64_t server_id;
33 std::string client_id;
37 std::string from_account;
39 std::string to_account;
41 uint64_t message_time;
43 std::string operator_account;
45 std::string ext;
47 uint64_t create_time;
49 uint64_t update_time;
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
59struct NIM_SDK_CPPWRAPPER_DLL_API ModifyPinMessageParam {
61 std::string session;
65 std::string id;
67 std::string ext;
68 static std::string ToJsonString(const ModifyPinMessageParam& info);
69};
70
72struct NIM_SDK_CPPWRAPPER_DLL_API QueryAllPinMessageResponse {
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辅助方法
定义导出宏
加载 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
uint64_t server_id
被 Pin 消息的服务端ID
Definition: nim_talkex_helper_pin_message.h:31
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
uint64_t create_time
Pin Message的创建时间戳
Definition: nim_talkex_helper_pin_message.h:47
std::string client_id
被 pin 消息的客户商dID
Definition: nim_talkex_helper_pin_message.h:33
uint64_t message_time
被 pin 消息的时间戳
Definition: nim_talkex_helper_pin_message.h:41
uint64_t update_time
Pin Message的更新时间戳
Definition: nim_talkex_helper_pin_message.h:49
查询Pin Message应答参数定义
Definition: nim_talkex_helper_pin_message.h:72