2021-05-28 19:23:28 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>表示 EVENT.view_miniprogram 事件的数据。</para>
|
|
|
|
|
/// <para>REF: https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Custom_Menu_Push_Events.html#8 </para>
|
|
|
|
|
/// </summary>
|
2021-08-26 11:15:17 +08:00
|
|
|
|
public class ViewMiniProgramPushEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable
|
2021-05-28 19:23:28 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取或设置个性化菜单 ID。
|
|
|
|
|
/// </summary>
|
2021-06-07 00:34:41 +08:00
|
|
|
|
[Newtonsoft.Json.JsonProperty("MenuId")]
|
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("MenuId")]
|
2021-05-28 19:23:28 +08:00
|
|
|
|
[System.Xml.Serialization.XmlElement("MenuId", IsNullable = true)]
|
|
|
|
|
public string? MenuId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取或设置事件 Key,即跳转的小程序路径。
|
|
|
|
|
/// </summary>
|
2021-06-07 00:34:41 +08:00
|
|
|
|
[Newtonsoft.Json.JsonProperty("EventKey")]
|
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("EventKey")]
|
2021-05-28 19:23:28 +08:00
|
|
|
|
[System.Xml.Serialization.XmlElement("EventKey")]
|
|
|
|
|
public string EventKey { get; set; } = default!;
|
|
|
|
|
}
|
|
|
|
|
}
|