51 lines
1.7 KiB
C#
51 lines
1.7 KiB
C#
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>
|
||
/// 是否是聊天消息。支持值:0,1,当值为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; }
|
||
}
|
||
}
|