NIM SDK API  8.0.0
nim_talk.h
Go to the documentation of this file.
1 
8 #ifndef NIM_SDK_DLL_API_NIM_TALK_H_
9 #define NIM_SDK_DLL_API_NIM_TALK_H_
10 
11 #include "public_define/defines/nim_sdk_dll.h"
12 #include "public_define/defines/nim_define/nim_talk_def.h"
13 #include "public_define/defines/nim_define/nim_nos_def.h"
14 #include "public_define/defines/nim_define/nim_session_def.h"
15 
16 #ifdef __cplusplus
17 extern"C"
18 {
19 #endif
20 
28 NIM_SDK_DLL_API void nim_talk_send_msg(const char *json_msg, const char *json_extension, nim_nos_upload_prg_cb_func prg_cb, const void *prg_user_data);
29 
36 NIM_SDK_DLL_API void nim_talk_stop_send_msg(const char *json_msg, const char *json_extension);
37 
55 NIM_SDK_DLL_API void nim_talk_reg_ack_cb(const char *json_extension, nim_talk_ack_cb_func cb, const void *user_data);
56 
67 NIM_SDK_DLL_API void nim_talk_reg_receive_cb(const char *json_extension, nim_talk_receive_cb_func cb, const void *user_data);
68 
77 NIM_SDK_DLL_API void nim_talk_reg_receive_msgs_cb(const char *json_extension, nim_talk_receive_cb_func cb, const void *user_data);
78 
86 NIM_SDK_DLL_API void nim_talk_reg_notification_filter_cb(const char *json_extension, nim_talk_team_notification_filter_func cb, const void *user_data);
87 
95 NIM_SDK_DLL_API void nim_talk_reg_message_filter_cb(const char *json_extension, nim_talk_message_filter_func cb, const void *user_data);
96 
107 NIM_SDK_DLL_API char *nim_talk_create_retweet_msg(const char *src_msg_json, const char *client_msg_id, enum NIMSessionType retweet_to_session_type, const char *retweet_to_session_id, const char *msg_setting, int64_t timetag);
108 
123 NIM_SDK_DLL_API void nim_talk_recall_msg(const char *json_msg, const char *notify, const char *json_extension, nim_talk_recall_msg_func cb, const void *user_data);
124 
141 NIM_SDK_DLL_API void nim_talk_recall_msg2(const char *json_msg, const char *notify, const char *apnstext, const char *pushpayload,const char *json_extension, nim_talk_recall_msg_func cb, const void *user_data);
142 
157 NIM_SDK_DLL_API void nim_talk_recall_msg_ex(const char* json_msg, const char* notify, nim_talk_recall_msg_func cb, nim_talk_recall_extra_params& extra_params, const void* user_data);
158 
167 NIM_SDK_DLL_API void nim_talk_reg_recall_msg_cb(const char *json_extension, nim_talk_recall_msg_func cb, const void *user_data);
168 
174 NIM_SDK_DLL_API char *nim_talk_get_attachment_path_from_msg(const char *json_msg);
175 
186 NIM_SDK_DLL_API void nim_talk_reg_receive_broadcast_cb(const char *json_extension, nim_talk_receive_broadcast_cb_func cb, const void *user_data);
187 
196 NIM_SDK_DLL_API void nim_talk_reg_receive_broadcast_msgs_cb(const char *json_extension, nim_talk_receive_broadcast_cb_func cb, const void *user_data);
197 
207 NIM_SDK_DLL_API void nim_talk_reply_msg(const char* json_msg, const char* json_reply_msg, const char* json_extension, nim_nos_upload_prg_cb_func prg_cb, const void* prg_user_data);
208 #ifdef __cplusplus
209 };
210 #endif //__cplusplus
211 #endif //NIM_SDK_DLL_API_NIM_TALK_H_
nim_talk_recall_msg_ex
NIM_SDK_DLL_API void nim_talk_recall_msg_ex(const char *json_msg, const char *notify, nim_talk_recall_msg_func cb, nim_talk_recall_extra_params &extra_params, const void *user_data)
nim_talk_reply_msg
NIM_SDK_DLL_API void nim_talk_reply_msg(const char *json_msg, const char *json_reply_msg, const char *json_extension, nim_nos_upload_prg_cb_func prg_cb, const void *prg_user_data)
nim_talk_reg_message_filter_cb
NIM_SDK_DLL_API void nim_talk_reg_message_filter_cb(const char *json_extension, nim_talk_message_filter_func cb, const void *user_data)
nim_talk_receive_broadcast_cb_func
void(* nim_talk_receive_broadcast_cb_func)(const char *content, const char *json_extension, const void *user_data)
Definition: nim_talk_def.h:68
nim_talk_stop_send_msg
NIM_SDK_DLL_API void nim_talk_stop_send_msg(const char *json_msg, const char *json_extension)
nim_talk_ack_cb_func
void(* nim_talk_ack_cb_func)(const char *result, const void *user_data)
Definition: nim_talk_def.h:22
nim_talk_send_msg
NIM_SDK_DLL_API void nim_talk_send_msg(const char *json_msg, const char *json_extension, nim_nos_upload_prg_cb_func prg_cb, const void *prg_user_data)
nim_talk_get_attachment_path_from_msg
NIM_SDK_DLL_API char * nim_talk_get_attachment_path_from_msg(const char *json_msg)
nim_nos_upload_prg_cb_func
void(* nim_nos_upload_prg_cb_func)(int64_t uploaded_size, int64_t file_size, const char *json_extension, const void *user_data)
Definition: nim_nos_def.h:93
nim_talk_recall_msg
NIM_SDK_DLL_API void nim_talk_recall_msg(const char *json_msg, const char *notify, const char *json_extension, nim_talk_recall_msg_func cb, const void *user_data)
nim_talk_team_notification_filter_func
bool(* nim_talk_team_notification_filter_func)(const char *content, const char *json_extension, const void *user_data)
Definition: nim_talk_def.h:40
nim_talk_recall_msg2
NIM_SDK_DLL_API void nim_talk_recall_msg2(const char *json_msg, const char *notify, const char *apnstext, const char *pushpayload, const char *json_extension, nim_talk_recall_msg_func cb, const void *user_data)
nim_talk_reg_notification_filter_cb
NIM_SDK_DLL_API void nim_talk_reg_notification_filter_cb(const char *json_extension, nim_talk_team_notification_filter_func cb, const void *user_data)
nim_talk_recall_msg_func
void(* nim_talk_recall_msg_func)(int rescode, const char *content, const char *json_extension, const void *user_data)
Definition: nim_talk_def.h:59
nim_talk_reg_recall_msg_cb
NIM_SDK_DLL_API void nim_talk_reg_recall_msg_cb(const char *json_extension, nim_talk_recall_msg_func cb, const void *user_data)
nim_talk_reg_receive_broadcast_msgs_cb
NIM_SDK_DLL_API void nim_talk_reg_receive_broadcast_msgs_cb(const char *json_extension, nim_talk_receive_broadcast_cb_func cb, const void *user_data)
_nim_talk_recall_extra_params_
Definition: nim_talk_def.h:73
nim_talk_reg_receive_cb
NIM_SDK_DLL_API void nim_talk_reg_receive_cb(const char *json_extension, nim_talk_receive_cb_func cb, const void *user_data)
nim_talk_receive_cb_func
void(* nim_talk_receive_cb_func)(const char *content, const char *json_extension, const void *user_data)
Definition: nim_talk_def.h:31
nim_talk_reg_receive_msgs_cb
NIM_SDK_DLL_API void nim_talk_reg_receive_msgs_cb(const char *json_extension, nim_talk_receive_cb_func cb, const void *user_data)
nim_talk_reg_receive_broadcast_cb
NIM_SDK_DLL_API void nim_talk_reg_receive_broadcast_cb(const char *json_extension, nim_talk_receive_broadcast_cb_func cb, const void *user_data)
nim_talk_message_filter_func
bool(* nim_talk_message_filter_func)(const char *content, const char *json_extension, const void *user_data)
Definition: nim_talk_def.h:49
NIMSessionType
NIMSessionType
Definition: nim_session_def.h:17
nim_talk_reg_ack_cb
NIM_SDK_DLL_API void nim_talk_reg_ack_cb(const char *json_extension, nim_talk_ack_cb_func cb, const void *user_data)
nim_talk_create_retweet_msg
NIM_SDK_DLL_API char * nim_talk_create_retweet_msg(const char *src_msg_json, const char *client_msg_id, enum NIMSessionType retweet_to_session_type, const char *retweet_to_session_id, const char *msg_setting, int64_t timetag)