YYClientSDK  beta 1.15
 全部  函数 枚举 枚举值
Public 成员函数 | 所有成员列表
yy::IChannelAppMsg结构体 参考abstract

[interface] 应用消息接口 该消息在频道内的公告栏下方出现一栏可点击的连接的文字信息,支持发送到指定的子频道所有人,和指定用户 的 接口入库 更多...

#include <yy-api-client.h>

Public 成员函数

virtual int SendMsgToSubChannel (unsigned int sub_channel_id, const char *view_str, unsigned int link_begin_pos, unsigned int link_end_pos, unsigned int cookie)=0
 发送应用消息
 
virtual int SendMsgToUsers (const unsigned int *users, unsigned int size, const char *view_str, unsigned int link_begin_pos, unsigned int link_end_pos, unsigned int cookie)=0
 发送应用消息
 
virtual int RegisterChannelAppLinkEvent (IChannelAppLinkEvent *e)=0
 注册频道应用消息事件
 
virtual int UnRegisterChannelAppLinkEvent (IChannelAppLinkEvent *e)=0
 反注册频道应用消息事件
 
virtual IAppMsgCreateAppMsg (unsigned int cookie)=0
 创建新应用消息操作类
 
virtual int SendMsgToSubChannelEx (unsigned int sub_channel_id, IAppMsg *msg)=0
 发送新应用消息到指定的子频道
 
virtual int SendMsgToUsersEx (const unsigned int *users, unsigned int size, IAppMsg *msg)=0
 发送新应用消息到指定的用户
 

详细描述

[interface] 应用消息接口 该消息在频道内的公告栏下方出现一栏可点击的连接的文字信息,支持发送到指定的子频道所有人,和指定用户 的 接口入库

成员函数说明

virtual IAppMsg* yy::IChannelAppMsg::CreateAppMsg ( unsigned int  cookie)
pure virtual

创建新应用消息操作类

参数
[in]unsignedint cookie,消息 cookie
返回
IAppMsg *, 有效指针 sucess, NULL 失败
virtual int yy::IChannelAppMsg::RegisterChannelAppLinkEvent ( IChannelAppLinkEvent e)
pure virtual

注册频道应用消息事件

参数
[in]IChannelUserPopMenuEvent*e,有效的右键菜单事件指针
返回
int, 0 success ,其他值 error,参考错误代码表
virtual int yy::IChannelAppMsg::SendMsgToSubChannel ( unsigned int  sub_channel_id,
const char *  view_str,
unsigned int  link_begin_pos,
unsigned int  link_end_pos,
unsigned int  cookie 
)
pure virtual

发送应用消息

参数
unsignedint sub_channel_id, 子频道id
constchar* view_str [in],显示字符串
unsignedsize [in], 显示字符串的大小 最大长度 [200]
unsignedint [in], 显示字符串中的链接首位置
unsignedint link_end_pos [in], 显示字符创的链接结束位置 //!eg. view_str :"my app link" 链接 link字符,link_begin_pos: 7, link_end_pos:10
unsignedint cookie [in], 自定义数据
返回
int, 0 success ,其他值 error,参考错误代码表
virtual int yy::IChannelAppMsg::SendMsgToSubChannelEx ( unsigned int  sub_channel_id,
IAppMsg msg 
)
pure virtual

发送新应用消息到指定的子频道

参数
[in]unsignedint sub_channel_id, 子频道ID
[in]IAppMsg*, 新应用消息指针
返回
int, 0 success ,其他值 error,参考错误代码表
virtual int yy::IChannelAppMsg::SendMsgToUsers ( const unsigned int *  users,
unsigned int  size,
const char *  view_str,
unsigned int  link_begin_pos,
unsigned int  link_end_pos,
unsigned int  cookie 
)
pure virtual

发送应用消息

unsigned int users, 用户数组首地址 unsigned int size, 用户数组数量 最大[100]

参数
constchar view_str [in],显示字符串
unsignedsize [in], 显示字符串的大小 最大长度 [200]
unsignedint [in], 显示字符串中的链接首位置
unsignedint link_end_pos [in], 显示字符创的链接结束位置 //!eg. view_str :"my app link" 链接 link字符,link_begin_pos: 7, link_end_pos:10
unsignedint cookie [in], 自定义数据
返回
int, 0 success ,其他值 error,参考错误代码表

virtual int yy::IChannelAppMsg::SendMsgToUsersEx ( const unsigned int *  users,
unsigned int  size,
IAppMsg msg 
)
pure virtual

发送新应用消息到指定的用户

参数
[in]constunsigned int *users, 用户数组首地址
[in]unsignedint size, 数组大小
[in]IAppMsg*, 新应用消息指针
返回
int, 0 success ,其他值 error,参考错误代码表
virtual int yy::IChannelAppMsg::UnRegisterChannelAppLinkEvent ( IChannelAppLinkEvent e)
pure virtual

反注册频道应用消息事件

参数
[in]IChannelUserPopMenuEvent*e,有效的右键菜单事件指针
返回
int, 0 success ,其他值 error,参考错误代码表