属性:
// 亮盾唯一ID
public String LDTUid;
// 亮盾用户名
public String LDTUserName;
// 用户头像
public String LDTUserHeader;
// 用户等级
public int LDTUserLevet;
// 亮盾是否登录了
public static bool LDTLogined;
方法:
获取ClientSDK对象:GetClientSdkInstance
/// <summary>
/// 获取ClientSDK对象
/// </summary>
/// <param name="bundle">插件对象</param>
/// <param name="token">插件唯一token</param>
/// <returns></returns>
ClientSdk GetClientSdkInstance(IBundle bundle, String token)
保存插件配置:ClientSetConfigs
/// <summary>
/// 保存插件配置
/// </summary>
/// <param name="key"></param>
/// <param name="configs"></param>
/// <param name="callback"></param>
void ClientSetConfigs(String key, JsonObject configs, Action<JsonObject> callback = null)
异步获取插件配置:ClientGetConfigs
/// <summary>
/// 异步获取插件配置
/// </summary>
/// <param name="key"></param>
/// <param name="callback"></param>
void ClientGetConfigs(String key, Action<JsonObject> callback)
同步获取插件配置:ClientDbQuerySync
/// <summary>
/// 同步获取插件配置
/// </summary>
/// <param name="sql"></param>
/// <param name="resetEvent"></param>
/// <returns></returns>
JsonObject ClientDbQuerySync(string sql, AutoResetEvent resetEvent)
插件数据库操作:ClientDbQuery
/// <summary>
/// 插件数据库操作
/// </summary>
/// <param name="sql"></param>
/// <param name="callback"></param>
void ClientDbQuery(string sql, Action<JsonObject> callback)
插件数据库操作:ClientDbExecute
/// <summary>
/// 插件数据库操作
/// </summary>
/// <param name="sql"></param>
/// <param name="callback"></param>
void ClientDbExecute(string sql, Action<JsonObject> callback)
增减积分:CoreModifyScores
/// <summary>
/// 增减积分
/// </summary>
/// <param name="robot">要操作的机器人</param>
/// <param name="qun">要添加积分的群</param>
/// <param name="uin">要添加积分的群成员</param>
/// <param name="score">添加/减少积分</param>
/// <param name="op">操作类型,插件自定义</param>
/// <param name="desc">描述(可存json对象进行扩展)</param>
/// <param name="callback"></param>
void CoreModifyScores(uint robot, uint qun, uint uin, int score, String op, String desc, Action<JsonObject> callback)
群积分日志汇总查询:QueryScoreChange
/// <summary>
/// 群积分日志汇总查询
/// </summary>
/// <param name="robot">要查询的机器人</param>
/// <param name="qun">要查询的的群</param>
/// <param name="op">操作类型,插件自定义</param>
/// <param name="startTime">查询开始时间</param>
/// <param name="endTime">查询结束时间</param>
/// <param name="page">页码(0代码不分页)</param>
/// <param name="size">每页展示数</param>
/// <param name="callback"></param>
void QueryScoreChange(uint robot, uint qun, String op, Int64 startTime, Int64 endTime, uint page, uint size, Action<JsonObject> callback)
获取群成员积分:CoreGetQunScores
/// <summary>
/// 获取群成员积分
/// </summary>
/// <param name="robot"></param>
/// <param name="qun"></param>
/// <param name="callback"></param>
void CoreGetQunScores(uint robot, uint qun, Action<JsonObject> callback)
获取所有机器人群成员积分:CoreGetQunScores
/// <summary>
/// 获取所有机器人群成员积分
/// </summary>
/// <param name="qun"></param>
/// <param name="callback"></param>
void CoreGetQunScores(uint qun, Action<JsonObject> callback)
查询QQ总积分:CoreGetQQScores
/// <summary>
/// 查询QQ总积分
/// </summary>
/// <param name="robot"></param>
/// <param name="uin"></param>
/// <param name="callback"></param>
void CoreGetQQScores(uint robot, uint uin, Action<JsonObject> callback)
网友评论