package com.gingersoft.gsa.cloud.database.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Transient;

/**
 * 作者：ELEGANT_BIN
 * 版本：1.6.0
 * 创建日期：2020-05-08
 * 修订历史：2020-05-08
 * 描述：餐廳擴展設置表
 */
@Entity
public class ExpandInfo {

    @Property(nameInDb = "_id")
    @Id(autoincrement = true)
    private Long id;

    private int restaurantId;
    /**
     * 功能建名称
     */
    private String settingName;
    /**
     * 功能值
     */
    private Integer valueInt;
    private String valueChar;
    private String valueDatetime;
    /**
     * 功能说明
     */
    private String remark;

    private int dataType;//配置的數據類型 1：整形，2：字符型，3：布爾型，4：日期類型
    private String sort;//排序
    private int valueBoolean;//是否在雲端GSA上配置：0 否，1 是
    @Transient
    private boolean isUpdate = false;//是否被編輯了

    @Generated(hash = 136088095)
    public ExpandInfo(Long id, int restaurantId, String settingName, Integer valueInt, String valueChar,
            String valueDatetime, String remark, int dataType, String sort, int valueBoolean) {
        this.id = id;
        this.restaurantId = restaurantId;
        this.settingName = settingName;
        this.valueInt = valueInt;
        this.valueChar = valueChar;
        this.valueDatetime = valueDatetime;
        this.remark = remark;
        this.dataType = dataType;
        this.sort = sort;
        this.valueBoolean = valueBoolean;
    }

    @Generated(hash = 9429432)
    public ExpandInfo() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getRestaurantId() {
        return restaurantId;
    }

    public void setRestaurantId(int restaurantId) {
        this.restaurantId = restaurantId;
    }


    public String getSettingName() {
        return settingName;
    }

    public void setSettingName(String settingName) {
        this.settingName = settingName;
    }

    public Integer getValueInt() {
        return valueInt;
    }

    public void setValueInt(Integer valueInt) {
        this.valueInt = valueInt;
    }

    public String getValueChar() {
        return valueChar;
    }

    public void setValueChar(String valueChar) {
        this.valueChar = valueChar;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getValueDatetime() {
        return valueDatetime;
    }

    public void setValueDatetime(String valueDatetime) {
        this.valueDatetime = valueDatetime;
    }

    public int getDataType() {
        return dataType;
    }

    public void setDataType(int dataType) {
        this.dataType = dataType;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public int getValueBoolean() {
        return valueBoolean;
    }

    public void setValueBoolean(int valueBoolean) {
        this.valueBoolean = valueBoolean;
    }

    public boolean isUpdate() {
        return isUpdate;
    }

    public void setUpdate(boolean update) {
        isUpdate = update;
    }

    public boolean getIsUpdate() {
        return this.isUpdate;
    }

    public void setIsUpdate(boolean isUpdate) {
        this.isUpdate = isUpdate;
    }
}
