package com.yidianling.home.model.bean

/**
 * Created by haorui on 2019/2/14.
 * Des:首页文章模块参数
 */
class HomeArticleBean : HomeItemBaseBean {
    constructor():super(false)
    constructor(isRealEmpty:Boolean):super(isRealEmpty)

    var category: List<CategoryBean>? = null
    var list: List<Bean>? = null

    class CategoryBean {
        var descript: String? = null
        var id: Int = 0
        var isShow: Int = 0
        var keyword: String? = null
        var name: String? = null
        var parentId: Int = 0
        var place: Int = 0
        var title: String? = null
    }

    class Bean {
        /**
         * 收藏数
         */
        var countOfFavorite: Int = 0
        var createTime: String? = null
        var createTimeFormat: String? = null
        /**
         * 文章简介
         */
        var desc: String? = null
        var doctorId: Int = 0
        private var hUrl: String? = null
        /**
         * 文章id
         */
        var id: Int = 0
        /**
         * 封面图片地址
         */
        var imgUrl: String? = null
        var url: String? = null
        /**
         * 医生名字
         */
        var name: String? = null
        /**
         * 笔名
         */
        var pseudonym: String? = null
        /**
         * 阅读次数
         */
        var readNum: Int = 0
        /**
         * 120*120小头像
         */
        var smallImage: String? = null
        /**
         * 标题
         */
        var title: String? = null

        fun gethUrl(): String? {
            return hUrl
        }

        fun sethUrl(hUrl: String) {
            this.hUrl = hUrl
        }
    }
}
