mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 01:46:20 +08:00
feat(wxapi): 新增用户在小程序“客服会话按钮”进入客服会话时产生的回调通知事件模型
This commit is contained in:
parent
4a2ab538e9
commit
64ecf01a0b
@ -2,7 +2,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 MINIPROGRAMPAGE 事件的数据。</para>
|
/// <para>表示 MINIPROGRAMPAGE 事件的数据。</para>
|
||||||
/// <para>REF: https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_standard_messages.html#%E6%96%87%E6%9C%AC%E6%B6%88%E6%81%AF </para>
|
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/customer-message/receive.html </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MiniProgramPageMessageEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable
|
public class MiniProgramPageMessageEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable
|
||||||
{
|
{
|
||||||
|
@ -0,0 +1,17 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 EVENT.user_enter_tempsession 事件的数据。</para>
|
||||||
|
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/customer-message/receive.html </para>
|
||||||
|
/// </summary>
|
||||||
|
public class UserEnterTempSessionEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会话来源。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("SessionFrom")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("SessionFrom")]
|
||||||
|
[System.Xml.Serialization.XmlElement("SessionFrom")]
|
||||||
|
public string SessionFrom { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"ToUserName": "toUser",
|
||||||
|
"FromUserName": "fromUser",
|
||||||
|
"CreateTime": 1482048670,
|
||||||
|
"MsgType": "event",
|
||||||
|
"Event": "user_enter_tempsession",
|
||||||
|
"SessionFrom": "sessionFrom"
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
<xml>
|
||||||
|
<ToUserName><![CDATA[toUser]]></ToUserName>
|
||||||
|
<FromUserName><![CDATA[fromUser]]></FromUserName>
|
||||||
|
<CreateTime>1482048670</CreateTime>
|
||||||
|
<MsgType><![CDATA[event]]></MsgType>
|
||||||
|
<Event><![CDATA[user_enter_tempsession]]></Event>
|
||||||
|
<SessionFrom><![CDATA[sessionFrom]]></SessionFrom>
|
||||||
|
</xml>
|
Loading…
Reference in New Issue
Block a user