32 lines
1.0 KiB
C#
32 lines
1.0 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using PCRobot.Pack;
|
|||
|
namespace Chat.Framework.PCRobotSDK.WechatEvents
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 微信收到消息事件
|
|||
|
/// </summary>
|
|||
|
public class WechatReceiveMsgEvents : ChatEvent
|
|||
|
{
|
|||
|
|
|||
|
//public override string ToString()
|
|||
|
//{
|
|||
|
// if (string.IsNullOrEmpty(Data.FromGroupid)) return $"微信【{Data.RobotUsernick}({Data.RobotUsername})】收到【{Data.FromUsernick}({Data.FromUsername})】消息:{Data.FromMessage}";
|
|||
|
// else return $"微信【{Data.RobotUsernick}({Data.RobotUsername})】收到群【{Data.FromGroupid}】-【{Data.FromUsernick}({Data.FromUsername})】消息:{Data.FromMessage}";
|
|||
|
//}
|
|||
|
/// <summary>
|
|||
|
/// 微信收到消息信息
|
|||
|
/// </summary>
|
|||
|
public WechatReceiveMsg Data { get; private set; }
|
|||
|
|
|||
|
public WechatReceiveMsgEvents(WechatReceiveMsg msg)
|
|||
|
{
|
|||
|
IsToString = true;
|
|||
|
this.Data = msg;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|