|
typedef void(* | nim_push_event_cb_func) (int res_code, const char *event_info_json, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_batch_push_event_cb_func) (int res_code, const char *event_list_json, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_publish_event_cb_func) (int res_code, int event_type, const char *event_info_json, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_subscribe_event_cb_func) (int res_code, int event_type, const char *faild_list_json, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_unsubscribe_event_cb_func) (int res_code, int event_type, const char *faild_list_json, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_batch_unsubscribe_event_cb_func) (int res_code, int event_type, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_query_subscribe_event_cb_func) (int res_code, int event_type, const char *subscribe_list_json, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_batch_query_subscribe_event_cb_func) (int res_code, int event_type, const char *subscribe_list_json, const char *json_extension, const void *user_data) |
|
|
|
static const char * | kNIMEventEventType = "event_type" |
| int,事件类型
|
|
static const char * | kNIMEventEventValue = "event_value" |
| int,事件值
|
|
static const char * | kNIMEventMsgIdClient = "msgid_client" |
| string,客户端生成的消息id
|
|
static const char * | kNIMEventConfig = "config" |
| string,用户自定义事件扩展属性,最长4K
|
|
static const char * | kNIMEventTTL = "ttl" |
| long,事件有效期,单位:秒,时间范围:60s到7天
|
|
static const char * | kNIMEventBroadcastType = "broadcast_type" |
| int,事件广播类型:1:仅在线 2:在线和离线
|
|
static const char * | kNIMEventSyncSelf = "sync_seft" |
| int,0:不同步给自己的其他端,1:同步给自己的其他端
|
|
static const char * | kNIMEventTTLType = "ttltype" |
| int,TtlType枚举值(客户端不填写)
|
|
static const char * | kNIMEventDurable = "durable" |
| int,是否需要持久化(可选字段),默认为需要持久化,0:不需要持久化,1:需要持久化(客户端不填写)
|
|
static const char * | kNIMEventEventTime = "event_time" |
| long,事件发布的时间戳,服务器补充(客户端不填写)
|
|
static const char * | kNIMEventMsgIdServer = "msgid_server" |
| string,服务端生成的消息id(客户端不填写)
|
|
static const char * | kNIMEventClientType = "client_type" |
| int,发送客户端类型(客户端不填写)
|
|
static const char * | kNIMEventNimConfig = "nim_config" |
| string,预定义事件的扩展字段(在线状态事件:在线的客户端类型Json
|
|
static const char * | kNIMEventMultiConfig = "multi_config" |
| string,多端配置信息字段,JSON格式{"clent_type":"clent_config","1":"xxx","2":"xxx"}
|
|
static const char * | kNIMEventPublisherAccid = "publisher_accid" |
| string,事件发布者的accid(客户端不填写)
|
|
static const char * | kNIMEventConsid = "consid" |
| string,发送设备id(客户端不填写)
|
|
|
static const char * | kNIMEventNimConfigOnlineClient = "online" |
| string,预定义事件的扩展字段中的在线的客户端类型
|
|
|
static const char * | kNIMEventSubscribeEventType = "type" |
| int,事件类型
|
|
static const char * | kNIMEventSubscribeTTL = "ttl" |
| long,订阅有效期,单位:秒,范围:60s到30天
|
|
static const char * | kNIMEventSubscribeSyncEvent = "syncevent" |
| int,订阅后是否立即同步最新事件
|
|
static const char * | kNIMEventSubscribePublisherAccid = "publisher_accid" |
| string,被订阅人(事件发布人)的accid(客户端不填写)
|
|
static const char * | kNIMEventSubscribeSubscribeAccid = "subscribe_accid" |
| string,订阅人的accid(客户端不填写)
|
|
static const char * | kNIMEventSubscribeSubscribeTime = "subscribe_time" |
| long,订阅时间戳(客户端不填写)
|
|