60 lines
1.8 KiB
C#
60 lines
1.8 KiB
C#
|
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
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 调试事件
|
|||
|
/// </summary>
|
|||
|
public class DebugEvent: ChatEvent
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 定义发送调试委托
|
|||
|
/// </summary>
|
|||
|
/// <param name="username">接收者账号</param>
|
|||
|
/// <param name="message">发送的消息</param>
|
|||
|
public delegate void SendDebugMsgs(string username,string message);
|
|||
|
/// <summary>
|
|||
|
/// 发送调试委托
|
|||
|
/// </summary>
|
|||
|
public SendDebugMsgs SendDebugMsg;
|
|||
|
/// <summary>
|
|||
|
/// 机器人平台类型
|
|||
|
/// </summary>
|
|||
|
public ChatType chatType { get; private set; }
|
|||
|
/// <summary>
|
|||
|
/// 接收者账号
|
|||
|
/// </summary>
|
|||
|
public string username { get; private set; }
|
|||
|
/// <summary>
|
|||
|
/// 接收者昵称
|
|||
|
/// </summary>
|
|||
|
public string usernick { get;private set; }
|
|||
|
/// <summary>
|
|||
|
/// 发送的消息
|
|||
|
/// </summary>
|
|||
|
public string content { get; private set; }
|
|||
|
/// <summary>
|
|||
|
/// 构造方法
|
|||
|
/// </summary>
|
|||
|
/// <param name="sendmsg">委托</param>
|
|||
|
/// <param name="username">接收者账号</param>
|
|||
|
/// <param name="usernick">接收者昵称</param>
|
|||
|
/// <param name="content">发送的消息</param>
|
|||
|
/// <param name="type">机器人平台类型</param>
|
|||
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|