mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-19 10:08:20 +08:00
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
|
{
|
|
/// <summary>
|
|
/// <para>表示被动回复语音消息的数据。</para>
|
|
/// <para>REF: https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Passive_user_reply_message.html#2 </para>
|
|
/// </summary>
|
|
public class VoiceMessageReply : WechatApiEvent, WechatApiEvent.Serialization.IXmlSerializable
|
|
{
|
|
public static class Types
|
|
{
|
|
public class Voice
|
|
{
|
|
/// <summary>
|
|
/// 获取或设置语音 MediaId。
|
|
/// </summary>
|
|
[System.Xml.Serialization.XmlElement("MediaId")]
|
|
public string MediaId { get; set; } = string.Empty;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取或设置语音信息。
|
|
/// </summary>
|
|
[System.Xml.Serialization.XmlElement("Voice")]
|
|
public Types.Voice Voice { get; set; } = new Types.Voice();
|
|
|
|
public VoiceMessageReply()
|
|
{
|
|
Event = null;
|
|
MessageType = "voice";
|
|
}
|
|
}
|
|
}
|