NIM SDK API  8.5.1
nim_signaling_helper.h
Go to the documentation of this file.
1 
8 #ifndef _NIM_SDK_CPP_SIGNALING_HELPER_H_
9 #define _NIM_SDK_CPP_SIGNALING_HELPER_H_
10 
11 #include <functional>
12 #include <list>
13 #include <memory>
14 #include <string>
15 #include "nim_define_include.h"
18 
23 namespace nim {
27 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingChannelInfo {
28  NIMSignalingType channel_type_;
29  std::string channel_name_;
30  std::string channel_id_;
31  std::string channel_ext_;
32  uint64_t create_timestamp_;
33  uint64_t expire_timestamp_;
34  std::string creator_id_;
35  bool invalid_;
37  channel_type_ = kNIMSignalingTypeAudio;
38  create_timestamp_ = 0;
39  expire_timestamp_ = 0;
40  invalid_ = true;
41  }
42  SignalingChannelInfo(const NIMSignalingChannelInfo* info) {
43  if (info) {
44  channel_type_ = info->channel_type_;
45  channel_name_ = info->channel_name_;
46  channel_id_ = info->channel_id_;
47  channel_ext_ = info->channel_ext_;
48  create_timestamp_ = info->create_timestamp_;
49  expire_timestamp_ = info->expire_timestamp_;
50  creator_id_ = info->creator_id_;
51  invalid_ = info->invalid_;
52  }
53  }
54 };
55 
59 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingMemberInfo {
60  std::string account_id_;
61  int64_t uid_;
62  uint64_t create_timestamp_;
63  uint64_t expire_timestamp_;
65  uid_ = 0;
66  create_timestamp_ = 0;
67  expire_timestamp_ = 0;
68  }
69  SignalingMemberInfo(NIMSignalingMemberInfo* info) {
71  if (info) {
72  account_id_ = info->account_id_;
73  uid_ = info->uid_;
74  create_timestamp_ = info->create_timestamp_;
75  expire_timestamp_ = info->expire_timestamp_;
76  }
77  }
78 };
79 
83 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingChannelDetailedinfo {
85  std::list<SignalingMemberInfo> members_;
87  SignalingChannelDetailedinfo(const NIMSignalingChannelDetailedinfo* info) {
88  if (info) {
89  channel_info_ = SignalingChannelInfo(&info->channel_info_);
90  for (int32_t i = 0; i < info->member_size_; ++i) {
91  SignalingMemberInfo member(&info->members_[i]);
92  members_.push_back(member);
93  }
94  }
95  }
96 };
97 
101 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingPushInfo {
102  bool need_push_;
103  std::string push_title_;
104  std::string push_content_;
105  std::string push_payload_;
106  bool need_badge_;
108  need_push_ = false;
109  need_badge_ = true;
110  }
111  SignalingPushInfo(NIMSignalingPushInfo* info) {
113  if (info) {
114  need_push_ = info->need_push_;
115  if (need_push_) {
116  push_title_ = info->push_title_;
117  push_content_ = info->push_content_;
118  push_payload_ = info->push_payload_;
119  need_badge_ = info->need_badge_;
120  }
121  }
122  }
126  NIMSignalingPushInfo GetCParam() {
127  NIMSignalingPushInfo info;
128  info.need_push_ = need_push_;
129  info.push_title_ = (char*)push_title_.c_str();
130  info.push_content_ = (char*)push_content_.c_str();
131  info.push_payload_ = (char*)push_payload_.c_str();
132  info.need_badge_ = need_badge_;
133  return info;
134  }
135 };
136 
149 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingNotifyInfo {
150  enum NIMSignalingEventType event_type_;
151  struct SignalingChannelInfo channel_info_;
152  std::string from_account_id_;
153  std::string custom_info_;
154  uint64_t timestamp_;
158  static std::shared_ptr<SignalingNotifyInfo> GetSharedPtr(const NIMSignalingNotifyInfo* c_info);
159 };
160 
164 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingNotifyInfoClose : SignalingNotifyInfo {};
165 
169 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingNotifyInfoJoin : SignalingNotifyInfo {
171 };
172 
176 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingNotifyInfoInvite : SignalingNotifyInfo {
177  std::string to_account_id_;
178  std::string request_id_;
180 };
181 
185 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingNotifyInfoCancelInvite : SignalingNotifyInfo {
186  std::string to_account_id_;
187  std::string request_id_;
188 };
192 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingNotifyInfoReject : SignalingNotifyInfo {
193  std::string to_account_id_;
194  std::string request_id_;
195 };
199 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingNotifyInfoAccept : SignalingNotifyInfo {
200  std::string to_account_id_;
201  std::string request_id_;
202 };
203 
207 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingNotifyInfoLeave : SignalingNotifyInfo {};
208 
212 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingNotifyInfoControl : SignalingNotifyInfo {};
213 
217 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingResParam {
221  static std::shared_ptr<SignalingResParam> GetOptParam(void* opt_res_param) { return nullptr; }
222 };
223 
227 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingCreateParam {
228  NIMSignalingType channel_type_;
229  std::string channel_name_;
230  std::string channel_ext_;
234  NIMSignalingCreateParam GetCParam() {
235  NIMSignalingCreateParam param;
236  param.channel_type_ = channel_type_;
237  param.channel_name_ = (char*)channel_name_.c_str();
238  param.channel_ext_ = (char*)channel_ext_.c_str();
239  return param;
240  }
241 };
242 
246 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingCreateResParam : SignalingResParam {
251  static std::shared_ptr<SignalingResParam> GetOptParam(void* opt_res_param) {
252  if (opt_res_param == nullptr) {
253  return nullptr;
254  }
255  std::shared_ptr<SignalingCreateResParam> res_param(new SignalingCreateResParam);
256  res_param->channel_info_ = SignalingChannelInfo(&((NIMSignalingCreateResParam*)opt_res_param)->channel_info_);
257  return res_param;
258  }
259 };
260 
264 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingCloseParam {
265  std::string channel_id_;
266  std::string custom_info_;
271  NIMSignalingCloseParam GetCParam() {
272  NIMSignalingCloseParam param;
273  param.channel_id_ = (char*)channel_id_.c_str();
274  param.custom_info_ = (char*)custom_info_.c_str();
275  param.offline_enabled_ = offline_enabled_;
276  return param;
277  }
278 };
282 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingCloseResParam : SignalingResParam {};
283 
287 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingJoinParam {
288  std::string channel_id_;
289  std::string custom_info_;
290  int64_t uid_;
295  NIMSignalingJoinParam GetCParam() {
296  NIMSignalingJoinParam param;
297  param.channel_id_ = (char*)channel_id_.c_str();
298  param.custom_info_ = (char*)custom_info_.c_str();
299  param.uid_ = uid_;
300  param.offline_enabled_ = offline_enabled_;
301  return param;
302  }
303 };
307 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingJoinResParam : SignalingResParam {
312  static std::shared_ptr<SignalingResParam> GetOptParam(void* opt_res_param) {
313  if (opt_res_param == nullptr) {
314  return nullptr;
315  }
316  std::shared_ptr<SignalingJoinResParam> res_param(new SignalingJoinResParam);
317  res_param->info_ = SignalingChannelDetailedinfo(&((NIMSignalingJoinResParam*)opt_res_param)->info_);
318  return res_param;
319  }
320 };
321 
325 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingLeaveParam {
326  std::string channel_id_;
327  std::string custom_info_;
332  NIMSignalingLeaveParam GetCParam() {
333  NIMSignalingLeaveParam param;
334  param.channel_id_ = (char*)channel_id_.c_str();
335  param.custom_info_ = (char*)custom_info_.c_str();
336  param.offline_enabled_ = offline_enabled_;
337  return param;
338  }
339 };
340 
344 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingLeaveResParam : SignalingResParam {};
345 
349 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingQueryChannelInfoParam {
350  std::string channel_name_;
354  NIMSignalingQueryChannelInfoParam GetCParam() {
355  NIMSignalingQueryChannelInfoParam param;
356  param.channel_name_ = (char*)channel_name_.c_str();
357  return param;
358  }
359 };
363 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingQueryChannelInfoResParam : SignalingResParam {
368  static std::shared_ptr<SignalingResParam> GetOptParam(void* opt_res_param) {
369  if (opt_res_param == nullptr) {
370  return nullptr;
371  }
372  std::shared_ptr<SignalingQueryChannelInfoResParam> res_param(new SignalingQueryChannelInfoResParam);
373  res_param->info_ = SignalingChannelDetailedinfo(&((NIMSignalingQueryChannelInfoResParam*)opt_res_param)->info_);
374  return res_param;
375  }
376 };
377 
381 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingCallParam {
382  NIMSignalingType channel_type_;
383  std::string channel_name_;
384  std::string channel_ext_;
385  int64_t uid_;
386  std::string account_id_;
387  std::string request_id_;
388  std::string custom_info_;
394  NIMSignalingCallParam GetCParam() {
395  NIMSignalingCallParam param;
396  param.channel_type_ = channel_type_;
397  param.channel_name_ = (char*)channel_name_.c_str();
398  param.channel_ext_ = (char*)channel_ext_.c_str();
399  param.uid_ = uid_;
400  param.account_id_ = (char*)account_id_.c_str();
401  param.request_id_ = (char*)request_id_.c_str();
402  param.custom_info_ = (char*)custom_info_.c_str();
403  param.offline_enabled_ = offline_enabled_;
404  param.push_info_ = push_info_.GetCParam();
405  return param;
406  }
407 };
408 
412 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingCallResParam : SignalingJoinResParam {};
413 
417 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingInviteParam {
418  std::string channel_id_;
419  std::string account_id_;
420  std::string request_id_;
421  std::string custom_info_;
423  struct SignalingPushInfo push_info_;
427  NIMSignalingInviteParam GetCParam() {
428  NIMSignalingInviteParam param;
429  param.channel_id_ = (char*)channel_id_.c_str();
430  param.account_id_ = (char*)account_id_.c_str();
431  param.request_id_ = (char*)request_id_.c_str();
432  param.custom_info_ = (char*)custom_info_.c_str();
433  param.offline_enabled_ = offline_enabled_;
434  param.push_info_ = push_info_.GetCParam();
435  return param;
436  }
437 };
441 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingInviteResParam : SignalingResParam {};
442 
446 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingCancelInviteParam {
447  std::string channel_id_;
448  std::string account_id_;
449  std::string request_id_;
450  std::string custom_info_;
455  NIMSignalingCancelInviteParam GetCParam() {
456  NIMSignalingCancelInviteParam param;
457  param.channel_id_ = (char*)channel_id_.c_str();
458  param.account_id_ = (char*)account_id_.c_str();
459  param.request_id_ = (char*)request_id_.c_str();
460  param.custom_info_ = (char*)custom_info_.c_str();
461  param.offline_enabled_ = offline_enabled_;
462  return param;
463  }
464 };
465 
469 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingCancelInviteResParam : SignalingResParam {};
470 
474 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingRejectParam {
475  std::string channel_id_;
476  std::string account_id_;
477  std::string request_id_;
478  std::string custom_info_;
483  NIMSignalingRejectParam GetCParam() {
484  NIMSignalingRejectParam param;
485  param.channel_id_ = (char*)channel_id_.c_str();
486  param.account_id_ = (char*)account_id_.c_str();
487  param.request_id_ = (char*)request_id_.c_str();
488  param.custom_info_ = (char*)custom_info_.c_str();
489  param.offline_enabled_ = offline_enabled_;
490  return param;
491  }
492 };
496 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingRejectResParam : SignalingResParam {};
501  std::string channel_id_;
502  std::string account_id_;
503  std::string request_id_;
504  std::string accept_custom_info_;
506  bool auto_join_;
507  int64_t uid_;
508  std::string join_custom_info_;
512  NIMSignalingAcceptParam GetCParam() {
513  NIMSignalingAcceptParam param;
514  param.channel_id_ = (char*)channel_id_.c_str();
515  param.account_id_ = (char*)account_id_.c_str();
516  param.request_id_ = (char*)request_id_.c_str();
517  param.accept_custom_info_ = (char*)accept_custom_info_.c_str();
518  param.offline_enabled_ = offline_enabled_;
519  param.auto_join_ = auto_join_;
520  param.uid_ = uid_;
521  param.join_custom_info_ = (char*)join_custom_info_.c_str();
522  return param;
523  }
524 };
525 
529 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingAcceptResParam : SignalingJoinResParam {};
530 
534 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingControlParam {
535  std::string channel_id_;
536  std::string account_id_;
537  std::string custom_info_;
541  NIMSignalingControlParam GetCParam() {
542  NIMSignalingControlParam param;
543  param.channel_id_ = (char*)channel_id_.c_str();
544  param.account_id_ = (char*)account_id_.c_str();
545  param.custom_info_ = (char*)custom_info_.c_str();
546  return param;
547  }
548 };
552 struct NIM_SDK_CPPWRAPPER_DLL_API SignalingControlResParam : SignalingResParam {};
553 
554 } // namespace nim
555 
556 #endif //_NIM_SDK_CPP_SIGNALING_HELPER_H_
nim::SignalingCallParam::GetCParam
NIMSignalingCallParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:394
nim::SignalingRejectResParam
拒绝邀请结果回调信息,暂时为空
Definition: nim_signaling_helper.h:496
nim::SignalingCreateParam::GetCParam
NIMSignalingCreateParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:234
nim::SignalingNotifyInfoAccept::to_account_id_
std::string to_account_id_
Definition: nim_signaling_helper.h:200
nim::SignalingRejectParam::account_id_
std::string account_id_
Definition: nim_signaling_helper.h:476
nim::SignalingNotifyInfoInvite
邀请事件通知信息,event_type_=kNIMSignalingEventTypeInvite
Definition: nim_signaling_helper.h:176
nim::SignalingJoinParam::custom_info_
std::string custom_info_
Definition: nim_signaling_helper.h:289
nim::SignalingAcceptParam::account_id_
std::string account_id_
Definition: nim_signaling_helper.h:502
nim::SignalingJoinResParam::GetOptParam
static std::shared_ptr< SignalingResParam > GetOptParam(void *opt_res_param)
将C的返回结构体转换成C++
Definition: nim_signaling_helper.h:312
nim::SignalingControlParam::custom_info_
std::string custom_info_
Definition: nim_signaling_helper.h:537
nim::SignalingCancelInviteParam
取消邀请接口nim_signaling_cancel_invite的传入参数
Definition: nim_signaling_helper.h:446
nim::SignalingQueryChannelInfoParam::channel_name_
std::string channel_name_
Definition: nim_signaling_helper.h:350
nim::SignalingChannelDetailedinfo::channel_info_
SignalingChannelInfo channel_info_
Definition: nim_signaling_helper.h:84
nim::SignalingInviteParam::account_id_
std::string account_id_
Definition: nim_signaling_helper.h:419
nim::SignalingAcceptParam::accept_custom_info_
std::string accept_custom_info_
Definition: nim_signaling_helper.h:504
nim::SignalingAcceptParam::auto_join_
bool auto_join_
Definition: nim_signaling_helper.h:506
nim::SignalingAcceptParam::channel_id_
std::string channel_id_
Definition: nim_signaling_helper.h:501
nim::SignalingCallParam::request_id_
std::string request_id_
Definition: nim_signaling_helper.h:387
nim::SignalingJoinResParam
加入频道结果回调信息
Definition: nim_signaling_helper.h:307
nim::SignalingAcceptResParam
接受邀请结果回调信息,在自动加入成功后返回有效
Definition: nim_signaling_helper.h:529
nim::SignalingCreateParam::channel_type_
NIMSignalingType channel_type_
Definition: nim_signaling_helper.h:228
nim::SignalingNotifyInfoInvite::request_id_
std::string request_id_
Definition: nim_signaling_helper.h:178
nim::SignalingLeaveParam
离开频道接口nim_signaling_leave的传入参数
Definition: nim_signaling_helper.h:325
nim::SignalingMemberInfo::uid_
int64_t uid_
Definition: nim_signaling_helper.h:61
nim::SignalingResParam
独立信令操作回调参数基类
Definition: nim_signaling_helper.h:217
nim::SignalingNotifyInfoLeave
退出频道事件通知信息,event_type_=kNIMSignalingEventTypeLeave
Definition: nim_signaling_helper.h:207
nim::SignalingCloseResParam
关闭频道结果回调信息
Definition: nim_signaling_helper.h:282
nim::SignalingJoinParam::channel_id_
std::string channel_id_
Definition: nim_signaling_helper.h:288
nim::SignalingQueryChannelInfoResParam::info_
SignalingChannelDetailedinfo info_
Definition: nim_signaling_helper.h:364
nim::SignalingQueryChannelInfoParam::GetCParam
NIMSignalingQueryChannelInfoParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:354
nim::SignalingCancelInviteParam::GetCParam
NIMSignalingCancelInviteParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:455
nim::SignalingInviteParam::channel_id_
std::string channel_id_
Definition: nim_signaling_helper.h:418
nim::SignalingChannelInfo::channel_type_
NIMSignalingType channel_type_
Definition: nim_signaling_helper.h:28
nim::SignalingNotifyInfoReject
拒绝邀请事件通知信息,event_type_=kNIMSignalingEventTypeReject
Definition: nim_signaling_helper.h:192
nim::SignalingCancelInviteParam::account_id_
std::string account_id_
Definition: nim_signaling_helper.h:448
nim::SignalingAcceptParam::join_custom_info_
std::string join_custom_info_
Definition: nim_signaling_helper.h:508
nim::SignalingRejectParam
拒绝接口nim_signaling_reject的传入参数
Definition: nim_signaling_helper.h:474
nim::SignalingRejectParam::GetCParam
NIMSignalingRejectParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:483
nim::SignalingCallParam
呼叫接口nim_signaling_call的传入参数
Definition: nim_signaling_helper.h:381
nim::SignalingJoinParam::offline_enabled_
bool offline_enabled_
Definition: nim_signaling_helper.h:291
nim::SignalingChannelInfo
频道属性
Definition: nim_signaling_helper.h:27
nim::SignalingAcceptParam::request_id_
std::string request_id_
Definition: nim_signaling_helper.h:503
nim::SignalingNotifyInfoJoin::member_
SignalingMemberInfo member_
Definition: nim_signaling_helper.h:170
nim::SignalingCallParam::uid_
int64_t uid_
Definition: nim_signaling_helper.h:385
nim::SignalingQueryChannelInfoResParam
查询频道结果回调信息
Definition: nim_signaling_helper.h:363
nim::SignalingNotifyInfoAccept::request_id_
std::string request_id_
Definition: nim_signaling_helper.h:201
nim::SignalingAcceptParam::offline_enabled_
bool offline_enabled_
Definition: nim_signaling_helper.h:505
nim::SignalingJoinParam::uid_
int64_t uid_
Definition: nim_signaling_helper.h:290
nim::SignalingPushInfo::GetCParam
NIMSignalingPushInfo GetCParam()
将C++的结构体转成C的结构体
Definition: nim_signaling_helper.h:126
nim::SignalingJoinParam
加入频道接口nim_signaling_query_channel_info的传入参数
Definition: nim_signaling_helper.h:287
nim::SignalingCallParam::channel_name_
std::string channel_name_
Definition: nim_signaling_helper.h:383
nim::SignalingControlParam
控制通知接口nim_signaling_control的传入参数
Definition: nim_signaling_helper.h:534
nim::SignalingChannelInfo::channel_ext_
std::string channel_ext_
Definition: nim_signaling_helper.h:31
nim::SignalingNotifyInfo::timestamp_
uint64_t timestamp_
Definition: nim_signaling_helper.h:154
nim::SignalingCreateParam
创建频道接口nim_signaling_create的传入参数
Definition: nim_signaling_helper.h:227
nim::SignalingCallParam::push_info_
SignalingPushInfo push_info_
Definition: nim_signaling_helper.h:390
nim::SignalingCallParam::channel_type_
NIMSignalingType channel_type_
Definition: nim_signaling_helper.h:382
nim::SignalingJoinResParam::info_
SignalingChannelDetailedinfo info_
Definition: nim_signaling_helper.h:308
nim::SignalingCallParam::account_id_
std::string account_id_
Definition: nim_signaling_helper.h:386
nim::SignalingCreateResParam::GetOptParam
static std::shared_ptr< SignalingResParam > GetOptParam(void *opt_res_param)
将C的返回结构体转换成C++
Definition: nim_signaling_helper.h:251
nim::SignalingNotifyInfoCancelInvite::to_account_id_
std::string to_account_id_
Definition: nim_signaling_helper.h:186
nim::SignalingLeaveParam::offline_enabled_
bool offline_enabled_
Definition: nim_signaling_helper.h:328
nim::SignalingPushInfo::need_badge_
bool need_badge_
Definition: nim_signaling_helper.h:106
nim::SignalingControlResParam
控制通知结果回调信息,暂时为空
Definition: nim_signaling_helper.h:552
nim::SignalingCloseParam
关闭频道接口nim_signaling_close的传入参数
Definition: nim_signaling_helper.h:264
nim::SignalingChannelInfo::expire_timestamp_
uint64_t expire_timestamp_
Definition: nim_signaling_helper.h:33
nim::SignalingNotifyInfoJoin
加入频道事件通知信息,event_type_=kNIMSignalingEventTypeJoin
Definition: nim_signaling_helper.h:169
nim::SignalingNotifyInfoReject::to_account_id_
std::string to_account_id_
Definition: nim_signaling_helper.h:193
nim::SignalingCancelInviteParam::request_id_
std::string request_id_
Definition: nim_signaling_helper.h:449
nim::SignalingCallParam::offline_enabled_
bool offline_enabled_
Definition: nim_signaling_helper.h:389
nim::SignalingCloseParam::GetCParam
NIMSignalingCloseParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:271
nim::SignalingPushInfo::push_payload_
std::string push_payload_
Definition: nim_signaling_helper.h:105
nim::SignalingChannelInfo::channel_id_
std::string channel_id_
Definition: nim_signaling_helper.h:30
nim
namespace nim
nim::SignalingNotifyInfo::from_account_id_
std::string from_account_id_
Definition: nim_signaling_helper.h:152
nim::SignalingNotifyInfoAccept
接收邀请事件通知信息,event_type_=kNIMSignalingEventTypeAccept
Definition: nim_signaling_helper.h:199
nim::SignalingRejectParam::request_id_
std::string request_id_
Definition: nim_signaling_helper.h:477
nim::SignalingMemberInfo::expire_timestamp_
uint64_t expire_timestamp_
Definition: nim_signaling_helper.h:63
nim::SignalingInviteParam::offline_enabled_
bool offline_enabled_
Definition: nim_signaling_helper.h:422
nim::SignalingQueryChannelInfoParam
查询频道接口nim_signaling_join的传入参数
Definition: nim_signaling_helper.h:349
nim::SignalingRejectParam::offline_enabled_
bool offline_enabled_
Definition: nim_signaling_helper.h:479
nim::SignalingRejectParam::custom_info_
std::string custom_info_
Definition: nim_signaling_helper.h:478
nim::SignalingNotifyInfoInvite::push_info_
SignalingPushInfo push_info_
Definition: nim_signaling_helper.h:179
nim::SignalingCancelInviteParam::channel_id_
std::string channel_id_
Definition: nim_signaling_helper.h:447
nim::SignalingNotifyInfo::custom_info_
std::string custom_info_
Definition: nim_signaling_helper.h:153
nim::SignalingChannelInfo::creator_id_
std::string creator_id_
Definition: nim_signaling_helper.h:34
nim::SignalingInviteParam
邀请接口nim_signaling_invite的传入参数
Definition: nim_signaling_helper.h:417
nim::SignalingAcceptParam
接受邀请接口nim_signaling_accept的传入参数
Definition: nim_signaling_helper.h:500
nim::SignalingPushInfo::need_push_
bool need_push_
Definition: nim_signaling_helper.h:102
nim::SignalingJoinParam::GetCParam
NIMSignalingJoinParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:295
nim::SignalingChannelInfo::invalid_
bool invalid_
Definition: nim_signaling_helper.h:35
nim::SignalingChannelInfo::channel_name_
std::string channel_name_
Definition: nim_signaling_helper.h:29
nim::SignalingNotifyInfoInvite::to_account_id_
std::string to_account_id_
Definition: nim_signaling_helper.h:177
nim::SignalingCloseParam::channel_id_
std::string channel_id_
Definition: nim_signaling_helper.h:265
nim::SignalingNotifyInfoCancelInvite::request_id_
std::string request_id_
Definition: nim_signaling_helper.h:187
nim::SignalingPushInfo::push_content_
std::string push_content_
Definition: nim_signaling_helper.h:104
nim::SignalingInviteParam::custom_info_
std::string custom_info_
Definition: nim_signaling_helper.h:421
nim::SignalingNotifyInfoReject::request_id_
std::string request_id_
Definition: nim_signaling_helper.h:194
nim::SignalingMemberInfo
成员属性
Definition: nim_signaling_helper.h:59
nim::SignalingChannelDetailedinfo
频道的详细信息,包含频道信息及成员列表
Definition: nim_signaling_helper.h:83
nim::SignalingInviteParam::GetCParam
NIMSignalingInviteParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:427
nim::SignalingLeaveParam::custom_info_
std::string custom_info_
Definition: nim_signaling_helper.h:327
nim::SignalingInviteResParam
邀请结果回调信息,暂时为空
Definition: nim_signaling_helper.h:441
nim::SignalingCloseParam::offline_enabled_
bool offline_enabled_
Definition: nim_signaling_helper.h:267
nim::SignalingCreateResParam
创建频道结果回调信息
Definition: nim_signaling_helper.h:246
nim::SignalingQueryChannelInfoResParam::GetOptParam
static std::shared_ptr< SignalingResParam > GetOptParam(void *opt_res_param)
将C的返回结构体转换成C++
Definition: nim_signaling_helper.h:368
nim::SignalingCreateResParam::channel_info_
SignalingChannelInfo channel_info_
Definition: nim_signaling_helper.h:247
nim::SignalingRejectParam::channel_id_
std::string channel_id_
Definition: nim_signaling_helper.h:475
nim::SignalingNotifyInfoCancelInvite
取消邀请事件通知信息,event_type_=kNIMSignalingEventTypeCancelInvite
Definition: nim_signaling_helper.h:185
nim::SignalingPushInfo
推送属性
Definition: nim_signaling_helper.h:101
nim::SignalingCreateParam::channel_name_
std::string channel_name_
Definition: nim_signaling_helper.h:229
nim::SignalingCallParam::custom_info_
std::string custom_info_
Definition: nim_signaling_helper.h:388
nim::SignalingMemberInfo::account_id_
std::string account_id_
Definition: nim_signaling_helper.h:60
nim::SignalingAcceptParam::uid_
int64_t uid_
Definition: nim_signaling_helper.h:507
nim::SignalingAcceptParam::GetCParam
NIMSignalingAcceptParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:512
nim::SignalingChannelInfo::create_timestamp_
uint64_t create_timestamp_
Definition: nim_signaling_helper.h:32
nim::SignalingCancelInviteParam::offline_enabled_
bool offline_enabled_
Definition: nim_signaling_helper.h:451
nim::SignalingPushInfo::push_title_
std::string push_title_
Definition: nim_signaling_helper.h:103
nim::SignalingLeaveParam::GetCParam
NIMSignalingLeaveParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:332
nim::SignalingControlParam::GetCParam
NIMSignalingControlParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:541
nim::SignalingResParam::GetOptParam
static std::shared_ptr< SignalingResParam > GetOptParam(void *opt_res_param)
将C的返回结构体转换成C++
Definition: nim_signaling_helper.h:221
nim::SignalingCreateParam::channel_ext_
std::string channel_ext_
Definition: nim_signaling_helper.h:230
nim_sdk_loader_helper.h
加载 NIM SDK 的帮助类头文件
nim::SignalingNotifyInfoControl
控制事件通知信息,event_type_=kNIMSignalingEventTypeCtrl
Definition: nim_signaling_helper.h:212
nim::SignalingInviteParam::request_id_
std::string request_id_
Definition: nim_signaling_helper.h:420
nim::SignalingNotifyInfo
事件通知信息基类
Definition: nim_signaling_helper.h:149
nim::SignalingMemberInfo::create_timestamp_
uint64_t create_timestamp_
Definition: nim_signaling_helper.h:62
nim::SignalingLeaveResParam
离开频道结果回调信息,暂时为空
Definition: nim_signaling_helper.h:344
nim::SignalingControlParam::channel_id_
std::string channel_id_
Definition: nim_signaling_helper.h:535
nim::SignalingCancelInviteParam::custom_info_
std::string custom_info_
Definition: nim_signaling_helper.h:450
nim::SignalingNotifyInfoClose
频道关闭事件通知信息,event_type_=kNIMSignalingEventTypeClose
Definition: nim_signaling_helper.h:164
nim::SignalingControlParam::account_id_
std::string account_id_
Definition: nim_signaling_helper.h:536
nim_sdk_cpp_wrapper.h
定义导出宏
nim::SignalingChannelDetailedinfo::members_
std::list< SignalingMemberInfo > members_
Definition: nim_signaling_helper.h:85
nim::SignalingLeaveParam::channel_id_
std::string channel_id_
Definition: nim_signaling_helper.h:326
nim::SignalingCancelInviteResParam
取消邀请结果回调信息,暂时为空
Definition: nim_signaling_helper.h:469
nim::SignalingCallResParam
呼叫结果回调信息
Definition: nim_signaling_helper.h:412
nim::SignalingCallParam::channel_ext_
std::string channel_ext_
Definition: nim_signaling_helper.h:384
nim::SignalingCloseParam::custom_info_
std::string custom_info_
Definition: nim_signaling_helper.h:266