package com.tofly.ghrq_route.module.sign.domain;

import com.google.gson.annotations.SerializedName;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Unique;

/**
 * Created by Amu on 2017/3/14.
 */

@Entity(nameInDb = "DB_SIGN")
public class SignDataBean {

    public static final int PLAN_NOT_ACQUIRED = 0;
    public static final int PLAN_ACQUIRED = 1;
    public static final int PLAN_DOWNLOADING_STATE = 2;

    @SerializedName(value = "signStatus",alternate = "sign_type")
    int signStatus;         //0：未签到 1：已签到
    @SerializedName(value = "signTime",alternate = "sign_time")
    String signTime;
    @SerializedName(value = "signAddr",alternate = "sign_address")
    String signAddr;
    int planState = 0;   //0：未获取到  1：已获取到
    int hasPlan = 0;
    int planNum = 0;    //当天人巡计划个数
    int carPlanNum = 0; //当天车巡计划个数
    int needUpdate = 0; //是否需要更新离线人巡巡检点
    int carNeedUpdate = 0; //是否需要更新离线车巡巡检点
    String planIds;
    @Id @NotNull @Unique
    String planDate;      //当前计划的日期

    @Generated(hash = 853387716)
    public SignDataBean(int signStatus, String signTime, String signAddr,
            int planState, int hasPlan, int planNum, int carPlanNum, int needUpdate,
            int carNeedUpdate, String planIds, @NotNull String planDate) {
        this.signStatus = signStatus;
        this.signTime = signTime;
        this.signAddr = signAddr;
        this.planState = planState;
        this.hasPlan = hasPlan;
        this.planNum = planNum;
        this.carPlanNum = carPlanNum;
        this.needUpdate = needUpdate;
        this.carNeedUpdate = carNeedUpdate;
        this.planIds = planIds;
        this.planDate = planDate;
    }

    @Generated(hash = 2003318720)
    public SignDataBean() {
    }

    public int getSignStatus() {
        return signStatus;
    }

    public void setSignStatus(int signStatus) {
        this.signStatus = signStatus;
    }

    public String getSignTime() {
        return signTime;
    }

    public void setSignTime(String signTime) {
        this.signTime = signTime;
    }

    public String getSignAddr() {
        return signAddr;
    }

    public void setSignAddr(String signAddr) {
        this.signAddr = signAddr;
    }

    public int getPlanState() {
        return this.planState;
    }

    public void setPlanState(int plan_state) {
        this.planState = plan_state;
    }

    public String getPlanDate() {
        return this.planDate;
    }

    public void setPlanDate(String planDate) {
        this.planDate = planDate;
    }

    public int getHasPlan() {
        return this.hasPlan;
    }

    public void setHasPlan(int hasPlan) {
        this.hasPlan = hasPlan;
    }

    public int getPlanNum() {
        return this.planNum;
    }

    public void setPlanNum(int planNum) {
        this.planNum = planNum;
    }

    public int getNeedUpdate() {
        return this.needUpdate;
    }

    public void setNeedUpdate(int needUpdate) {
        this.needUpdate = needUpdate;
    }

    public int getCarPlanNum() {
        return this.carPlanNum;
    }

    public void setCarPlanNum(int carPlanNum) {
        this.carPlanNum = carPlanNum;
    }

    public int getCarNeedUpdate() {
        return this.carNeedUpdate;
    }

    public void setCarNeedUpdate(int carNeedUpdate) {
        this.carNeedUpdate = carNeedUpdate;
    }

    public String getPlanIds() {
        return this.planIds;
    }

    public void setPlanIds(String planIds) {
        this.planIds = planIds;
    }
}
