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