NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_signaling_helper.h
浏览该文件的文档.
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>
17#include "nim_define_include.h"
18
23namespace nim {
31 std::string channel_name_;
33 std::string channel_id_;
35 std::string channel_ext_;
37 uint64_t create_timestamp_{0};
39 uint64_t expire_timestamp_{0};
41 std::string creator_id_;
45 uint64_t nertc_token_ttl_{600};
47 std::string nertc_token_;
51 channel_type_ = kNIMSignalingTypeAudio;
52 create_timestamp_ = 0;
53 expire_timestamp_ = 0;
54 invalid_ = true;
55 }
57 if (info) {
58 channel_type_ = info->channel_type_;
59 channel_name_ = info->channel_name_;
60 channel_id_ = info->channel_id_;
61 channel_ext_ = info->channel_ext_;
62 create_timestamp_ = info->create_timestamp_;
63 expire_timestamp_ = info->expire_timestamp_;
64 creator_id_ = info->creator_id_;
65 invalid_ = info->invalid_;
66 nertc_token_ttl_ = info->nertc_token_ttl_;
67 nertc_token_ = info->nertc_token_;
68 nertc_join_room_resp_ = info->nertc_join_room_resp_;
69 }
70 }
71};
72
78 std::string account_id_;
80 int64_t uid_{0};
82 uint64_t create_timestamp_{0};
84 uint64_t expire_timestamp_{0};
87 if (info) {
88 account_id_ = info->account_id_;
89 uid_ = info->uid_;
90 create_timestamp_ = info->create_timestamp_;
91 expire_timestamp_ = info->expire_timestamp_;
92 }
93 }
94};
95
103 std::list<SignalingMemberInfo> members_;
106 if (info) {
107 channel_info_ = SignalingChannelInfo(&info->channel_info_);
108 for (int32_t i = 0; i < info->member_size_; ++i) {
109 SignalingMemberInfo member(&info->members_[i]);
110 members_.push_back(member);
111 }
112 }
113 }
114};
115
123 std::string push_title_;
125 std::string push_content_;
127 std::string push_payload_;
131 : need_push_(false)
132 , need_badge_(true) {}
134 : need_push_(false)
135 , need_badge_(true) {
136 if (info) {
137 need_push_ = info->need_push_;
138 if (need_push_) {
139 push_title_ = info->push_title_;
140 push_content_ = info->push_content_;
141 push_payload_ = info->push_payload_;
142 need_badge_ = info->need_badge_;
143 }
144 }
145 }
151 info.need_push_ = need_push_;
152 info.push_title_ = (char*)push_title_.c_str();
153 info.push_content_ = (char*)push_content_.c_str();
154 info.push_payload_ = (char*)push_payload_.c_str();
155 info.need_badge_ = need_badge_;
156 return info;
157 }
158};
159
176 struct SignalingChannelInfo channel_info_;
178 std::string from_account_id_;
180 std::string custom_info_;
182 uint64_t timestamp_{0};
186 static std::shared_ptr<SignalingNotifyInfo> GetSharedPtr(const NIMSignalingNotifyInfo* c_info);
187};
188
193
200};
201
207 std::string to_account_id_;
209 std::string request_id_;
212};
213
219 std::string to_account_id_;
221 std::string request_id_;
222};
228 std::string to_account_id_;
230 std::string request_id_;
231};
237 std::string to_account_id_;
239 std::string request_id_;
240};
241
246
251
259 static std::shared_ptr<SignalingResParam> GetOptParam(void* opt_res_param) { return nullptr; }
260};
261
269 std::string channel_name_;
271 std::string channel_ext_;
277 param.channel_type_ = channel_type_;
278 param.channel_name_ = (char*)channel_name_.c_str();
279 param.channel_ext_ = (char*)channel_ext_.c_str();
280 return param;
281 }
282};
283
293 static std::shared_ptr<SignalingResParam> GetOptParam(void* opt_res_param) {
294 if (opt_res_param == nullptr) {
295 return nullptr;
296 }
297 std::shared_ptr<SignalingCreateResParam> res_param(new SignalingCreateResParam);
298 res_param->channel_info_ = SignalingChannelInfo(&((NIMSignalingCreateResParam*)opt_res_param)->channel_info_);
299 return res_param;
300 }
301};
302
308 std::string channel_id_;
310 std::string custom_info_;
318 param.channel_id_ = (char*)channel_id_.c_str();
319 param.custom_info_ = (char*)custom_info_.c_str();
320 param.offline_enabled_ = offline_enabled_;
321 return param;
322 }
323};
328
334 std::string channel_id_;
336 std::string custom_info_;
338 int64_t uid_;
344 uint64_t nertc_token_ttl_{600};
352 param.channel_id_ = (char*)channel_id_.c_str();
353 param.custom_info_ = (char*)custom_info_.c_str();
354 param.uid_ = uid_;
355 param.offline_enabled_ = offline_enabled_;
356 param.nertc_channel_name_ = (char*)nertc_channel_name_.c_str();
357 param.nertc_token_ttl_ = nertc_token_ttl_;
358 param.nertc_join_room_query_param_ = (char*)nertc_join_room_query_param_.c_str();
359 return param;
360 }
361};
371 static std::shared_ptr<SignalingResParam> GetOptParam(void* opt_res_param) {
372 if (opt_res_param == nullptr) {
373 return nullptr;
374 }
375 std::shared_ptr<SignalingJoinResParam> res_param(new SignalingJoinResParam);
376 res_param->info_ = SignalingChannelDetailedinfo(&((NIMSignalingJoinResParam*)opt_res_param)->info_);
377 return res_param;
378 }
379};
380
386 std::string channel_id_;
388 std::string custom_info_;
396 param.channel_id_ = (char*)channel_id_.c_str();
397 param.custom_info_ = (char*)custom_info_.c_str();
398 param.offline_enabled_ = offline_enabled_;
399 return param;
400 }
401};
402
407
413 std::string channel_name_;
419 param.channel_name_ = (char*)channel_name_.c_str();
420 return param;
421 }
422};
432 static std::shared_ptr<SignalingResParam> GetOptParam(void* opt_res_param) {
433 if (opt_res_param == nullptr) {
434 return nullptr;
435 }
436 std::shared_ptr<SignalingQueryChannelInfoResParam> res_param(new SignalingQueryChannelInfoResParam);
437 res_param->info_ = SignalingChannelDetailedinfo(&((NIMSignalingQueryChannelInfoResParam*)opt_res_param)->info_);
438 return res_param;
439 }
440};
441
449 std::string channel_name_;
451 std::string channel_ext_;
453 int64_t uid_;
455 std::string account_id_;
457 std::string request_id_;
459 std::string custom_info_;
467 uint64_t nertc_token_ttl_{600};
475 param.channel_type_ = channel_type_;
476 param.channel_name_ = (char*)channel_name_.c_str();
477 param.channel_ext_ = (char*)channel_ext_.c_str();
478 param.uid_ = uid_;
479 param.account_id_ = (char*)account_id_.c_str();
480 param.request_id_ = (char*)request_id_.c_str();
481 param.custom_info_ = (char*)custom_info_.c_str();
482 param.offline_enabled_ = offline_enabled_;
483 param.push_info_ = push_info_.GetCParam();
484 param.nertc_channel_name_ = (char*)nertc_channel_name_.c_str();
485 param.nertc_token_ttl_ = nertc_token_ttl_;
486 param.nertc_join_room_query_param_ = (char*)nertc_join_room_query_param_.c_str();
487 return param;
488 }
489};
490
495
499 uint32_t call_status_{0};
503 static std::shared_ptr<SignalingResParam> GetOptParam(void* opt_res_param) {
504 if (opt_res_param == nullptr) {
505 return nullptr;
506 }
507 std::shared_ptr<SignalingCallExResParam> res_param(new SignalingCallExResParam);
508 res_param->info_ = SignalingChannelDetailedinfo(&((NIMSignalingCallResParam*)opt_res_param)->info_);
509 res_param->call_status_ = ((NIMSignalingCallResParam*)opt_res_param)->call_status_;
510 return res_param;
511 }
512};
513
516 std::string channel_id_;
518 std::string custom_info_;
520 int64_t uid_;
524 std::string account_id_;
526 std::string request_id_;
530 uint64_t nertc_token_ttl_{600};
535 param.channel_id_ = (char*)channel_id_.c_str();
536 param.custom_info_ = (char*)custom_info_.c_str();
537 param.uid_ = uid_;
538 param.offline_enabled_ = offline_enabled_;
539 param.account_id_ = (char*)account_id_.c_str();
540 param.request_id_ = (char*)request_id_.c_str();
541 param.nertc_channel_name_ = (char*)nertc_channel_name_.c_str();
542 param.nertc_token_ttl_ = nertc_token_ttl_;
543 param.nertc_join_room_query_param_ = (char*)nertc_join_room_query_param_.c_str();
544 return param;
545 }
546};
547
551 uint32_t call_status_{0};
555 static std::shared_ptr<SignalingResParam> GetOptParam(void* opt_res_param) {
556 if (opt_res_param == nullptr) {
557 return nullptr;
558 }
559 std::shared_ptr<SignalingJoinAndAcceptResParam> res_param(new SignalingJoinAndAcceptResParam);
560 res_param->info_ = SignalingChannelDetailedinfo(&((NIMSignalingJoinAndAcceptResParam*)opt_res_param)->info_);
561 res_param->call_status_ = ((NIMSignalingJoinAndAcceptResParam*)opt_res_param)->call_status_;
562 return res_param;
563 }
564};
565
571 std::string channel_id_;
573 std::string account_id_;
575 std::string request_id_;
577 std::string custom_info_;
581 struct SignalingPushInfo push_info_;
587 param.channel_id_ = (char*)channel_id_.c_str();
588 param.account_id_ = (char*)account_id_.c_str();
589 param.request_id_ = (char*)request_id_.c_str();
590 param.custom_info_ = (char*)custom_info_.c_str();
591 param.offline_enabled_ = offline_enabled_;
592 param.push_info_ = push_info_.GetCParam();
593 return param;
594 }
595};
600
606 std::string channel_id_;
608 std::string account_id_;
610 std::string request_id_;
612 std::string custom_info_;
620 param.channel_id_ = (char*)channel_id_.c_str();
621 param.account_id_ = (char*)account_id_.c_str();
622 param.request_id_ = (char*)request_id_.c_str();
623 param.custom_info_ = (char*)custom_info_.c_str();
624 param.offline_enabled_ = offline_enabled_;
625 return param;
626 }
627};
628
633
639 std::string channel_id_;
641 std::string account_id_;
643 std::string request_id_;
645 std::string custom_info_;
653 param.channel_id_ = (char*)channel_id_.c_str();
654 param.account_id_ = (char*)account_id_.c_str();
655 param.request_id_ = (char*)request_id_.c_str();
656 param.custom_info_ = (char*)custom_info_.c_str();
657 param.offline_enabled_ = offline_enabled_;
658 return param;
659 }
660};
670 std::string channel_id_;
672 std::string account_id_;
674 std::string request_id_;
682 int64_t uid_;
684 std::string join_custom_info_;
688 uint64_t nertc_token_ttl_{600};
696 param.channel_id_ = (char*)channel_id_.c_str();
697 param.account_id_ = (char*)account_id_.c_str();
698 param.request_id_ = (char*)request_id_.c_str();
699 param.accept_custom_info_ = (char*)accept_custom_info_.c_str();
701 param.auto_join_ = auto_join_;
702 param.uid_ = uid_;
703 param.join_custom_info_ = (char*)join_custom_info_.c_str();
704 param.nertc_channel_name_ = (char*)nertc_channel_name_.c_str();
707 return param;
708 }
709};
710
715
721 std::string channel_id_;
723 std::string account_id_;
725 std::string custom_info_;
731 param.channel_id_ = (char*)channel_id_.c_str();
732 param.account_id_ = (char*)account_id_.c_str();
733 param.custom_info_ = (char*)custom_info_.c_str();
734 return param;
735 }
736};
741
742} // namespace nim
743
744#endif //_NIM_SDK_CPP_SIGNALING_HELPER_H_
namespace nim
NIM 公共数据类型定义总的包含文件
定义导出宏
#define NIM_SDK_CPPWRAPPER_DLL_API
Definition: nim_sdk_cpp_wrapper.h:38
加载 NIM SDK 的帮助类头文件
NIMSignalingEventType
频道事件,包含在线,同步,离线等
Definition: nim_signaling_def.h:102
NIMSignalingType
频道类型
Definition: nim_signaling_def.h:20
@ kNIMSignalingTypeAudio
音频类型
Definition: nim_signaling_def.h:22
#define true
Definition: stdbool.h:30
#define false
Definition: stdbool.h:33
接受邀请接口nim_signaling_accept的传入参数
Definition: nim_signaling_def.h:472
int64_t uid_
自己在频道中对应的uid,大于零有效,无效时服务器会分配随机唯一的uid,可缺省填0
Definition: nim_signaling_def.h:486
uint64_t nertc_token_ttl_
云信G2-RTC的token有效期, 单位秒
Definition: nim_signaling_def.h:492
char * channel_id_
服务器生成的频道ID
Definition: nim_signaling_def.h:474
char * request_id_
邀请者邀请的请求id
Definition: nim_signaling_def.h:478
char * accept_custom_info_
操作的扩展字段
Definition: nim_signaling_def.h:480
bool offline_enabled_
是否存离线
Definition: nim_signaling_def.h:482
char * join_custom_info_
加入频道的自定义扩展信息,将在加入频道通知中带给其他频道成员,可缺省
Definition: nim_signaling_def.h:488
char * account_id_
邀请者的账号
Definition: nim_signaling_def.h:476
bool auto_join_
是否加入,默认不打开,打开后后续参数uid_、join_custom_info_有效
Definition: nim_signaling_def.h:484
char * nertc_channel_name_
云信G2-RTC的房间名,不为空则返回对应token
Definition: nim_signaling_def.h:490
char * nertc_join_room_query_param_
云信G2-RTC加入房间的请求参数
Definition: nim_signaling_def.h:494
呼叫接口nim_signaling_call的传入参数
Definition: nim_signaling_def.h:357
bool offline_enabled_
是否存离线
Definition: nim_signaling_def.h:373
char * nertc_channel_name_
云信G2-RTC的房间名,不为空则返回对应token
Definition: nim_signaling_def.h:377
struct NIMSignalingPushInfo push_info_
推送属性
Definition: nim_signaling_def.h:375
char * request_id_
邀请者邀请的请求id,需要邀请者填写,之后取消邀请、拒绝、接受需要复用该request_id_
Definition: nim_signaling_def.h:369
char * channel_ext_
创建时传入的扩展字段,可缺省
Definition: nim_signaling_def.h:363
char * custom_info_
操作的扩展字段,透传给被邀请者,可缺省
Definition: nim_signaling_def.h:371
enum NIMSignalingType channel_type_
通话类型,1:音频;2:视频;3:其他
Definition: nim_signaling_def.h:359
char * channel_name_
创建时传入的频道名,可缺省
Definition: nim_signaling_def.h:361
int64_t uid_
自己在频道中对应的uid,大于零有效,无效时服务器会分配随机唯一的uid
Definition: nim_signaling_def.h:365
char * account_id_
被邀请者的账号
Definition: nim_signaling_def.h:367
uint64_t nertc_token_ttl_
云信G2-RTC的token有效期, 单位秒
Definition: nim_signaling_def.h:379
char * nertc_join_room_query_param_
云信G2-RTC加入房间的请求参数
Definition: nim_signaling_def.h:381
Definition: nim_signaling_def.h:387
取消邀请接口nim_signaling_cancel_invite的传入参数
Definition: nim_signaling_def.h:441
char * custom_info_
操作的扩展字段,可缺省
Definition: nim_signaling_def.h:449
bool offline_enabled_
是否存离线
Definition: nim_signaling_def.h:451
char * channel_id_
服务器生成的频道ID
Definition: nim_signaling_def.h:443
char * request_id_
邀请者邀请的请求id
Definition: nim_signaling_def.h:447
char * account_id_
被邀请者的账号
Definition: nim_signaling_def.h:445
频道的详细信息,包含频道信息及成员列表
Definition: nim_signaling_def.h:74
struct NIMSignalingChannelInfo channel_info_
频道信息
Definition: nim_signaling_def.h:76
int32_t member_size_
频道内成员个数
Definition: nim_signaling_def.h:80
struct NIMSignalingMemberInfo * members_
频道内成员信息数组
Definition: nim_signaling_def.h:78
频道属性
Definition: nim_signaling_def.h:32
uint64_t nertc_token_ttl_
云信G2-RTC的token的有效期
Definition: nim_signaling_def.h:50
char * channel_name_
创建时传入的频道名
Definition: nim_signaling_def.h:36
char * creator_id_
创建者的accid
Definition: nim_signaling_def.h:46
char * nertc_join_room_resp_
云信G2-RTC加入房间的响应,可以转成json
Definition: nim_signaling_def.h:54
uint64_t expire_timestamp_
失效时间点
Definition: nim_signaling_def.h:44
bool invalid_
频道是否有效
Definition: nim_signaling_def.h:48
char * channel_ext_
创建时传入的扩展字段
Definition: nim_signaling_def.h:40
uint64_t create_timestamp_
创建时间点
Definition: nim_signaling_def.h:42
char * channel_id_
服务器生成的频道ID
Definition: nim_signaling_def.h:38
enum NIMSignalingType channel_type_
通话类型,1:音频;2:视频;3:其他
Definition: nim_signaling_def.h:34
char * nertc_token_
云信G2-RTC的token
Definition: nim_signaling_def.h:52
关闭频道接口nim_signaling_close的传入参数
Definition: nim_signaling_def.h:291
bool offline_enabled_
是否存离线
Definition: nim_signaling_def.h:297
char * custom_info_
操作的扩展字段
Definition: nim_signaling_def.h:295
char * channel_id_
服务器生成的频道ID
Definition: nim_signaling_def.h:293
控制通知接口nim_signaling_control的传入参数
Definition: nim_signaling_def.h:505
char * channel_id_
服务器生成的频道ID
Definition: nim_signaling_def.h:507
char * custom_info_
操作的扩展字段
Definition: nim_signaling_def.h:511
char * account_id_
对方accid,如果为空,则通知所有人
Definition: nim_signaling_def.h:509
创建频道接口nim_signaling_create的传入参数
Definition: nim_signaling_def.h:271
enum NIMSignalingType channel_type_
通话类型,1:音频;2:视频;3:其他
Definition: nim_signaling_def.h:273
char * channel_name_
创建时传入的频道名,可缺省
Definition: nim_signaling_def.h:275
char * channel_ext_
创建时传入的扩展字段,可缺省
Definition: nim_signaling_def.h:277
创建频道结果回调信息
Definition: nim_signaling_def.h:283
邀请接口nim_signaling_invite的传入参数
Definition: nim_signaling_def.h:423
char * custom_info_
操作的扩展字段,透传给被邀请者,可缺省
Definition: nim_signaling_def.h:431
char * account_id_
被邀请者的账号
Definition: nim_signaling_def.h:427
char * request_id_
邀请者邀请的请求id,需要邀请者填写,之后取消邀请、拒绝、接受需要复用该request_id_
Definition: nim_signaling_def.h:429
char * channel_id_
服务器生成的频道ID
Definition: nim_signaling_def.h:425
bool offline_enabled_
是否存离线
Definition: nim_signaling_def.h:433
struct NIMSignalingPushInfo push_info_
推送属性
Definition: nim_signaling_def.h:435
Definition: nim_signaling_def.h:393
char * nertc_channel_name_
云信G2-RTC的房间名,不为空则返回对应token
Definition: nim_signaling_def.h:407
char * custom_info_
操作者附加的自定义信息,透传给其他人,可缺省
Definition: nim_signaling_def.h:397
char * channel_id_
服务器生成的频道ID
Definition: nim_signaling_def.h:395
char * request_id_
邀请者邀请的请求id
Definition: nim_signaling_def.h:403
bool offline_enabled_
是否存离线
Definition: nim_signaling_def.h:405
int64_t uid_
自己在频道中对应的uid,大于零有效,无效时服务器会分配随机唯一的uid
Definition: nim_signaling_def.h:399
char * account_id_
邀请者的账号
Definition: nim_signaling_def.h:401
char * nertc_join_room_query_param_
云信G2-RTC加入房间的请求参数
Definition: nim_signaling_def.h:411
uint64_t nertc_token_ttl_
云信G2-RTC的token有效期, 单位秒
Definition: nim_signaling_def.h:409
Definition: nim_signaling_def.h:414
加入频道接口nim_signaling_join的传入参数
Definition: nim_signaling_def.h:303
char * nertc_join_room_query_param_
云信G2-RTC加入房间的请求参数
Definition: nim_signaling_def.h:317
char * channel_id_
服务器生成的频道ID
Definition: nim_signaling_def.h:305
char * nertc_channel_name_
云信G2-RTC的房间名,不为空则返回对应token
Definition: nim_signaling_def.h:313
char * custom_info_
操作者附加的自定义信息,透传给其他人,可缺省
Definition: nim_signaling_def.h:307
uint64_t nertc_token_ttl_
云信G2-RTC的token有效期, 单位秒
Definition: nim_signaling_def.h:315
int64_t uid_
自己在频道中对应的uid,大于零有效,无效时服务器会分配随机唯一的uid
Definition: nim_signaling_def.h:309
bool offline_enabled_
是否存离线
Definition: nim_signaling_def.h:311
加入频道结果回调信息
Definition: nim_signaling_def.h:322
离开频道接口nim_signaling_leave的传入参数
Definition: nim_signaling_def.h:330
char * custom_info_
操作的扩展字段
Definition: nim_signaling_def.h:334
char * channel_id_
服务器生成的频道ID
Definition: nim_signaling_def.h:332
bool offline_enabled_
是否存离线
Definition: nim_signaling_def.h:336
成员属性
Definition: nim_signaling_def.h:60
uint64_t expire_timestamp_
失效时间点,失效后认为离开频道
Definition: nim_signaling_def.h:68
int64_t uid_
成员的 uid,大于零有效,无效时服务器会分配随机频道内唯一的uid
Definition: nim_signaling_def.h:64
char * account_id_
成员的 accid
Definition: nim_signaling_def.h:62
uint64_t create_timestamp_
加入时间点
Definition: nim_signaling_def.h:66
事件通知信息基类
Definition: nim_signaling_def.h:124
推送属性
Definition: nim_signaling_def.h:86
bool need_push_
是否需要推送,默认false,
Definition: nim_signaling_def.h:88
char * push_title_
推送标题
Definition: nim_signaling_def.h:90
char * push_content_
推送内容
Definition: nim_signaling_def.h:92
bool need_badge_
是否计入未读计数,默认true
Definition: nim_signaling_def.h:96
char * push_payload_
推送自定义字段
Definition: nim_signaling_def.h:94
查询频道接口nim_signaling_query_channel_info的传入参数
Definition: nim_signaling_def.h:342
char * channel_name_
创建时传入的频道名
Definition: nim_signaling_def.h:344
查询频道结果回调信息
Definition: nim_signaling_def.h:349
拒绝接口nim_signaling_reject的传入参数
Definition: nim_signaling_def.h:457
char * custom_info_
操作的扩展字段
Definition: nim_signaling_def.h:465
char * account_id_
邀请者的账号
Definition: nim_signaling_def.h:461
char * channel_id_
服务器生成的频道ID
Definition: nim_signaling_def.h:459
char * request_id_
邀请者邀请的请求id
Definition: nim_signaling_def.h:463
bool offline_enabled_
是否存离线
Definition: nim_signaling_def.h:467
接受邀请接口nim_signaling_accept的传入参数
Definition: nim_signaling_helper.h:668
std::string accept_custom_info_
操作的扩展字段
Definition: nim_signaling_helper.h:676
int64_t uid_
自己在频道中对应的uid,大于零有效,无效时服务器会分配随机唯一的uid,可缺省填0
Definition: nim_signaling_helper.h:682
std::string join_custom_info_
加入频道的自定义扩展信息,将在加入频道通知中带给其他频道成员,可缺省
Definition: nim_signaling_helper.h:684
std::string nertc_join_room_query_param_
云信G2-RTC加入房间的请求参数
Definition: nim_signaling_helper.h:690
std::string nertc_channel_name_
云信G2-RTC的房间名,不为空则返回对应token
Definition: nim_signaling_helper.h:686
std::string account_id_
邀请者的账号
Definition: nim_signaling_helper.h:672
std::string request_id_
邀请者邀请的请求id
Definition: nim_signaling_helper.h:674
bool offline_enabled_
是否存离线
Definition: nim_signaling_helper.h:678
NIMSignalingAcceptParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:694
std::string channel_id_
服务器生成的频道ID
Definition: nim_signaling_helper.h:670
bool auto_join_
是否加入,打开后后续参数uid_、join_custom_info_有效
Definition: nim_signaling_helper.h:680
uint64_t nertc_token_ttl_
云信G2-RTC的token有效期, 单位秒
Definition: nim_signaling_helper.h:688
接受邀请结果回调信息,在自动加入成功后返回有效
Definition: nim_signaling_helper.h:714
Definition: nim_signaling_helper.h:496
SignalingChannelDetailedinfo info_
频道详细信息
Definition: nim_signaling_helper.h:498
static std::shared_ptr< SignalingResParam > GetOptParam(void *opt_res_param)
将C的返回结构体转换成C++
Definition: nim_signaling_helper.h:503
呼叫接口nim_signaling_call的传入参数
Definition: nim_signaling_helper.h:445
std::string account_id_
被邀请者的账号
Definition: nim_signaling_helper.h:455
std::string nertc_join_room_query_param_
云信G2-RTC加入房间的请求参数
Definition: nim_signaling_helper.h:469
SignalingPushInfo push_info_
推送属性
Definition: nim_signaling_helper.h:463
std::string custom_info_
操作的扩展字段,透传给被邀请者,可缺省
Definition: nim_signaling_helper.h:459
std::string channel_name_
创建时传入的频道名,可缺省
Definition: nim_signaling_helper.h:449
std::string channel_ext_
创建时传入的扩展字段,可缺省
Definition: nim_signaling_helper.h:451
NIMSignalingType channel_type_
通话类型,1:音频;2:视频;3:其他
Definition: nim_signaling_helper.h:447
std::string nertc_channel_name_
云信G2-RTC的房间名,不为空则返回对应token
Definition: nim_signaling_helper.h:465
NIMSignalingCallParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:473
int64_t uid_
自己在频道中对应的uid,大于零有效,无效时服务器会分配随机唯一的uid
Definition: nim_signaling_helper.h:453
std::string request_id_
邀请者邀请的请求id,需要邀请者填写,之后取消邀请、拒绝、接受需要复用该request_id_
Definition: nim_signaling_helper.h:457
bool offline_enabled_
是否存离线
Definition: nim_signaling_helper.h:461
呼叫结果回调信息
Definition: nim_signaling_helper.h:494
取消邀请接口nim_signaling_cancel_invite的传入参数
Definition: nim_signaling_helper.h:604
std::string channel_id_
服务器生成的频道ID
Definition: nim_signaling_helper.h:606
std::string request_id_
邀请者邀请的请求id
Definition: nim_signaling_helper.h:610
NIMSignalingCancelInviteParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:618
bool offline_enabled_
是否存离线
Definition: nim_signaling_helper.h:614
std::string account_id_
被邀请者的账号
Definition: nim_signaling_helper.h:608
std::string custom_info_
操作的扩展字段,可缺省
Definition: nim_signaling_helper.h:612
取消邀请结果回调信息,暂时为空
Definition: nim_signaling_helper.h:632
频道的详细信息,包含频道信息及成员列表
Definition: nim_signaling_helper.h:99
SignalingChannelDetailedinfo(const NIMSignalingChannelDetailedinfo *info)
Definition: nim_signaling_helper.h:105
SignalingChannelDetailedinfo()
Definition: nim_signaling_helper.h:104
std::list< SignalingMemberInfo > members_
频道内成员信息数组
Definition: nim_signaling_helper.h:103
SignalingChannelInfo channel_info_
频道信息
Definition: nim_signaling_helper.h:101
频道属性
Definition: nim_signaling_helper.h:27
std::string nertc_token_
云信G2-RTC的token
Definition: nim_signaling_helper.h:47
NIMSignalingType channel_type_
通话类型,1:音频;2:视频;3:其他
Definition: nim_signaling_helper.h:29
std::string channel_name_
创建时传入的频道名
Definition: nim_signaling_helper.h:31
std::string creator_id_
创建者的accid
Definition: nim_signaling_helper.h:41
std::string channel_ext_
创建时传入的扩展字段
Definition: nim_signaling_helper.h:35
bool invalid_
频道是否有效
Definition: nim_signaling_helper.h:43
SignalingChannelInfo(const NIMSignalingChannelInfo *info)
Definition: nim_signaling_helper.h:56
SignalingChannelInfo()
Definition: nim_signaling_helper.h:50
std::string channel_id_
服务器生成的频道ID
Definition: nim_signaling_helper.h:33
std::string nertc_join_room_resp_
云信G2-RTC加入房间的响应,可以转成json
Definition: nim_signaling_helper.h:49
关闭频道接口nim_signaling_close的传入参数
Definition: nim_signaling_helper.h:306
std::string channel_id_
服务器生成的频道ID
Definition: nim_signaling_helper.h:308
NIMSignalingCloseParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:316
std::string custom_info_
操作的扩展字段
Definition: nim_signaling_helper.h:310
bool offline_enabled_
是否存离线
Definition: nim_signaling_helper.h:312
关闭频道结果回调信息
Definition: nim_signaling_helper.h:327
控制通知接口nim_signaling_control的传入参数
Definition: nim_signaling_helper.h:719
NIMSignalingControlParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:729
std::string channel_id_
服务器生成的频道ID
Definition: nim_signaling_helper.h:721
std::string account_id_
对方accid,如果为空,则通知所有人
Definition: nim_signaling_helper.h:723
std::string custom_info_
操作的扩展字段
Definition: nim_signaling_helper.h:725
控制通知结果回调信息,暂时为空
Definition: nim_signaling_helper.h:740
创建频道接口nim_signaling_create的传入参数
Definition: nim_signaling_helper.h:265
NIMSignalingType channel_type_
通话类型,1:音频;2:视频;3:其他
Definition: nim_signaling_helper.h:267
std::string channel_name_
创建时传入的频道名,可缺省
Definition: nim_signaling_helper.h:269
NIMSignalingCreateParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:275
std::string channel_ext_
创建时传入的扩展字段,可缺省
Definition: nim_signaling_helper.h:271
创建频道结果回调信息
Definition: nim_signaling_helper.h:287
static std::shared_ptr< SignalingResParam > GetOptParam(void *opt_res_param)
将C的返回结构体转换成C++
Definition: nim_signaling_helper.h:293
SignalingChannelInfo channel_info_
频道信息
Definition: nim_signaling_helper.h:289
邀请接口nim_signaling_invite的传入参数
Definition: nim_signaling_helper.h:569
bool offline_enabled_
是否存离线
Definition: nim_signaling_helper.h:579
std::string custom_info_
操作的扩展字段,透传给被邀请者,可缺省
Definition: nim_signaling_helper.h:577
std::string channel_id_
服务器生成的频道ID
Definition: nim_signaling_helper.h:571
NIMSignalingInviteParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:585
std::string account_id_
被邀请者的账号
Definition: nim_signaling_helper.h:573
std::string request_id_
邀请者邀请的请求id,需要邀请者填写,之后取消邀请、拒绝、接受需要复用该request_id_
Definition: nim_signaling_helper.h:575
邀请结果回调信息,暂时为空
Definition: nim_signaling_helper.h:599
Definition: nim_signaling_helper.h:514
int64_t uid_
自己在频道中对应的uid,大于零有效,无效时服务器会分配随机唯一的uid
Definition: nim_signaling_helper.h:520
NIMSignalingJoinAndAcceptParam GetCParam()
Definition: nim_signaling_helper.h:533
bool offline_enabled_
是否存离线
Definition: nim_signaling_helper.h:522
std::string custom_info_
操作者附加的自定义信息,透传给其他人,可缺省
Definition: nim_signaling_helper.h:518
std::string account_id_
邀请者的账号
Definition: nim_signaling_helper.h:524
std::string nertc_channel_name_
云信G2-RTC的房间名,不为空则返回对应token
Definition: nim_signaling_helper.h:528
std::string nertc_join_room_query_param_
云信G2-RTC的query请求
Definition: nim_signaling_helper.h:532
std::string request_id_
邀请者邀请的请求id
Definition: nim_signaling_helper.h:526
std::string channel_id_
服务器生成的频道ID
Definition: nim_signaling_helper.h:516
Definition: nim_signaling_helper.h:548
SignalingChannelDetailedinfo info_
频道详细信息
Definition: nim_signaling_helper.h:550
static std::shared_ptr< SignalingResParam > GetOptParam(void *opt_res_param)
将C的返回结构体转换成C++
Definition: nim_signaling_helper.h:555
加入频道接口nim_signaling_query_channel_info的传入参数
Definition: nim_signaling_helper.h:332
std::string nertc_channel_name_
云信G2-RTC的房间名,不为空则返回对应token
Definition: nim_signaling_helper.h:342
NIMSignalingJoinParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:350
std::string custom_info_
操作者附加的自定义信息,透传给其他人,可缺省
Definition: nim_signaling_helper.h:336
int64_t uid_
自己在频道中对应的uid,大于零有效,无效时服务器会分配随机唯一的uid
Definition: nim_signaling_helper.h:338
bool offline_enabled_
是否存离线
Definition: nim_signaling_helper.h:340
std::string nertc_join_room_query_param_
云信G2-RTC的query请求
Definition: nim_signaling_helper.h:346
std::string channel_id_
服务器生成的频道ID
Definition: nim_signaling_helper.h:334
加入频道结果回调信息
Definition: nim_signaling_helper.h:365
SignalingChannelDetailedinfo info_
频道详细信息
Definition: nim_signaling_helper.h:367
static std::shared_ptr< SignalingResParam > GetOptParam(void *opt_res_param)
将C的返回结构体转换成C++
Definition: nim_signaling_helper.h:371
离开频道接口nim_signaling_leave的传入参数
Definition: nim_signaling_helper.h:384
bool offline_enabled_
是否存离线
Definition: nim_signaling_helper.h:390
std::string custom_info_
操作的扩展字段
Definition: nim_signaling_helper.h:388
NIMSignalingLeaveParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:394
std::string channel_id_
服务器生成的频道ID
Definition: nim_signaling_helper.h:386
离开频道结果回调信息,暂时为空
Definition: nim_signaling_helper.h:406
成员属性
Definition: nim_signaling_helper.h:76
SignalingMemberInfo(NIMSignalingMemberInfo *info)
Definition: nim_signaling_helper.h:86
std::string account_id_
成员的 accid
Definition: nim_signaling_helper.h:78
SignalingMemberInfo()
Definition: nim_signaling_helper.h:85
接收邀请事件通知信息,event_type_=kNIMSignalingEventTypeAccept
Definition: nim_signaling_helper.h:235
std::string to_account_id_
邀请者的账号
Definition: nim_signaling_helper.h:237
std::string request_id_
邀请者邀请的请求id
Definition: nim_signaling_helper.h:239
取消邀请事件通知信息,event_type_=kNIMSignalingEventTypeCancelInvite
Definition: nim_signaling_helper.h:217
std::string request_id_
邀请者邀请的请求id
Definition: nim_signaling_helper.h:221
std::string to_account_id_
被邀请者的账号
Definition: nim_signaling_helper.h:219
频道关闭事件通知信息,event_type_=kNIMSignalingEventTypeClose
Definition: nim_signaling_helper.h:192
控制事件通知信息,event_type_=kNIMSignalingEventTypeCtrl
Definition: nim_signaling_helper.h:250
事件通知信息基类
Definition: nim_signaling_helper.h:172
std::string from_account_id_
操作者
Definition: nim_signaling_helper.h:178
std::string custom_info_
操作的扩展字段
Definition: nim_signaling_helper.h:180
enum NIMSignalingEventType event_type_
通知类型
Definition: nim_signaling_helper.h:174
邀请事件通知信息,event_type_=kNIMSignalingEventTypeInvite
Definition: nim_signaling_helper.h:205
SignalingPushInfo push_info_
推送信息
Definition: nim_signaling_helper.h:211
std::string request_id_
邀请者邀请的请求id,用于被邀请者回传request_id_作对应的回应操作
Definition: nim_signaling_helper.h:209
std::string to_account_id_
被邀请者的账号
Definition: nim_signaling_helper.h:207
加入频道事件通知信息,event_type_=kNIMSignalingEventTypeJoin
Definition: nim_signaling_helper.h:197
SignalingMemberInfo member_
加入成员的信息,用于获得uid
Definition: nim_signaling_helper.h:199
退出频道事件通知信息,event_type_=kNIMSignalingEventTypeLeave
Definition: nim_signaling_helper.h:245
拒绝邀请事件通知信息,event_type_=kNIMSignalingEventTypeReject
Definition: nim_signaling_helper.h:226
std::string to_account_id_
邀请者的账号
Definition: nim_signaling_helper.h:228
std::string request_id_
邀请者邀请的请求id
Definition: nim_signaling_helper.h:230
推送属性
Definition: nim_signaling_helper.h:119
std::string push_content_
推送内容
Definition: nim_signaling_helper.h:125
NIMSignalingPushInfo GetCParam()
将C++的结构体转成C的结构体
Definition: nim_signaling_helper.h:149
bool need_push_
是否需要推送,默认false,
Definition: nim_signaling_helper.h:121
std::string push_title_
推送标题
Definition: nim_signaling_helper.h:123
std::string push_payload_
推送自定义字段
Definition: nim_signaling_helper.h:127
SignalingPushInfo()
Definition: nim_signaling_helper.h:130
SignalingPushInfo(NIMSignalingPushInfo *info)
Definition: nim_signaling_helper.h:133
bool need_badge_
是否计入未读计数,默认true
Definition: nim_signaling_helper.h:129
查询频道接口nim_signaling_join的传入参数
Definition: nim_signaling_helper.h:411
NIMSignalingQueryChannelInfoParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:417
std::string channel_name_
创建时传入的频道名
Definition: nim_signaling_helper.h:413
查询频道结果回调信息
Definition: nim_signaling_helper.h:426
SignalingChannelDetailedinfo info_
频道详细信息
Definition: nim_signaling_helper.h:428
static std::shared_ptr< SignalingResParam > GetOptParam(void *opt_res_param)
将C的返回结构体转换成C++
Definition: nim_signaling_helper.h:432
拒绝接口nim_signaling_reject的传入参数
Definition: nim_signaling_helper.h:637
NIMSignalingRejectParam GetCParam()
将C++的传入参数转成C的结构体
Definition: nim_signaling_helper.h:651
std::string account_id_
邀请者的账号
Definition: nim_signaling_helper.h:641
std::string request_id_
邀请者邀请的请求id
Definition: nim_signaling_helper.h:643
bool offline_enabled_
是否存离线
Definition: nim_signaling_helper.h:647
std::string custom_info_
操作的扩展字段
Definition: nim_signaling_helper.h:645
std::string channel_id_
服务器生成的频道ID
Definition: nim_signaling_helper.h:639
拒绝邀请结果回调信息,暂时为空
Definition: nim_signaling_helper.h:664
独立信令操作回调参数基类
Definition: nim_signaling_helper.h:255
static std::shared_ptr< SignalingResParam > GetOptParam(void *opt_res_param)
将C的返回结构体转换成C++
Definition: nim_signaling_helper.h:259