NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_signaling_def.h
浏览该文件的文档.
1
8#ifndef NIM_SDK_DLL_EXPORT_HEADERS_NIM_SIGNALING_DEF_H_
9#define NIM_SDK_DLL_EXPORT_HEADERS_NIM_SIGNALING_DEF_H_
10
11#include "public_defines.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
27};
28
55};
56
64 int64_t uid_;
69};
70
80 int32_t member_size_;
81};
82
97};
98
119};
120
134 uint64_t timestamp_;
135};
136
140#define NIMSignalingNotifyInfoBase \
141 enum NIMSignalingEventType event_type_; \
142 struct NIMSignalingChannelInfo channel_info_; \
143 char* from_account_id_; \
144 char* custom_info_; \
145 uint64_t timestamp_;
146
153};
154
163};
164
177};
178
189};
200};
211};
212
219};
220
227};
228
236typedef void (*nim_signaling_notify_cb_func)(const struct NIMSignalingNotifyInfo* notify_info, const void* user_data);
237
246typedef void (*nim_signaling_notify_list_cb_func)(const struct NIMSignalingNotifyInfo** info_list, int32_t size, const void* user_data);
247
256typedef void (*nim_signaling_channels_sync_cb_func)(const struct NIMSignalingChannelDetailedinfo* info_list, int32_t size, const void* user_data);
257
266typedef void (*nim_signaling_members_sync_cb_func)(const struct NIMSignalingChannelDetailedinfo* detailed_info, const void* user_data);
267
278};
279
286};
287
298};
299
309 int64_t uid_;
318};
325};
326
337};
338
345};
352};
353
365 int64_t uid_;
382};
383
390 uint32_t call_status_;
391};
392
399 int64_t uid_;
412};
413
417 uint32_t call_status_;
418};
419
436};
437
452};
453
468};
486 int64_t uid_;
495};
496
501
512};
513
521typedef void (*nim_signaling_opt_cb_func)(int code, void* opt_res_param, const void* user_data);
522
524static const char* kNIMSglEventType = "event_type";
526static const char* kNIMSglChannelInfo = "channel_info";
528static const char* kNIMSglFromAccountID = "from_account_id";
530static const char* kNIMSglCustomInfo = "custom_info";
532static const char* kNIMSglTimeStamp = "timestamp";
534static const char* kNIMSglChannelType = "channel_type";
536static const char* kNIMSglChannelName = "channel_name";
538static const char* kNIMSglChannelID = "channel_id";
540static const char* kNIMSglChannelExt = "channel_ext";
542static const char* kNIMSglCreateTime = "create_timestamp";
544static const char* kNIMSglExpireTime = "expire_timestamp";
546static const char* kNIMSglCreatorID = "creator_id";
548static const char* kNIMSglInvalid = "invalid";
550static const char* kNIMSglMembers = "members";
552static const char* kNIMSglAccountID = "account_id";
554static const char* kNIMSglUID = "uid";
556static const char* kNIMSglOfflineEnabled = "offline_enabled";
558static const char* kNIMSglDetailedInfo = "info";
560static const char* kNIMSglRequestID = "request_id";
562static const char* kNIMSglPushInfo = "push_info";
564static const char* kNIMSglNeedPush = "need_push";
566static const char* kNIMSglPushTitle = "push_title";
568static const char* kNIMSglPushContent = "push_content";
570static const char* kNIMSglPushPlayload = "push_payload";
572static const char* kNIMSglNeedBadge = "need_badge";
574static const char* kNIMSglAcceptCustomInfo = "accept_custom_info";
576static const char* kNIMSglAutoJoin = "auto_join";
578static const char* kNIMSglJoinCustomInfo = "join_custom_info";
579
580#ifdef __cplusplus
581};
582#endif //__cplusplus
583#endif // NIM_SDK_DLL_EXPORT_HEADERS_NIM_SIGNALING_DEF_H_
void(* nim_signaling_opt_cb_func)(int code, void *opt_res_param, const void *user_data)
操作回调,通用的操作回调接口
Definition: nim_signaling_def.h:521
static const char * kNIMSglPushTitle
推送标题
Definition: nim_signaling_def.h:566
static const char * kNIMSglPushPlayload
推送自定义字段
Definition: nim_signaling_def.h:570
static const char * kNIMSglChannelName
创建时传入的频道名
Definition: nim_signaling_def.h:536
static const char * kNIMSglEventType
通知类型
Definition: nim_signaling_def.h:524
static const char * kNIMSglFromAccountID
操作者
Definition: nim_signaling_def.h:528
static const char * kNIMSglTimeStamp
时间戳
Definition: nim_signaling_def.h:532
static const char * kNIMSglInvalid
频道是否有效
Definition: nim_signaling_def.h:548
static const char * kNIMSglPushContent
推送内容
Definition: nim_signaling_def.h:568
static const char * kNIMSglChannelExt
扩展字段
Definition: nim_signaling_def.h:540
static const char * kNIMSglOfflineEnabled
是否存离线
Definition: nim_signaling_def.h:556
static const char * kNIMSglExpireTime
失效时间点
Definition: nim_signaling_def.h:544
static const char * kNIMSglRequestID
邀请者邀请的请求id,需要邀请者填写,之后取消邀请、拒绝、接受需要复用该request_id_
Definition: nim_signaling_def.h:560
static const char * kNIMSglJoinCustomInfo
加入频道的自定义扩展信息,将在加入频道通知中带给其他频道成员,可缺省
Definition: nim_signaling_def.h:578
static const char * kNIMSglAutoJoin
是否加入,打开后后续参数uid_、join_custom_info_有效
Definition: nim_signaling_def.h:576
static const char * kNIMSglChannelID
服务器生成的频道ID
Definition: nim_signaling_def.h:538
static const char * kNIMSglMembers
频道内成员信息数组
Definition: nim_signaling_def.h:550
NIMSignalingEventType
频道事件,包含在线,同步,离线等
Definition: nim_signaling_def.h:102
@ kNIMSignalingEventTypeCancelInvite
返回NIMSignalingNotifyInfoCancelInvite,支持在线、离线通知
Definition: nim_signaling_def.h:110
@ kNIMSignalingEventTypeReject
返回NIMSignalingNotifyInfoReject,支持在线、多端同步、离线通知
Definition: nim_signaling_def.h:112
@ kNIMSignalingEventTypeClose
返回NIMSignalingNotifyInfoClose,支持在线、离线通知
Definition: nim_signaling_def.h:104
@ kNIMSignalingEventTypeLeave
返回NIMSignalingNotifyInfoLeave,支持在线、离线通知
Definition: nim_signaling_def.h:116
@ kNIMSignalingEventTypeJoin
返回NIMSignalingNotifyInfoJoin,支持在线、离线通知
Definition: nim_signaling_def.h:106
@ kNIMSignalingEventTypeCtrl
返回NIMSignalingNotifyInfoControl,支持在线通知
Definition: nim_signaling_def.h:118
@ kNIMSignalingEventTypeInvite
返回NIMSignalingNotifyInfoInvite,支持在线、离线通知
Definition: nim_signaling_def.h:108
@ kNIMSignalingEventTypeAccept
返回NIMSignalingNotifyInfoAccept,支持在线、多端同步、离线通知
Definition: nim_signaling_def.h:114
void(* nim_signaling_members_sync_cb_func)(const struct NIMSignalingChannelDetailedinfo *detailed_info, const void *user_data)
频道成员变更同步回调函数
Definition: nim_signaling_def.h:266
static const char * kNIMSglChannelType
通话类型,1:音频;2:视频;3:其他
Definition: nim_signaling_def.h:534
NIMSignalingType
频道类型
Definition: nim_signaling_def.h:20
@ kNIMSignalingTypeAudio
音频类型
Definition: nim_signaling_def.h:22
@ kNIMSignalingTypeCustom
自定义
Definition: nim_signaling_def.h:26
@ kNIMSignalingTypeVideo
视频类型
Definition: nim_signaling_def.h:24
static const char * kNIMSglAccountID
成员的 accid
Definition: nim_signaling_def.h:552
static const char * kNIMSglUID
成员的 uid,大于零有效,无效时服务器会分配随机频道内唯一的uid
Definition: nim_signaling_def.h:554
void(* nim_signaling_notify_list_cb_func)(const struct NIMSignalingNotifyInfo **info_list, int32_t size, const void *user_data)
事件回调函数,用于离线通知
Definition: nim_signaling_def.h:246
static const char * kNIMSglDetailedInfo
频道详细信息
Definition: nim_signaling_def.h:558
void(* nim_signaling_notify_cb_func)(const struct NIMSignalingNotifyInfo *notify_info, const void *user_data)
事件回调函数,用于在线通知和多端同步通知
Definition: nim_signaling_def.h:236
static const char * kNIMSglCustomInfo
扩展字段
Definition: nim_signaling_def.h:530
static const char * kNIMSglAcceptCustomInfo
扩展字段
Definition: nim_signaling_def.h:574
NIMSignalingJoinResParam NIMSignalingAcceptResParam
接受邀请结果回调信息,在自动加入成功后返回有效
Definition: nim_signaling_def.h:500
static const char * kNIMSglCreatorID
创建者的accid
Definition: nim_signaling_def.h:546
static const char * kNIMSglNeedBadge
是否计入未读计数,默认true
Definition: nim_signaling_def.h:572
void(* nim_signaling_channels_sync_cb_func)(const struct NIMSignalingChannelDetailedinfo *info_list, int32_t size, const void *user_data)
频道列表同步回调函数
Definition: nim_signaling_def.h:256
static const char * kNIMSglChannelInfo
频道信息
Definition: nim_signaling_def.h:526
static const char * kNIMSglNeedPush
是否需要推送,默认false
Definition: nim_signaling_def.h:564
static const char * kNIMSglCreateTime
创建时间点
Definition: nim_signaling_def.h:542
static const char * kNIMSglPushInfo
推送属性
Definition: nim_signaling_def.h:562
NIM SDK 及 NIM ChatRoom SDK 公用头文件
接受邀请接口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
struct NIMSignalingChannelDetailedinfo info_
频道的详细信息
Definition: nim_signaling_def.h:389
uint32_t call_status_
Definition: nim_signaling_def.h:390
取消邀请接口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
struct NIMSignalingChannelInfo channel_info_
频道信息
Definition: nim_signaling_def.h:285
邀请接口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
struct NIMSignalingChannelDetailedinfo info_
频道的详细信息
Definition: nim_signaling_def.h:416
uint32_t call_status_
Definition: nim_signaling_def.h:417
加入频道接口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
struct NIMSignalingChannelDetailedinfo info_
频道的详细信息
Definition: nim_signaling_def.h:324
离开频道接口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
接收邀请事件通知信息,event_type_=kNIMSignalingEventTypeAccept
Definition: nim_signaling_def.h:204
char * request_id_
邀请者邀请的请求id
Definition: nim_signaling_def.h:210
NIMSignalingNotifyInfoBase
事件通知信息基类
Definition: nim_signaling_def.h:206
char * to_account_id_
邀请者的账号
Definition: nim_signaling_def.h:208
取消邀请事件通知信息,event_type_=kNIMSignalingEventTypeCancelInvite
Definition: nim_signaling_def.h:182
char * request_id_
邀请者邀请的请求id
Definition: nim_signaling_def.h:188
char * to_account_id_
被邀请者的账号
Definition: nim_signaling_def.h:186
NIMSignalingNotifyInfoBase
事件通知信息基类
Definition: nim_signaling_def.h:184
频道关闭事件通知信息,event_type_=kNIMSignalingEventTypeClose
Definition: nim_signaling_def.h:150
NIMSignalingNotifyInfoBase
事件通知信息基类
Definition: nim_signaling_def.h:152
控制事件通知信息,event_type_=kNIMSignalingEventTypeCtrl
Definition: nim_signaling_def.h:224
NIMSignalingNotifyInfoBase
事件通知信息基类
Definition: nim_signaling_def.h:226
事件通知信息基类
Definition: nim_signaling_def.h:124
char * custom_info_
操作的扩展字段
Definition: nim_signaling_def.h:132
struct NIMSignalingChannelInfo channel_info_
频道信息
Definition: nim_signaling_def.h:128
uint64_t timestamp_
操作的时间戳
Definition: nim_signaling_def.h:134
enum NIMSignalingEventType event_type_
通知类型
Definition: nim_signaling_def.h:126
char * from_account_id_
操作者
Definition: nim_signaling_def.h:130
邀请事件通知信息,event_type_=kNIMSignalingEventTypeInvite
Definition: nim_signaling_def.h:168
struct NIMSignalingPushInfo push_info_
推送信息
Definition: nim_signaling_def.h:176
char * request_id_
邀请者邀请的请求id,用于被邀请者回传request_id_作对应的回应操作
Definition: nim_signaling_def.h:174
char * to_account_id_
被邀请者的账号
Definition: nim_signaling_def.h:172
NIMSignalingNotifyInfoBase
事件通知信息基类
Definition: nim_signaling_def.h:170
加入频道事件通知信息,event_type_=kNIMSignalingEventTypeJoin
Definition: nim_signaling_def.h:158
NIMSignalingNotifyInfoBase
事件通知信息基类
Definition: nim_signaling_def.h:160
struct NIMSignalingMemberInfo member_
加入成员的信息,用于获得uid
Definition: nim_signaling_def.h:162
退出频道事件通知信息,event_type_=kNIMSignalingEventTypeLeave
Definition: nim_signaling_def.h:216
NIMSignalingNotifyInfoBase
事件通知信息基类
Definition: nim_signaling_def.h:218
拒绝邀请事件通知信息,event_type_=kNIMSignalingEventTypeReject
Definition: nim_signaling_def.h:193
char * to_account_id_
邀请者的账号
Definition: nim_signaling_def.h:197
char * request_id_
邀请者邀请的请求id
Definition: nim_signaling_def.h:199
NIMSignalingNotifyInfoBase
事件通知信息基类
Definition: nim_signaling_def.h:195
推送属性
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
struct NIMSignalingChannelDetailedinfo info_
频道的详细信息
Definition: nim_signaling_def.h:351
拒绝接口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