NIM SDK API  8.5.1
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>
14 #include "nim_define_include.h"
18 #include "nim_wrapper_util/nim_json_util.h"
23 namespace nim {
25 struct NIM_SDK_CPPWRAPPER_DLL_API PinMessageInfo {
26  std::string id;
27  std::string session_id;
28  uint64_t server_id;
29  std::string client_id;
30  int to_type;
31  std::string from_account;
32  std::string to_account;
33  uint64_t message_time;
34  std::string operator_account;
35  std::string ext;
36  uint64_t create_time;
37  uint64_t update_time;
39  static std::string ToJsonString(const PinMessageInfo& info);
40  static void ToJsonObject(const PinMessageInfo& info, nim_cpp_wrapper_util::Json::Value& json_info);
41  static void FromJsonString(const std::string& json_info, PinMessageInfo& info);
42  static void FromJsonObject(const nim_cpp_wrapper_util::Json::Value& json_info, PinMessageInfo& info);
43 };
44 
46 struct NIM_SDK_CPPWRAPPER_DLL_API ModifyPinMessageParam {
47  std::string session;
48  int to_type;
49  std::string id;
50  std::string ext;
51  static std::string ToJsonString(const ModifyPinMessageParam& info);
52 };
53 
55 struct NIM_SDK_CPPWRAPPER_DLL_API QueryAllPinMessageResponse {
56  std::list<PinMessageInfo> pin_list;
57  static void FromJsonString(const std::string& json_info, QueryAllPinMessageResponse& info);
58  static std::string ToJsonString(const QueryAllPinMessageResponse& rsp);
59 };
60 } // namespace nim
61 
62 #endif //_NIM_SDK_CPP_TALKEX_HELPER_PIN_MESSAGE_H_
nim::PinMessageInfo::to_type
int to_type
Definition: nim_talkex_helper_pin_message.h:30
nim::PinMessageInfo::to_account
std::string to_account
Definition: nim_talkex_helper_pin_message.h:32
nim::PinMessageInfo::session_id
std::string session_id
Definition: nim_talkex_helper_pin_message.h:27
nim::ModifyPinMessageParam::id
std::string id
Definition: nim_talkex_helper_pin_message.h:49
nim::PinMessageInfo::client_id
std::string client_id
Definition: nim_talkex_helper_pin_message.h:29
nim::PinMessageInfo::create_time
uint64_t create_time
Definition: nim_talkex_helper_pin_message.h:36
nim::ModifyPinMessageParam::session
std::string session
Definition: nim_talkex_helper_pin_message.h:47
nim_talk_helper.h
Talk 辅助方法和数据结构定义
nim::PinMessageInfo::ext
std::string ext
Definition: nim_talkex_helper_pin_message.h:35
nim::ModifyPinMessageParam::ext
std::string ext
Definition: nim_talkex_helper_pin_message.h:50
nim::QueryAllPinMessageResponse
查询Pin Message应答参数定义
Definition: nim_talkex_helper_pin_message.h:55
nim::PinMessageInfo::operator_account
std::string operator_account
Definition: nim_talkex_helper_pin_message.h:34
nim
namespace nim
nim::PinMessageInfo::id
std::string id
Definition: nim_talkex_helper_pin_message.h:26
nim::PinMessageInfo::message_time
uint64_t message_time
Definition: nim_talkex_helper_pin_message.h:33
nim::PinMessageInfo::from_account
std::string from_account
Definition: nim_talkex_helper_pin_message.h:31
nim::ModifyPinMessageParam::to_type
int to_type
Definition: nim_talkex_helper_pin_message.h:48
nim_sdk_loader_helper.h
加载 NIM SDK 的帮助类头文件
nim_sdk_cpp_wrapper.h
定义导出宏
nim::PinMessageInfo::server_id
uint64_t server_id
Definition: nim_talkex_helper_pin_message.h:28
nim::ModifyPinMessageParam
修改、取消Pin Message参数定义
Definition: nim_talkex_helper_pin_message.h:46
nim::PinMessageInfo::update_time
uint64_t update_time
Definition: nim_talkex_helper_pin_message.h:37
nim::PinMessageInfo
Pin消息属性
Definition: nim_talkex_helper_pin_message.h:25