mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 10:41:58 +08:00
docs: 完善文档
This commit is contained in:
parent
708165292a
commit
e4203a76e3
@ -42,7 +42,7 @@ public static class MyFakeClientExtensions
|
|||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
/* 继承 WechatApiEvent 实现自定义的 JSON 格式的回调通知事件 */
|
/* 继承 WechatApiEvent 实现自定义的 JSON 格式的回调通知事件 */
|
||||||
public class MyFakeEvent : WechatApiEvent, WechatApiEvent.Types.IJsonSerializable
|
public class MyFakeEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable
|
||||||
{
|
{
|
||||||
[Newtonsoft.Json.JsonProperty("my_fake_props")]
|
[Newtonsoft.Json.JsonProperty("my_fake_props")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("my_fake_props")]
|
[System.Text.Json.Serialization.JsonPropertyName("my_fake_props")]
|
||||||
@ -50,7 +50,7 @@ public class MyFakeEvent : WechatApiEvent, WechatApiEvent.Types.IJsonSerializabl
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 继承 WechatApiEvent 实现自定义的 XML 格式的回调通知事件 */
|
/* 继承 WechatApiEvent 实现自定义的 XML 格式的回调通知事件 */
|
||||||
public class MyFakeEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
public class MyFakeEvent : WechatApiEvent, WechatApiEvent.Serialization.IXmlSerializable
|
||||||
{
|
{
|
||||||
[System.Xml.Serialization.XmlElement("my_fake_props")]
|
[System.Xml.Serialization.XmlElement("my_fake_props")]
|
||||||
public string MyFakeProps { get; set; }
|
public string MyFakeProps { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user