package com.yidianling.consultant.model.bean

/**
 * @author yuanWai
 * @描述:
 * @Copyright Copyright (c) 2018
 * @Company 壹点灵
 * @date 2018/12/11
 */
data class ExpertServiceItem(
    /**
     * 专家ID
     */
    val id: String,
    /**
     * 专家uid
     */
    val uid: String?,
    /**
     * 专家名称
     */
    val doctor_name: String?,

    /*** 跳转路由地址（正常为专家主页地址）*/
    val link_url: String?,

    /*** 专家头像地址*/
    val head: String?,

    /*** 私聊状态：1.上线；2.离线；3.忙碌中*/
    val chat_status: Int?,


    /*** 评价数(咨询订单数)*/
    var evaluate_num: Int = 0,

    /*** 咨询最低价*/
    val min_price: String?,

    /*** 资质材料*/
    val title: String?,

    /*** 服务时长*/
    var sum_service_time: Float = 0f,

    /***服务状态：1.空闲，2.忙碌*/
    var service_status: Int,

    /*** 私聊人数*/
    var chat_num: Int = 0,

    /*** 私聊按钮的文案(如果不为空则取这个字段的值，如果为空 则默认为：“私聊”)*/
    val chat_btn_text: String?,

    /*** 新标签分类*/
    val feature_tags: ArrayList<FeatureTag>?,

    /*** 是否是头部headView*/
    val is_head_view: Boolean = false,

    /*** 搜索词*/
    val search_content: String,

    /*** 联想词*/
    val related_word: String,

    /*** 地区*/
    val display_region: String,

    /***咨询显示状态：1.忙碌；2.现在有空；3.今日可约；4.最近可约；5.已约满；6.休息中*/
    val consult_display_status: Int,

    /***专家头像下方文案：如 忙碌；现在有空；今日可约；最近可约；已约满；休息中*/
    val consult_display_status_str: String,

    /***私聊下方时间描述：如 最快可约今天19:00*/
    val today_time_des: String,

    /***服务方式：如 当面/视频*/
    val attr_combine: String = "",

    /***0:关闭代聊，1:开启代聊*/
    val open_chat_agency: Int,
    /***年审*/
    val audit_tag: String,


    ) {
    constructor(is_head_view: Boolean, search_content: String, related_word: String) : this(
        id = "",
        uid = "",
        doctor_name = "",
        link_url = "",
        head = "",
        chat_status = 1,
        evaluate_num = 0,
        min_price = "",
        title = "",
        sum_service_time = 0f,
        service_status = 1,
        chat_num = 0,
        chat_btn_text = null,
        feature_tags = null,
        is_head_view = is_head_view,
        search_content = search_content,
        related_word = related_word,
        display_region = "",
        consult_display_status = 2,
        consult_display_status_str = "",
        today_time_des = "",
        attr_combine = "",
        open_chat_agency = 0,
        audit_tag = ""
    )
}

data class FeatureTag(
    val tag_id: String,
    val tag_name: String,
    val is_highlight: Boolean,   // 是否高亮
    val type: String             // 标签类型
)