NewGaoKaoApi/PaymentSDK/AliPay/Domain/AlipayOpenPublicMessageCust...

51 lines
1.7 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Xml.Serialization;
using System.Collections.Generic;
namespace Aop.Api.Domain
{
/// <summary>
/// AlipayOpenPublicMessageCustomSendModel Data Structure.
/// </summary>
[Serializable]
public class AlipayOpenPublicMessageCustomSendModel : AopObject
{
/// <summary>
/// 图文消息当msg_type为image-text时必须存在相对应的值
/// </summary>
[XmlArray("articles")]
[XmlArrayItem("article")]
public List<Article> Articles { get; set; }
/// <summary>
/// 是否是聊天消息。支持值01当值为0时代表是非聊天消息消息显示在生活号主页当值为1时代表是聊天消息消息显示在咨询反馈列表页。默认值为0
/// </summary>
[XmlElement("chat")]
public string Chat { get; set; }
/// <summary>
/// 触发消息的事件类型默认为空。代表商户未改造。如果是follow代表关注消息。click代表菜单点击enter_ppchat代表进入事件请注意事件类型的大小写
/// </summary>
[XmlElement("event_type")]
public string EventType { get; set; }
/// <summary>
/// 消息类型text文本消息image-text图文消息
/// </summary>
[XmlElement("msg_type")]
public string MsgType { get; set; }
/// <summary>
/// 当msg_type为text时必须设置相对应的值
/// </summary>
[XmlElement("text")]
public Text Text { get; set; }
/// <summary>
/// 消息接收用户的userid
/// </summary>
[XmlElement("to_user_id")]
public string ToUserId { get; set; }
}
}