using Api.Framework.SDK; using Chat.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Api.Framework.Events { /// /// 调试事件 /// public class DebugEvent: ChatEvent { /// /// 定义发送调试委托 /// /// 接收者账号 /// 发送的消息 public delegate void SendDebugMsgs(string username,string message); /// /// 发送调试委托 /// public SendDebugMsgs SendDebugMsg; /// /// 机器人平台类型 /// public ChatType chatType { get; private set; } /// /// 接收者账号 /// public string username { get; private set; } /// /// 接收者昵称 /// public string usernick { get;private set; } /// /// 发送的消息 /// public string content { get; private set; } /// /// 构造方法 /// /// 委托 /// 接收者账号 /// 接收者昵称 /// 发送的消息 /// 机器人平台类型 public DebugEvent(SendDebugMsgs sendmsg,string username,string usernick,string content,ChatType type) { this.SendDebugMsg = sendmsg; this.username = username; this.usernick = usernick; this.content = content; this.chatType = type; } } }