47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Drawing;
|
|||
|
using System.IO;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using Chat.Framework.WXSdk.Implement;
|
|||
|
using Chat.Framework.WXSdk.IPAD;
|
|||
|
|
|||
|
namespace Chat.Framework.WXSdk.Events
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 微信状态改变事件
|
|||
|
/// </summary>
|
|||
|
public class WXChangeStatus : WXEvent
|
|||
|
{
|
|||
|
public override string ToString()
|
|||
|
{
|
|||
|
return $"微信({Client.User.Nick}【{Client.User.Uin}】)->状态修改->{Status}";
|
|||
|
}
|
|||
|
|
|||
|
public WXChangeStatus(WeixinBase client, string message = "") : base(client)
|
|||
|
{
|
|||
|
IsToString = true;
|
|||
|
this.Status = client.Status;
|
|||
|
this.Message = message;
|
|||
|
}
|
|||
|
/// <summary>
|
|||
|
/// 微信状态
|
|||
|
/// </summary>
|
|||
|
public WxStatus Status { get; internal set; }
|
|||
|
/// <summary>
|
|||
|
/// 改变附带的内容
|
|||
|
/// </summary>
|
|||
|
public string Message { get; internal set; }
|
|||
|
/// <summary>
|
|||
|
/// 登录二维码byte[]
|
|||
|
/// </summary>
|
|||
|
public byte[] ImageByte { get; internal set; }
|
|||
|
/// <summary>
|
|||
|
/// 登录二维码
|
|||
|
/// </summary>
|
|||
|
public Image Image { get { return Image.FromStream(new MemoryStream(ImageByte)); } }
|
|||
|
}
|
|||
|
}
|