125 lines
2.6 KiB
C#
125 lines
2.6 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace PCRobot
|
|||
|
{
|
|||
|
public enum XxType
|
|||
|
{
|
|||
|
二维码=10000,
|
|||
|
登录成功=10001,
|
|||
|
退出登陆=10002,
|
|||
|
|
|||
|
接收消息=20000,
|
|||
|
|
|||
|
添加好友=30000,
|
|||
|
获取聊天对象=30001,
|
|||
|
建群返回=30002,
|
|||
|
A8Key=30003,
|
|||
|
|
|||
|
语音消息 =40000,
|
|||
|
文件消息=40001,
|
|||
|
视频消息=40002,
|
|||
|
图片消息=40003,
|
|||
|
文字消息=40004,
|
|||
|
|
|||
|
好友列表=50000,
|
|||
|
群员列表=50001,
|
|||
|
|
|||
|
邀请入群=60000,
|
|||
|
|
|||
|
|
|||
|
微信转账=70000,
|
|||
|
|
|||
|
|
|||
|
好友请求=80000,
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
public class QrMsg
|
|||
|
{
|
|||
|
public XxType msgType { get; set; } = XxType.二维码;
|
|||
|
|
|||
|
public string base64Data { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 登录消息
|
|||
|
/// </summary>
|
|||
|
public class LgSucMsg
|
|||
|
{
|
|||
|
public XxType msgType { get; set; } = XxType.登录成功;
|
|||
|
|
|||
|
public string nickName { get; set; }
|
|||
|
|
|||
|
public string wxId { get; set; }
|
|||
|
|
|||
|
public string wxNo { get; set; }
|
|||
|
|
|||
|
public string headImg { get; set; }
|
|||
|
|
|||
|
public int packType { get; set; }
|
|||
|
|
|||
|
public int pid { get; set; }
|
|||
|
|
|||
|
public int hwnd { get; set; }
|
|||
|
|
|||
|
public string phone { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
public class msgBase
|
|||
|
{
|
|||
|
public string recvWxid { get; set; }
|
|||
|
public string time { get; set; }
|
|||
|
public int isSend { get; set; }
|
|||
|
public int localMsgID { get; set; }
|
|||
|
public string serverMsgID { get; set; }
|
|||
|
public string wxid_1 { get; set; }
|
|||
|
public string wxid_2 { get; set; }
|
|||
|
public string msg { get; set; }
|
|||
|
public string source { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 语音消息
|
|||
|
/// </summary>
|
|||
|
public class Vom:msgBase
|
|||
|
{
|
|||
|
public XxType msgType { get; set; } = XxType.语音消息;
|
|||
|
}
|
|||
|
/// <summary>
|
|||
|
/// 文字消息
|
|||
|
/// </summary>
|
|||
|
public class Tm : msgBase
|
|||
|
{
|
|||
|
public XxType msgType { get; set; } = XxType.文字消息;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 文字消息
|
|||
|
/// </summary>
|
|||
|
public class Pm : msgBase
|
|||
|
{
|
|||
|
public XxType msgType { get; set; } = XxType.图片消息;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 文件消息
|
|||
|
/// </summary>
|
|||
|
public class Fm : msgBase
|
|||
|
{
|
|||
|
public XxType msgType { get; set; } = XxType.文件消息;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 视频消息
|
|||
|
/// </summary>
|
|||
|
public class Vm : msgBase
|
|||
|
{
|
|||
|
public XxType msgType { get; set; } = XxType.视频消息;
|
|||
|
}
|
|||
|
|
|||
|
}
|