DeviceLocationRequest.java
1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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 +
'}';
}
}