package com.casic.common.detector.gd.bean;

import com.casic.common.detector.gd.model.TaskModel;

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

/**
 * 巡检任务里面需要巡检的标识器信息本地库实体类
 */
@Entity
public class TaskMarkerLocalBean {
    @Id
    private Long id;//标识器后台库的主键ID，不是标识器实际ID

    /**
     * 任务ID，通过此字段关联{@link TaskLocalBean#id}
     */
    private String taskId;

    /**
     * 任务Code，通过此字段关联{@link TaskLocalBean#taskCode}
     * <p>
     * 双重验证，防止出现同时刻重复的情况
     */
    private String taskCode;

    /**
     * 对应后台字段{@link TaskModel.MessageModel.TaskDetailInfosModel#markerIdReal}，也就是探测仪扫描出来的ID
     */
    private String markerId;

    private double lng;
    private double lat;

    /**
     * 是否已被探测到
     * 1-是，0-否
     */
    private String isDetected;

    /**
     * 被探测到的时间，对应后台字段{@link TaskModel.MessageModel.TaskDetailInfosModel#finishTime}
     */
    private String detectedTime;

    @Generated(hash = 677328533)
    public TaskMarkerLocalBean(Long id, String taskId, String taskCode, String markerId,
                               double lng, double lat, String isDetected, String detectedTime) {
        this.id = id;
        this.taskId = taskId;
        this.taskCode = taskCode;
        this.markerId = markerId;
        this.lng = lng;
        this.lat = lat;
        this.isDetected = isDetected;
        this.detectedTime = detectedTime;
    }

    @Generated(hash = 1162404642)
    public TaskMarkerLocalBean() {
    }

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

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

    public String getTaskId() {
        return this.taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getTaskCode() {
        return this.taskCode;
    }

    public void setTaskCode(String taskCode) {
        this.taskCode = taskCode;
    }

    public String getMarkerId() {
        return this.markerId;
    }

    public void setMarkerId(String markerId) {
        this.markerId = markerId;
    }

    public double getLng() {
        return this.lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public double getLat() {
        return this.lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public String getIsDetected() {
        return this.isDetected;
    }

    public void setIsDetected(String isDetected) {
        this.isDetected = isDetected;
    }

    public String getDetectedTime() {
        return this.detectedTime;
    }

    public void setDetectedTime(String detectedTime) {
        this.detectedTime = detectedTime;
    }
}
