package com.yidianling.home.model.bean

import com.google.gson.annotations.SerializedName
import com.yidianling.consultant.bean.Keyworks
import java.io.Serializable

/**
 * Created by haorui on 2019/2/14.
 * Des:首页头部模块数据  Banner&分类
 */
class HomeHeaderBean : HomeItemBaseBean {
    constructor() : super(false)
    constructor(isRealEmpty: Boolean) : super(isRealEmpty)

    /**
     * 活动弹窗数据
     */
    var activityResponse: ActivityResponse? = null

    /**
     * 分类数据
     */
    var askCategoryData: MutableList<AskCategoryDataBean>? = null

    /**
     * 新版分类数据
     */

    var goldList: MutableList<CategoryGoldListDataBean>? = null

    /**
     * 焦点图数据
     */
    var focusList: List<FocusListBean>? = null

    /**
     * 滚动销售数据
     */
    var homeSaleData: List<HomeSaleDataBean>? = null

    /**
     * 搜索关键词数据
     */
    var keywordData: MutableList<Keyworks>? = null

    /**
     * 倾诉分类
     */
    var listenCategoryDate: List<ListenCategoryDateBean>? = null

    /**
     * 咨询分类
     */
    var consultCategoryData: List<ConsultCategoryDateBean>? = null

    /**
     * 专家名称
     */
    var doctorName: String? = null

    /*
    * 倾诉免费标识
    * */
    var listenFree: Boolean? = null

    data class CategoryGoldListDataBean(
        var id: String? = "",
        var title: String? = "",
        var icon: String? = "",
        var goType: String? = "",
        var goUrl: String? = "",
        var cateId: String? = "",
        var goCriteriaMap: HashMap<String, Any>? = null
    ) : Serializable

    class AskCategoryDataBean {
        /**
         * id
         */
        var cateId: Int = 0

        /**
         * 名称
         */
        var cateTitle: String? = null //

        /**
         * 跳转url
         */
        var url: String? = null

        /**
         * 图片icon
         */
        var coverUrl: String? = null
    }

    class FocusListBean {
        /**
         * 标题
         */
        var title: String? = null

        /**
         * 跳转链接
         */
        var linkUrl: String? = null

        /**
         * 图片
         */
        var imageUrl: String? = null

        /**
         * iPhone X图片
         */
        var imageIphonex: String? = null

        /**
         * 焦点图id
         */
        var focId: Int = 0

        /**
         * 分享数据
         */
        var shareData: Any? = null
    }

    class ConsultCategoryDateBean {
        var id: String = "0"
        var name: String? = null
    }

    class HomeSaleDataBean {
        /**
         * 用户昵称
         */
        var nickName: String? = null

        /**
         * 老师名字
         */
        var doctorName: String? = null

        /**
         * 老师id
         */
        var doctorId: Int = 0

        /**
         * 跳转专家主页
         */
        var url: String? = null

        /**
         * 内容开头
         */
        var contentBefore: String? = null

        /**
         * 内容结尾
         */
        var contentAfter: String? = null

        /**
         * 创建时间
         */
        var createTime: String? = null
    }

    class ListenCategoryDateBean {
        var id: Int = 0
        var name: String? = null
    }

    class ActivityResponse {
        var imageBanner: String? = null// 弹窗图片
        var imageUrl: String? = null// 图片
        var linkUrl: String? = null // 首页弹窗
        var btnLinkurl: String? = null // 首页入口(左上角图标)
        var title: String? = null// 标题
    }
}
