From 7eb5e70c5da4cf0e54e342ec005226fa88c6a0fe Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 16 Jun 2023 17:20:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(work):=20=E6=96=B0=E5=A2=9E=E4=BC=9A?= =?UTF-8?q?=E8=AE=AE=E7=9B=B8=E5=85=B3=E5=9B=9E=E8=B0=83=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Events/Meeting/MeetingChangeEvent.cs | 174 +++++++++++++++++- 1 file changed, 171 insertions(+), 3 deletions(-) diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Meeting/MeetingChangeEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Meeting/MeetingChangeEvent.cs index 1fafe084..4a503931 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Meeting/MeetingChangeEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Events/Meeting/MeetingChangeEvent.cs @@ -1,12 +1,132 @@ -namespace SKIT.FlurlHttpClient.Wechat.Work.Events +namespace SKIT.FlurlHttpClient.Wechat.Work.Events { /// /// 表示 EVENT.meeting_change 事件的数据。 - /// REF: https://developer.work.weixin.qq.com/document/path/93651 - /// REF: https://developer.work.weixin.qq.com/document/path/93704 + /// REF: https://developer.work.weixin.qq.com/document/path/99081 + /// REF: https://developer.work.weixin.qq.com/document/path/99082 + /// REF: https://developer.work.weixin.qq.com/document/path/98333 + /// REF: https://developer.work.weixin.qq.com/document/path/98337 + /// REF: https://developer.work.weixin.qq.com/document/path/98341 + /// REF: https://developer.work.weixin.qq.com/document/path/98345 + /// REF: https://developer.work.weixin.qq.com/document/path/98348 + /// REF: https://developer.work.weixin.qq.com/document/path/98352 + /// REF: https://developer.work.weixin.qq.com/document/path/98353 + /// REF: https://developer.work.weixin.qq.com/document/path/98354 + /// REF: https://developer.work.weixin.qq.com/document/path/98355 + /// REF: https://developer.work.weixin.qq.com/document/path/98393 + /// REF: https://developer.work.weixin.qq.com/document/path/98394 + /// REF: https://developer.work.weixin.qq.com/document/path/98395 + /// REF: https://developer.work.weixin.qq.com/document/path/98396 + /// REF: https://developer.work.weixin.qq.com/document/path/98397 + /// REF: https://developer.work.weixin.qq.com/document/path/98771 + /// REF: https://developer.work.weixin.qq.com/document/path/98773 + /// REF: https://developer.work.weixin.qq.com/document/path/98774 + /// REF: https://developer.work.weixin.qq.com/document/path/98775 + /// REF: https://developer.work.weixin.qq.com/document/path/98398 + /// REF: https://developer.work.weixin.qq.com/document/path/98399 + /// REF: https://developer.work.weixin.qq.com/document/path/98400 + /// REF: https://developer.work.weixin.qq.com/document/path/98401 + /// REF: https://developer.work.weixin.qq.com/document/path/98402 + /// REF: https://developer.work.weixin.qq.com/document/path/98404 + /// REF: https://developer.work.weixin.qq.com/document/path/98781 + /// REF: https://developer.work.weixin.qq.com/document/path/98782 + /// REF: https://developer.work.weixin.qq.com/document/path/98783 /// public class MeetingChangeEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IXmlSerializable { + public static class Types + { + public class OperatedUser + { + /// + /// 获取或设置成员账号。 + /// + [System.Xml.Serialization.XmlElement("UserId", IsNullable = true)] + public string? UserId { get; set; } + + /// + /// 获取或设置会中临时 ID。 + /// + [System.Xml.Serialization.XmlElement("TmpOpenId", IsNullable = true)] + public string? TempOpenId { get; set; } + + /// + /// 获取或设置成员角色。 + /// + [System.Xml.Serialization.XmlElement("UserRole", IsNullable = true)] + public int? Role { get; set; } + } + + public class WarmUpInfo + { + /// + /// 获取或设置暖场图片 URL。 + /// + [System.Xml.Serialization.XmlElement("WarmUpPicture", IsNullable = true)] + public string? WarmUpPictureUrl { get; set; } + + /// + /// 获取或设置暖场视频 URL。 + /// + [System.Xml.Serialization.XmlElement("WarmUpVideo", IsNullable = true)] + public string? WarmUpVideoUrl { get; set; } + + /// + /// 获取或设置上传结果。 + /// + [System.Xml.Serialization.XmlElement("UploadStatus")] + public int UploadStatus { get; set; } + + /// + /// 获取或设置错误描述。 + /// + [System.Xml.Serialization.XmlElement("ErrorMsg", IsNullable = true)] + public string? ErrorMessage { get; set; } + } + + public class UploadInfo + { + /// + /// 获取或设置素材类型。 + /// + [System.Xml.Serialization.XmlElement("MediumType")] + public int MediumType { get; set; } + + /// + /// 获取或设置素材 URL。 + /// + [System.Xml.Serialization.XmlElement("MediumUrl")] + public string MediumUrl { get; set; } = default!; + + /// + /// 获取或设置上传结果。 + /// + [System.Xml.Serialization.XmlElement("UploadStatus")] + public int UploadStatus { get; set; } + + /// + /// 获取或设置错误描述。 + /// + [System.Xml.Serialization.XmlElement("ErrorMsg", IsNullable = true)] + public string? ErrorMessage { get; set; } + } + + public class MRAInfo + { + /// + /// 获取或设置信令协议。 + /// + [System.Xml.Serialization.XmlElement("Protocol")] + public int Protocol { get; set; } + + /// + /// 获取或设置信令。 + /// + [System.Xml.Serialization.XmlElement("DialString")] + public string DialogString { get; set; } = default!; + } + } + /// /// 获取或设置变更类型。 /// @@ -18,5 +138,53 @@ /// [System.Xml.Serialization.XmlElement("MeetingId")] public string MeetingId { get; set; } = default!; + + /// + /// 获取或设置会议室 ID。 + /// + [System.Xml.Serialization.XmlElement("MeetingRoomId", IsNullable = true)] + public string? MeetingRoomId { get; set; } + + /// + /// 获取或设置操作者会中临时 ID。 + /// + [System.Xml.Serialization.XmlElement("FromUserTmpOpenId", IsNullable = true)] + public string? FromUserTempOpenId { get; set; } + + /// + /// 获取或设置被操作者信息。 + /// + [System.Xml.Serialization.XmlElement("OperatedUser", IsNullable = true)] + public Types.OperatedUser? OperatedUser { get; set; } + + /// + /// 获取或设置暖场信息。 + /// + [System.Xml.Serialization.XmlElement("WarmUpInfo", IsNullable = true)] + public Types.WarmUpInfo? WarmUpInfo { get; set; } + + /// + /// 获取或设置上传信息列表。 + /// + [System.Xml.Serialization.XmlElement("UploadInfo", Type = typeof(Types.UploadInfo), IsNullable = true)] + public Types.UploadInfo[]? UploadInfoList { get; set; } + + /// + /// 获取或设置报名 ID。 + /// + [System.Xml.Serialization.XmlElement("EnrollId", IsNullable = true)] + public string? EnrollId { get; set; } + + /// + /// 获取或设置 Rooms MRA 信息。 + /// + [System.Xml.Serialization.XmlElement("MraAddress", IsNullable = true)] + public Types.MRAInfo? RoomsMRAInfo { get; set; } + + /// + /// 获取或设置 Rooms 应答结果。 + /// + [System.Xml.Serialization.XmlElement("RoomResponseStatus", IsNullable = true)] + public int? RoomsResponseStatus { get; set; } } }