package com.abbidot.tracker.bean

import com.abbidot.tracker.constant.MultipleEntity
import com.chad.library.adapter.base.entity.MultiItemEntity

/**
 *Created  by .yzq on 2021/12/20/020.
 * @link
 * @description: 菜单显示
 */
data class MenuTxtBean(
    var menuName: String,
    var menuValue: String,
    var imageId: Int,
    var colorRedId: Int,
    var imageUrl: String,
    var isSwitch: Boolean,
    var type: Int,
    var state: Int,
    @MultipleEntity val menuType: Int
) : MultiItemEntity {

    //设置空的构造方法
    constructor(@MultipleEntity menuType: Int) : this("", "", 0, 0, "", false, 0, 0, menuType)

    //设置多个构造方法
    constructor(menuName: String, menuValue: String, @MultipleEntity menuType: Int) : this(
        menuName, menuValue, 0, 0, "", false, 0, 0, menuType
    )

    constructor(menuName: String, menuValue: String) : this(
        menuName, menuValue, 0, 0, "", false, 0, 0, MultipleEntity.TEXT
    )

    constructor(menuName: String, imageId: Int, menuValue: String) : this(
        menuName, menuValue, imageId, 0, "", false, 0, 0, MultipleEntity.TEXT
    )

    @MultipleEntity
    override val itemType = menuType
}
