feat(work): 新增会议室预定的回调通知事件模型

This commit is contained in:
Fu Diwei 2021-12-17 21:14:09 +08:00
parent be2a5690c6
commit f51a4a4d66
4 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,25 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Events
{
/// <summary>
/// <para>表示 EVENT.book_meeting_room 事件的数据。</para>
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/95333 </para>
/// </summary>
public class BookMeetingRoomEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IJsonSerializable, WechatWorkEvent.Serialization.IXmlSerializable
{
/// <summary>
/// 获取或设置会议室 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("MeetingRoomId")]
[System.Text.Json.Serialization.JsonPropertyName("MeetingRoomId")]
[System.Xml.Serialization.XmlElement("MeetingRoomId")]
public int MeetingRoomId { get; set; }
/// <summary>
/// 获取或设置会议 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("MeetingId")]
[System.Text.Json.Serialization.JsonPropertyName("MeetingId")]
[System.Xml.Serialization.XmlElement("MeetingId")]
public string MeetingId { get; set; } = default!;
}
}

View File

@ -0,0 +1,25 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Events
{
/// <summary>
/// <para>表示 EVENT.cancel_meeting_room 事件的数据。</para>
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/95333 </para>
/// </summary>
public class CancelMeetingRoomEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IJsonSerializable, WechatWorkEvent.Serialization.IXmlSerializable
{
/// <summary>
/// 获取或设置会议室 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("MeetingRoomId")]
[System.Text.Json.Serialization.JsonPropertyName("MeetingRoomId")]
[System.Xml.Serialization.XmlElement("MeetingRoomId")]
public int MeetingRoomId { get; set; }
/// <summary>
/// 获取或设置会议 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("MeetingId")]
[System.Text.Json.Serialization.JsonPropertyName("MeetingId")]
[System.Xml.Serialization.XmlElement("MeetingId")]
public string MeetingId { get; set; } = default!;
}
}

View File

@ -0,0 +1,9 @@
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName>
<FromUserName><![CDATA[fromUser]]></FromUserName>
<CreateTime>1348831860</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[book_meeting_room]]></Event>
<MeetingRoomId>1</MeetingRoomId>
<MeetingId><![CDATA[mtebsada6e027c123cbafAAA ]]></MeetingId>
</xml>

View File

@ -0,0 +1,9 @@
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName>
<FromUserName><![CDATA[fromUser]]></FromUserName>
<CreateTime>1348831860</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[book_meeting_room]]></Event>
<MeetingRoomId>1</MeetingRoomId>
<MeetingId><![CDATA[mtebsada6e027c123cbafAAA ]]></MeetingId>
</xml>