using System;
using System.Xml.Serialization;

namespace Aop.Api.Domain
{
    /// <summary>
    /// AdMaterialResultDTO Data Structure.
    /// </summary>
    [Serializable]
    public class AdMaterialResultDTO : AopObject
    {
        /// <summary>
        /// 物料宽度
        /// </summary>
        [XmlElement("height")]
        public long Height { get; set; }

        /// <summary>
        /// 物料模板位置编号，编号从0开始
        /// </summary>
        [XmlElement("index")]
        public long Index { get; set; }

        /// <summary>
        /// 物料类型，IMG：图片；VIDEO：视频；H5：H5
        /// </summary>
        [XmlElement("material_type")]
        public string MaterialType { get; set; }

        /// <summary>
        /// 物料文件签名，天猫业务签名使用MD5算法，使用base64编码，用于物料转储校验
        /// </summary>
        [XmlElement("mt_signature")]
        public string MtSignature { get; set; }

        /// <summary>
        /// 物料播放时长，单位：毫秒
        /// </summary>
        [XmlElement("play_time")]
        public long PlayTime { get; set; }

        /// <summary>
        /// 物料存储URL地址
        /// </summary>
        [XmlElement("url")]
        public string Url { get; set; }

        /// <summary>
        /// 物料宽度
        /// </summary>
        [XmlElement("width")]
        public long Width { get; set; }
    }
}
