mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 02:29:40 +08:00
feat(work): 封装部分企业微信回调通知事件模型
This commit is contained in:
@@ -10,34 +10,73 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
[Serializable]
|
||||
public class WechatWorkEvent
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
[Newtonsoft.Json.JsonObject]
|
||||
public interface IJsonSerializable
|
||||
{
|
||||
}
|
||||
|
||||
[System.Xml.Serialization.XmlRoot("xml")]
|
||||
public interface IXmlSerializable
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业 CorpId。
|
||||
/// 获取或设置企业 CorpId 或第三方应用的 SuiteId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ToUserName")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ToUserName")]
|
||||
[XmlElement("ToUserName", IsNullable = true)]
|
||||
public string? ToUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发送方账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("FromUserName")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("FromUserName")]
|
||||
[XmlElement("FromUserName", IsNullable = true)]
|
||||
public string? FromUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置消息类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("MsgType")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("MsgType")]
|
||||
[XmlElement("MsgType", IsNullable = true)]
|
||||
public string? MessageType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置事件类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("Event")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("Event")]
|
||||
[XmlElement("Event", IsNullable = true)]
|
||||
public string? Event { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置消息创建时间。
|
||||
/// 获取或设置消息创建时间戳。
|
||||
/// </summary>
|
||||
[XmlElement("CreateTime")]
|
||||
public long CreateTimestamp { get; set; }
|
||||
[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>
|
||||
/// 获取或设置消息时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
[XmlElement("TimeStamp", IsNullable = true)]
|
||||
public long? InfoTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user