mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-03-10 00:13:36 +08:00
feat(wxapi): 修改部分回调通知事件模型,已支持 JSON 格式
This commit is contained in:
@@ -7,23 +7,29 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
/// <para>表示 EVENT.LOCATION 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_event_pushes.html#%E4%B8%8A%E6%8A%A5%E5%9C%B0%E7%90%86%E4%BD%8D%E7%BD%AE%E4%BA%8B%E4%BB%B6 </para>
|
||||
/// </summary>
|
||||
public class LocationPushEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
public class LocationPushEvent : WechatApiEvent, WechatApiEvent.Types.IJsonSerializable, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置地理位置纬度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("Latitude")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("Latitude")]
|
||||
[System.Xml.Serialization.XmlElement("Latitude")]
|
||||
public double Latitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置地理位置经度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("Longitude")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("Longitude")]
|
||||
[System.Xml.Serialization.XmlElement("Longitude")]
|
||||
public double Longitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置地理位置精度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("Precision")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("Precision")]
|
||||
[System.Xml.Serialization.XmlElement("Precision")]
|
||||
public double Precision { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user