DeviceLocationRequest.java 1.51 KB
package cn.com.glsx.schedulerjob.model;

import java.io.Serializable;
import java.util.List;

/**
 * 设备经纬度接口请求参数对象
 * 对应文档3.11节:设备上报指定日期的各设备经纬度位置数据
 */
public class DeviceLocationRequest implements Serializable {

    /**
     * 数据所属日期
     * 必填:是
     * 格式:yyyy-MM-dd
     * 对应文档3.11.2 currentDay字段
     */
    private String currentDay;

    /**
     * 设备位置列表
     * 必填:是
     * 类型:Array(List)
     * 对应文档3.11.2 locationList字段
     */
    private List<DeviceLocationItem> locationList;

    // 无参构造
    public DeviceLocationRequest() {
    }

    // 全参构造
    public DeviceLocationRequest(String currentDay, List<DeviceLocationItem> locationList) {
        this.currentDay = currentDay;
        this.locationList = locationList;
    }

    // Getter & Setter
    public String getCurrentDay() {
        return currentDay;
    }

    public void setCurrentDay(String currentDay) {
        this.currentDay = currentDay;
    }

    public List<DeviceLocationItem> getLocationList() {
        return locationList;
    }

    public void setLocationList(List<DeviceLocationItem> locationList) {
        this.locationList = locationList;
    }

    // toString
    @Override
    public String toString() {
        return "DeviceLocationRequest{" +
                "currentDay='" + currentDay + '\'' +
                ", locationList=" + locationList +
                '}';
    }
}