using System;
using System.Collections.Generic;
using System.Text;
using Edu.Common.Enum.Sale;
using Edu.Model.Entity.WeChat;

namespace Edu.Model.ViewModel.WeChat
{
    /// <summary>
    /// 企业微信素材扩展类
    /// </summary>
    public class RB_WeChat_Medium_ViewModel : RB_WeChat_Medium
    {
        /// <summary>
        /// 素材Ids
        /// </summary>
        public string MediumIds { get; set; }

        /// <summary>
        /// 素材分组名称
        /// </summary>
        public string MediumGroupName { get; set; }


        /// <summary>
        /// 文本
        /// </summary>
        public MediumTextModel TextModel { get; set; }
        /// <summary>
        /// 图片
        /// </summary>
        public MediumImageModel ImageModel { get; set; }
        /// <summary>
        /// 图文
        /// </summary>
        public MediumImgTextModel ImgTextModel { get; set; }
        /// <summary>
        /// 音频
        /// </summary>
        public MediumAudioModel AudioModel { get; set; }
        /// <summary>
        /// 视频
        /// </summary>
        public MediumVideoModel VideoModel { get; set; }
        /// <summary>
        /// 小程序
        /// </summary>
        public MediumAppletModel AppletModel { get; set; }
        /// <summary>
        /// 文件
        /// </summary>
        public MediumFileModel FileModel { get; set; }
    }


    #region 素材类型扩展

    /// <summary>
    /// 文本
    /// </summary>
    public class MediumTextModel { 
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }
    }

    /// <summary>
    /// 图片
    /// </summary>
    public class MediumImageModel { 
        /// <summary>
        /// 图片名称
        /// </summary>
        public string ImageName { get; set; }
        /// <summary>
        /// 图片路劲
        /// </summary>
        public string ImagePath { get; set; }
    }

    /// <summary>
    /// 图文
    /// </summary>
    public class MediumImgTextModel { 
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 跳转连接
        /// </summary>
        public string ImgLink { get; set; }
        /// <summary>
        /// 图片名称
        /// </summary>
        public string ImgName { get; set; }
        /// <summary>
        /// 图片路径
        /// </summary>
        public string ImgPath { get; set; }
    }

    /// <summary>
    /// 音频
    /// </summary>
    public class MediumAudioModel { 
        /// <summary>
        /// 名称
        /// </summary>
        public string AudioName { get; set; }
        /// <summary>
        /// 路径
        /// </summary>
        public string AudioPath { get; set; }
    }

    /// <summary>
    /// 视频
    /// </summary>
    public class MediumVideoModel
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string VideoName { get; set; }
        /// <summary>
        /// 路径
        /// </summary>
        public string VideoPath { get; set; }
    }

    /// <summary>
    /// 小程序
    /// </summary>
    public class MediumAppletModel { 
        /// <summary>
        /// 小程序Id
        /// </summary>
        public string AppletId { get; set; }
        /// <summary>
        /// 小程序路劲
        /// </summary>
        public string Page { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 图片名称
        /// </summary>
        public string ImageName { get; set; }
        /// <summary>
        /// 图片路径
        /// </summary>
        public string ImagePath { get; set; }
    }

    /// <summary>
    /// 文件
    /// </summary>
    public class MediumFileModel {
        /// <summary>
        /// 名称
        /// </summary>
        public string FileName { get; set; }
        /// <summary>
        /// 路径
        /// </summary>
        public string FilePath { get; set; }
    }

    #endregion
}
