using System;
using System.Collections.Generic;
using GxPress.EnumConst;

namespace GxPress.Result.Media
{
    public class MediaResult
    {
        /// <summary>
        /// 
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 媒体类型
        /// Article=1,
        //书籍
        //Book = 2,
        ////课程
        //Curriculum = 3,
        ////音频
        //Audio = 4,
        ////期刊
        //Journal = 5,
        ////视频
        //Video=6
        /// </summary>

        public int MediaType { get; set; }
        /// <summary>
        /// 标题
        /// </summary>

        public string Title { get; set; }

        /// <summary>
        /// 标题图片
        /// </summary>

        public string ImageUrls { get; set; }

        /// <summary>
        /// 简介
        /// </summary>

        public string Summary { get; set; }

        /// <summary>
        /// 作者
        /// </summary>

        public string Author { get; set; }
        /// <summary>
        /// 名师ID
        /// </summary>
        /// <value></value>
        public int TeacherId { get; set; }
        /// <summary>
        /// 来源
        /// </summary>

        public string Source { get; set; }

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

        /// <summary>
        /// 审核状态
        /// </summary>

        public bool IsChecked { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>

        public DateTime AddDate { get; set; }
        /// <summary>
        /// 排序
        /// </summary>

        public int Sort { get; set; }
        /// <summary>
        /// 文章阅读量
        /// </summary>

        public int ReadCount { get; set; }
        /// <summary>
        /// 是否置顶
        /// </summary>

        public bool IsTop { get; set; }
        /// <summary>
        /// 分类ID
        /// </summary>
        public List<string> CategoryId { get; set; }

        /// <summary>
        /// 完整分类ID
        /// </summary>

        public List<string> FullCategoryId { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        /// <value></value>
        public List<string> CategoryName { get; set; }
        /// <summary>
        /// 标签ID
        /// </summary>

        public int LableId { get; set; }
        /// <summary>
        /// 是否推荐
        /// </summary>

        public bool IsRecommend { get; set; }
        /// <summary>
        /// 出版社
        /// </summary>

        public string Press { get; set; }
        /// <summary>
        /// 出版时间
        /// </summary>

        public string PublishTime { get; set; }

        /// <summary>
        /// 媒体类
        /// </summary>
        public List<MediaLibraryResult> MediaLibraryResults { get; set; }
        /// <summary>
        /// 媒体标签
        /// </summary>
        /// <value></value>
        public List<MediaLableResult> MediaLableResults { get; set; }
        /// <summary>
        ///  操作人ID
        /// </summary>
        /// <value></value>
        public int AdminId { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        /// <value></value>
        public string Creator { get; set; }
        /// <summary>
        /// ios折扣价格打折
        /// </summary>
        public decimal IosDiscountPrice { get; set; }
        /// <summary>
        /// IOS价格
        /// </summary>
        public decimal IosPrice { get; set; }
        /// <summary>
        /// 其他折扣价格打折
        /// </summary>
        public decimal OtherDiscountPrice { get; set; }
        /// <summary>
        /// 其他价格
        /// </summary>
        public decimal OtherPrice { get; set; }
        /// <summary>
        /// 免费类容占比
        /// </summary>
        /// <value></value>
        public decimal FreeProportion { get; set; }

        /// <summary>
        /// 类型 名栏 公众号 期刊
        /// </summary>
        /// <value></value>
        public AttachTypeConst AttachType { get; set; }

        /// <summary>
        /// 类型 1名栏 2公众号 
        /// </summary>
        /// <value></value>
        public int AttachId { get; set; }


        /// <summary>
        /// 关联的媒体ID
        /// </summary>
        /// <value></value>
        public int MediaId { get; set; }
        /// <summary>
        /// 关联的媒体标题
        /// </summary>
        /// <value></value>
        public string MediaTitle { get; set; }

    }
    /// <summary>
    /// 
    /// </summary>
    public class MediaLibraryResult
    {
        /// <summary>
        /// 媒体ID
        /// </summary>
        /// <value></value>
        public int MediaId { get; set; }
        /// <summary>
        /// 文件路径
        /// </summary>
        public string FileUrl { get; set; }
        /// <summary>
        /// 文件名称
        /// </summary>

        public string Name { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 章节名称
        /// </summary>
        /// <value></value>
        public string SectionName { get; set; }

        /// <summary>
        /// 类型 1 file 2 audio
        /// </summary>
        /// <value></value>
        public int TypeId { get; set; }

    }
    /// <summary>
    /// 媒体标签
    /// </summary>
    public class MediaLableResult
    {
        /// <summary>
        /// 媒体ID
        /// </summary>
        /// <value></value>
        public int MediaId { get; set; }
        /// <summary>
        /// 标签ID
        /// </summary>
        public string LableId { get; set; }
        /// <summary>
        /// 标签名称
        /// </summary>
        public string LableName { get; set; }

    }
}
