mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-04-05 17:37:54 +08:00
feat(work): 新增会议室预定的回调通知事件模型
This commit is contained in:
parent
be2a5690c6
commit
f51a4a4d66
@ -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!;
|
||||
}
|
||||
}
|
@ -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!;
|
||||
}
|
||||
}
|
@ -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>
|
@ -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>
|
Loading…
Reference in New Issue
Block a user