mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-02-17 21:56:26 +08:00
feat(work): 封装部分企业微信回调通知事件模型
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.taskcard_click 事件的数据。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/90240 </para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90001/90143/90376 </para>
|
||||
/// </summary>
|
||||
public class TaskCardClickPushEvent : WechatWorkEvent, WechatWorkEvent.Types.IXmlSerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置应用 ID。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("AgentID")]
|
||||
public int AgentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置事件 Key,即发送任务卡片时自定义按钮的 Key 值。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("EventKey")]
|
||||
public string EventKey { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置任务 ID。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("TaskId")]
|
||||
public string TaskId { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user