NIM CPP SDK  7.8.1
Public Types | Static Public Member Functions | List of all members
nim::TalkEx::Collect Class Reference

Public Types

using AddCollectCallback = std::function< void(int code, const CollectInfo &)>
 
using RemoveCollectsCallback = std::function< void(int code, int count)>
 
using UpdateCollectCallback = std::function< void(int, const CollectInfo &)>
 
using QueryCollectsCallback = std::function< void(int, int, const CollectInfoList &)>
 

Static Public Member Functions

static void AddCollect (const CollectInfo &collect_info, const AddCollectCallback &cb)
 
static void RemoveCollects (const RemoveCollectsParm &collect_list, const RemoveCollectsCallback &cb)
 
static void UpdateCollectExt (const MatchCollectParm &collect_match_param, const std::string &ext, const UpdateCollectCallback &cb)
 
static void QueryCollectList (const QueryCollectsParm &query_collect_list_param, const QueryCollectsCallback &cb)
 

Member Typedef Documentation

◆ AddCollectCallback

using nim::TalkEx::Collect::AddCollectCallback = std::function<void(int code, const CollectInfo&)>

添加收藏回调模板

◆ QueryCollectsCallback

using nim::TalkEx::Collect::QueryCollectsCallback = std::function<void(int, int,const CollectInfoList&)>

分页查询回调模板

◆ RemoveCollectsCallback

using nim::TalkEx::Collect::RemoveCollectsCallback = std::function<void(int code, int count)>

删除收藏回调模板

◆ UpdateCollectCallback

using nim::TalkEx::Collect::UpdateCollectCallback = std::function<void(int, const CollectInfo&)>

更新收藏回调模板

Member Function Documentation

◆ AddCollect()

static void nim::TalkEx::Collect::AddCollect ( const CollectInfo collect_info,
const AddCollectCallback cb 
)
static

添加收藏

Parameters
[in]collect_info收藏内容
[in]cb执行结果回调函数
Returns
void 无返回值

◆ QueryCollectList()

static void nim::TalkEx::Collect::QueryCollectList ( const QueryCollectsParm query_collect_list_param,
const QueryCollectsCallback cb 
)
static

分页查询收藏列表

Parameters
[in]query_collect_list_param查询参数
[in]cb执行结果回调函数
Returns
void 无返回值

◆ RemoveCollects()

static void nim::TalkEx::Collect::RemoveCollects ( const RemoveCollectsParm collect_list,
const RemoveCollectsCallback cb 
)
static

批量删除收藏

Parameters
[in]collect_list要删除的收藏列表
[in]cb执行结果回调函数
Returns
void 无返回值

◆ UpdateCollectExt()

static void nim::TalkEx::Collect::UpdateCollectExt ( const MatchCollectParm collect_match_param,
const std::string &  ext,
const UpdateCollectCallback cb 
)
static

更新收藏扩展字段

Parameters
[in]collect_match_param根据收藏的id 与 create time去匹配收藏内容
[in]ext收藏的扩展字段内容
[in]cb执行结果回调函数
Returns
void 无返回值

The documentation for this class was generated from the following file: