using System;
using System.Collections.Generic;
using System.Text;
using Edu.Model.Entity.LearningGarden;

namespace Edu.Model.ViewModel.LearningGarden
{
    public class RB_LearningGarden_ViewModel : RB_LearningGarden
    {

    }

    /// <summary>
    /// 公众号文章对应的实体
    /// </summary>

    public class WeChatLearningGarden
    {
        public WeChatLearningGardenItem item { get; set; }

        /// <summary>
        /// 该类型的素材的总数
        /// </summary>
        public int total_count { get; set; }

        /// <summary>
        /// 本次调用获取的素材的数量
        /// </summary>
        public int item_count { get; set; }

    }


    public class WeChatLearningGardenItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string media_id { get; set; }
        public WeChatLearningGardenContent content { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public string update_time { get; set; }
    }


    public class WeChatLearningGardenContent
    {
        public List<WeChatLearningGardenNewsItem> news_item { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public long create_time { get; set; }


        /// <summary>
        /// 更新时间
        /// </summary>
        public long update_time { get; set; }

    }


    public class WeChatLearningGardenNewsItem
    {
        /// <summary>
        /// 图文消息的标题
        /// </summary>
        public string title { get; set; }


        /// <summary>
        /// 作者
        /// </summary>
        public string author { get; set; }


        /// <summary>
        /// 文消息的摘要，仅有单图文消息才有摘要，多图文此处为空
        /// </summary>
        public string digest { get; set; }


        /// <summary>
        /// 文消息的具体内容，支持HTML标签，必须少于2万字符，小于1M，且此处会去除JS
        /// </summary>
        public string content { get; set; }

        /// <summary>
        /// 是否显示封面，0为false，即不显示，1为true，即显示
        /// </summary>
        public int show_cover_pic { get; set; }

        /// <summary>
        /// 链接地址
        /// </summary>
        public string url { get; set; }

        /// <summary>
        /// 封面图片地址
        /// </summary>
        public string thumb_url { get; set; }


    }
}
