2021-05-30 23:13:46 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.Work
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 表示微信 API 回调通知事件的基类。
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class WechatWorkEvent
|
|
|
|
|
{
|
2021-06-07 00:24:22 +08:00
|
|
|
|
public static class Types
|
|
|
|
|
{
|
|
|
|
|
[Newtonsoft.Json.JsonObject]
|
|
|
|
|
public interface IJsonSerializable
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Xml.Serialization.XmlRoot("xml")]
|
|
|
|
|
public interface IXmlSerializable
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-30 23:13:46 +08:00
|
|
|
|
/// <summary>
|
2021-06-07 00:24:22 +08:00
|
|
|
|
/// 获取或设置企业 CorpId 或第三方应用的 SuiteId。
|
2021-05-30 23:13:46 +08:00
|
|
|
|
/// </summary>
|
2021-06-07 00:24:22 +08:00
|
|
|
|
[Newtonsoft.Json.JsonProperty("ToUserName")]
|
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("ToUserName")]
|
2021-06-03 10:38:41 +08:00
|
|
|
|
[XmlElement("ToUserName", IsNullable = true)]
|
|
|
|
|
public string? ToUserName { get; set; }
|
2021-05-30 23:13:46 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2021-06-03 10:38:41 +08:00
|
|
|
|
/// 获取或设置发送方账号。
|
2021-05-30 23:13:46 +08:00
|
|
|
|
/// </summary>
|
2021-06-07 00:24:22 +08:00
|
|
|
|
[Newtonsoft.Json.JsonProperty("FromUserName")]
|
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("FromUserName")]
|
2021-06-03 10:38:41 +08:00
|
|
|
|
[XmlElement("FromUserName", IsNullable = true)]
|
|
|
|
|
public string? FromUserName { get; set; }
|
2021-05-30 23:13:46 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2021-06-03 10:38:41 +08:00
|
|
|
|
/// 获取或设置消息类型。
|
2021-05-30 23:13:46 +08:00
|
|
|
|
/// </summary>
|
2021-06-07 00:24:22 +08:00
|
|
|
|
[Newtonsoft.Json.JsonProperty("MsgType")]
|
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("MsgType")]
|
2021-06-03 10:38:41 +08:00
|
|
|
|
[XmlElement("MsgType", IsNullable = true)]
|
|
|
|
|
public string? MessageType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取或设置事件类型。
|
|
|
|
|
/// </summary>
|
2021-06-07 00:24:22 +08:00
|
|
|
|
[Newtonsoft.Json.JsonProperty("Event")]
|
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("Event")]
|
2021-06-03 10:38:41 +08:00
|
|
|
|
[XmlElement("Event", IsNullable = true)]
|
|
|
|
|
public string? Event { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2021-06-07 00:24:22 +08:00
|
|
|
|
/// 获取或设置消息创建时间戳。
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Newtonsoft.Json.JsonProperty("CreateTime")]
|
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("CreateTime")]
|
|
|
|
|
[XmlElement("CreateTime", IsNullable = true)]
|
|
|
|
|
public long? CreateTimestamp { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取或设置消息类型。
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Newtonsoft.Json.JsonIgnore]
|
|
|
|
|
[System.Text.Json.Serialization.JsonIgnore]
|
|
|
|
|
[XmlElement("InfoType", IsNullable = true)]
|
|
|
|
|
public string? InfoType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取或设置消息时间戳。
|
2021-06-03 10:38:41 +08:00
|
|
|
|
/// </summary>
|
2021-06-07 00:24:22 +08:00
|
|
|
|
[Newtonsoft.Json.JsonIgnore]
|
|
|
|
|
[System.Text.Json.Serialization.JsonIgnore]
|
|
|
|
|
[XmlElement("TimeStamp", IsNullable = true)]
|
|
|
|
|
public long? InfoTimestamp { get; set; }
|
2021-05-30 23:13:46 +08:00
|
|
|
|
}
|
|
|
|
|
}
|