NewGaoKaoApi/PaymentSDK/AliPay/Domain/Material.cs

33 lines
956 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>
/// Material Data Structure.
/// </summary>
[Serializable]
public class Material : AopObject
{
/// <summary>
/// 图文消息子消息项集合单条消息最多6个子项否则会发送失败
/// </summary>
[XmlArray("articles")]
[XmlArrayItem("article")]
public List<Article> Articles { get; set; }
/// <summary>
/// 消息类型text文本类型image-text图文类型。当消息类型为text时text参数必传当消息类型为image-text时articles参数必传
/// </summary>
[XmlElement("msg_type")]
public string MsgType { get; set; }
/// <summary>
/// 文本消息内容
/// </summary>
[XmlElement("text")]
public Text Text { get; set; }
}
}