From c4c6e2e3042670f83dc22113ff8eed1b927b4a9c Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 30 Sep 2021 18:20:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(work):=20=E6=96=B0=E5=A2=9E=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E5=8F=98=E6=9B=B4=E7=9B=B8=E5=85=B3=E7=9A=84?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E9=80=9A=E7=9F=A5=E4=BA=8B=E4=BB=B6=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Events/Service/ChangeAppAdminEvent.cs | 15 +++++++++++++++ .../EventSamples/Service/ChangeAppAdminEvent.xml | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Work/Events/Service/ChangeAppAdminEvent.cs create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/EventSamples/Service/ChangeAppAdminEvent.xml diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Service/ChangeAppAdminEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Service/ChangeAppAdminEvent.cs new file mode 100644 index 00000000..bca373fa --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Service/ChangeAppAdminEvent.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Work.Events +{ + /// + /// 表示 EVENT.change_app_admin 事件的数据。 + /// REF: https://open.work.weixin.qq.com/api/doc/90001/90143/95038 + /// + public class ChangeAppAdminEvent : WechatWorkEvent, WechatWorkEvent.Types.IXmlSerializable + { + /// + /// 获取或设置应用 ID。 + /// + [System.Xml.Serialization.XmlElement("AgentID")] + public int AgentId { get; set; } + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/EventSamples/Service/ChangeAppAdminEvent.xml b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/EventSamples/Service/ChangeAppAdminEvent.xml new file mode 100644 index 00000000..9ea13d78 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/EventSamples/Service/ChangeAppAdminEvent.xml @@ -0,0 +1,8 @@ + + + + 1348831860 + + + 1 + \ No newline at end of file