void(* chat_onPublicMessage)(AVDHandle chatHandle, const AVDMessage &message)
通知
Definition: mchat_c.h:41
RT_API_EXPORT Result avd_chat_uninit(AVDHandle chatHandle)
反初始化聊天模块接口
RT_API_EXPORT Result avd_chat_sendPublicMessage(AVDHandle chatHandle, const char *msg, uint32 len)
发送公聊消息
char message[4 *Max_Message]
消息内容
Definition: mchat_c.h:15
AVDMessage()
Definition: mchat_c.h:16
RT_API_EXPORT Result avd_chat_getPrivateHistoryMessage(AVDHandle chatHandle, const char *userId, AVDBool latest, uint32 begindex, uint32 &ncount, AVDMessage *&messages)
获取私聊历史消息记录
struct Chat_Callback * LPChat_Callback
房间中聊天模块回调接口.
void clear()
Definition: mchat_c.h:21
RT_API_EXPORT Result avd_chat_getPublicHistoryMessage(AVDHandle chatHandle, AVDBool latest, uint32 begindex, uint32 &ncount, AVDMessage *&messages)
获取公聊历史消息记录
void(* chat_onPrivateMessage)(AVDHandle chatHandle, const AVDMessage &message)
接收到私聊消息通知
Definition: mchat_c.h:50
聊天消息结构.
Definition: mchat_c.h:11
int AVDBool
C语言自定义Bool类型.
Definition: common_c.h:20
RT_API_EXPORT Result avd_chat_init(AVDHandle roomHandle, LPChat_Callback cb, AVDHandle &chatHandle)
初始化聊天模块接口
Chat_Callback()
Definition: mchat_c.h:51
char fromId[Max_UserId]
消息发送者Id
Definition: mchat_c.h:13
RT_API_EXPORT Result avd_chat_sendPrivateMessage(AVDHandle chatHandle, const char *msg, uint32 len, const char *toUserId)
发送私聊消息
char fromName[Max_UserName]
消息发送者名
Definition: mchat_c.h:14
uint32 timestamp
消息时间戳,对应用层是本地时间,传输中用GMT时间
Definition: mchat_c.h:12
房间中聊天模块回调接口.
Definition: mchat_c.h:31