package com.yidianling.home.model.bean

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

    var pageNum: Int = 0
    var pageSize: Int = 0
    var size: Int = 0
    var startRow: Int = 0
    var endRow: Int = 0
    var pages: Int = 0
    var prePage: Int = 0
    var nextPage: Int = 0
    var isIsFirstPage: Boolean = false
    var isIsLastPage: Boolean = false
    var isHasPreviousPage: Boolean = false
    var isHasNextPage: Boolean = false
    var navigatePages: Int = 0
    var navigateFirstPage: Int = 0
    var navigateLastPage: Int = 0
    var total: Int = 0
    var navigatepageNums: List<Int>? = null
    var list: List<ListBean>? = null

    class ListBean {
        var shareData: ShareDataBean? = null
        var id: Int = 0
        /**
         * 课程标题
         */
        var title: String? = null
        /**
         * 课程图
         */
        var pic: String? = null
        /**
         * 课程价格
         */
        var applyFee: Float? = null
        /**
         * 课程原价
         */
        var originalApplyFee: Float? = null
        /**
         * 课程促销价
         */
        var promotionApplyFee: Float? = null
        /**
         * 课程报名人数
         */
        var joinNum: Int = 0
        /**
         * 课程浏览量
         */
        var readNums: Int = 0
        /**
         * 是否促销 1活动中 2结束or没开始 3倒计时
         */
        var isPromotion: Int = 0
        /**
         * 是否返利 1是双返利 2是单返利 0无返利
         */
        var isInvite: Int = 0
        /**
         * 主讲人uid
         */
        var hostUid: Int = 0
        /**
         * 主讲人头像
         */
        var hostHead: String? = null
        /**
         * 主讲人倾诉id
         */
        var hostConfidedId: Int = 0
        /**
         * 主讲人专家id
         */
        var hostId: Int = 0
        /**
         * 主讲人名称
         */
        var hostName: String? = null
        /**
         * 主讲人是否开通私聊 0-否 1-是
         */
        var isOpenChat: Int = 0
        /**
         * 主讲人是否开通倾诉 0-否 1-是
         */
        var isOpenListen: Int = 0
        /**
         * 主讲人是否空闲 0-否 1-是
         */
        var isAvailable: Int = 0
        /**
         * 主讲人是否开通咨询 0-否 1-是
         */
        var isOpenConsult: Int = 0
        /**
         * 聊天跳转资源
         */
        var chatLinkUri: String? = null
        /**
         * 咨询跳转资源
         */
        var consultLinkUri: String? = null
        /**
         * 倾诉跳转资源
         */
        var listenLinkUri: String? = null
        /**
         * 是否展示倾诉咨询聊天三个按钮 0-否 1-是
         */
        var isShowHostButton: Int = 0

        class ShareDataBean {
            var title: String? = null
            var cover: String? = null
            var desc: String? = null
            var shareUrl: String? = null
        }
    }
}
