NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_qchat_member_cpp_def.h
浏览该文件的文档.
1
11#ifndef __NIM_QCHAT_MEMBER_CPP_DEF_H__
12#define __NIM_QCHAT_MEMBER_CPP_DEF_H__
13
15
16namespace nim {
17
21 uint64_t server_id{0};
23 uint64_t channel_id{0};
25 std::string accid{""};
27 std::string nick{""};
29 std::string avatar{""};
31 std::string custom{""};
33 uint32_t type{0};
35 uint64_t join_time{0};
37 std::string inviter{""};
39 bool valid_flag{true};
41 uint64_t create_time{0};
43 uint64_t update_time{0};
44 QChatMemberInfo() = default;
46 server_id = c_param.server_id;
47 channel_id = c_param.channel_id;
48 accid = c_param.accid ? c_param.accid : "";
49 nick = c_param.nick ? c_param.nick : "";
50 avatar = c_param.avatar ? c_param.avatar : "";
51 custom = c_param.custom ? c_param.custom : "";
52 type = c_param.type;
53 join_time = c_param.join_time;
54 inviter = c_param.inviter ? c_param.inviter : "";
55 valid_flag = c_param.valid_flag;
56 create_time = c_param.create_time;
57 update_time = c_param.update_time;
58 }
60 NIMQChatMemberInfo c_param = {};
61 c_param.server_id = server_id;
62 c_param.channel_id = channel_id;
63 c_param.accid = const_cast<char*>(accid.c_str());
64 c_param.nick = const_cast<char*>(nick.c_str());
65 c_param.avatar = const_cast<char*>(avatar.c_str());
66 c_param.custom = const_cast<char*>(custom.c_str());
67 c_param.type = type;
68 c_param.join_time = join_time;
69 c_param.inviter = const_cast<char*>(inviter.c_str());
70 c_param.valid_flag = valid_flag;
71 c_param.create_time = create_time;
72 c_param.update_time = update_time;
73 return c_param;
74 }
75};
76
80 uint64_t server_id{0};
82 std::string accid{""};
84 std::string custom{""};
86 uint64_t ban_time{0};
88 bool valid_flag{false};
90 uint64_t create_time{0};
92 uint64_t update_time{0};
93 QChatMemberBanInfo() = default;
95 server_id = c_param.server_id;
96 accid = c_param.accid ? c_param.accid : "";
97 custom = c_param.custom ? c_param.custom : "";
98 ban_time = c_param.ban_time;
99 valid_flag = c_param.valid_flag;
100 create_time = c_param.create_time;
101 update_time = c_param.update_time;
102 }
104 NIMQChatMemberBanInfo c_param = {};
105 c_param.server_id = server_id;
106 c_param.accid = const_cast<char*>(accid.c_str());
107 c_param.custom = const_cast<char*>(custom.c_str());
108 c_param.ban_time = ban_time;
109 c_param.valid_flag = valid_flag;
110 c_param.create_time = create_time;
111 c_param.update_time = update_time;
112 return c_param;
113 }
114};
115
116} // namespace nim
117
118#endif // __NIM_QCHAT_MEMBER_CPP_DEF_H__
namespace nim
#define NIM_QCHAT_SDK_CPPWRAPPER_DLL_API
Definition: nim_qchat_sdk_cpp_wrapper.h:38
Definition: nim_qchat_member_def.h:49
char * accid
用户accid
Definition: nim_qchat_member_def.h:53
uint64_t server_id
server id
Definition: nim_qchat_member_def.h:51
char * custom
自定义字段
Definition: nim_qchat_member_def.h:55
uint64_t create_time
创建时间
Definition: nim_qchat_member_def.h:61
bool valid_flag
有效标记,false:无效 true:有效
Definition: nim_qchat_member_def.h:59
uint64_t ban_time
封禁时间
Definition: nim_qchat_member_def.h:57
uint64_t update_time
更新时间
Definition: nim_qchat_member_def.h:63
Definition: nim_qchat_member_def.h:21
uint32_t type
用户类型,0:普通用户 1:所有者
Definition: nim_qchat_member_def.h:35
uint64_t update_time
更新时间
Definition: nim_qchat_member_def.h:45
char * avatar
头像url
Definition: nim_qchat_member_def.h:31
uint64_t server_id
server id
Definition: nim_qchat_member_def.h:23
uint64_t create_time
创建时间
Definition: nim_qchat_member_def.h:43
char * inviter
邀请人
Definition: nim_qchat_member_def.h:39
char * custom
自定义字段
Definition: nim_qchat_member_def.h:33
bool valid_flag
有效标记,false:无效 true:有效
Definition: nim_qchat_member_def.h:41
uint64_t join_time
加入时间
Definition: nim_qchat_member_def.h:37
char * nick
昵称
Definition: nim_qchat_member_def.h:29
char * accid
用户accid
Definition: nim_qchat_member_def.h:27
uint64_t channel_id
channel id
Definition: nim_qchat_member_def.h:25
Definition: nim_qchat_member_cpp_def.h:78
QChatMemberBanInfo(const NIMQChatMemberBanInfo &c_param)
Definition: nim_qchat_member_cpp_def.h:94
NIMQChatMemberBanInfo ToCParam() const
Definition: nim_qchat_member_cpp_def.h:103
Definition: nim_qchat_member_cpp_def.h:19
QChatMemberInfo()=default
QChatMemberInfo(const NIMQChatMemberInfo &c_param)
Definition: nim_qchat_member_cpp_def.h:45
NIMQChatMemberInfo ToCParam() const
Definition: nim_qchat_member_cpp_def.h:59