NewGaoKaoApi/PaymentSDK/AliPay/Domain/PublicMessageBody.cs

33 lines
934 B
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>
/// PublicMessageBody Data Structure.
/// </summary>
[Serializable]
public class PublicMessageBody : AopObject
{
/// <summary>
/// 图文消息当msg_type为image-text该值必须设置图文消息中的图片建议尺寸 750 x 350px小于3M图片支持jpg、png格式
/// </summary>
[XmlArray("articles")]
[XmlArrayItem("article")]
public List<Article> Articles { get; set; }
/// <summary>
/// 图文类型目前只支持image-text 和 text
/// </summary>
[XmlElement("msg_type")]
public string MsgType { get; set; }
/// <summary>
/// 纯文字消息内容
/// </summary>
[XmlElement("text")]
public TextContent Text { get; set; }
}
}