| | |
| | | package com.ruoyi.system.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonProperty; |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * CMS车辆设备列表查询响应 |
| | | * CMS车辆设备列表响应 |
| | | */ |
| | | public class CmsVehicleDeviceListResponse implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | public class CmsVehicleDeviceListResponse { |
| | | private int result; |
| | | private List<CmsVehicleDevice> devices; |
| | | |
| | | /** 结果码 */ |
| | | @JsonProperty("result") |
| | | private Integer result; |
| | | |
| | | /** 设备列表 */ |
| | | @JsonProperty("devices") |
| | | private List<VehicleDevice> devices; |
| | | |
| | | public Integer getResult() { |
| | | public int getResult() { |
| | | return result; |
| | | } |
| | | |
| | | public void setResult(Integer result) { |
| | | public void setResult(int result) { |
| | | this.result = result; |
| | | } |
| | | |
| | | public List<VehicleDevice> getDevices() { |
| | | public List<CmsVehicleDevice> getDevices() { |
| | | return devices; |
| | | } |
| | | |
| | | public void setDevices(List<VehicleDevice> devices) { |
| | | public void setDevices(List<CmsVehicleDevice> devices) { |
| | | this.devices = devices; |
| | | } |
| | | |
| | | public static class VehicleDevice { |
| | | /** 车牌号 */ |
| | | @JsonProperty("vid") |
| | | private String vehicleId; |
| | | /** |
| | | * CMS车辆设备信息 |
| | | */ |
| | | public static class CmsVehicleDevice { |
| | | private String vid; // 车牌号 |
| | | private int type; // 设备类型(1:视频设备,0:GPS设备) |
| | | private String did; // 设备号 |
| | | |
| | | /** 设备类型 */ |
| | | @JsonProperty("type") |
| | | private Integer type; |
| | | |
| | | /** 设备号 */ |
| | | @JsonProperty("did") |
| | | private String deviceId; |
| | | |
| | | public String getVehicleId() { |
| | | return vehicleId; |
| | | public String getVid() { |
| | | return vid; |
| | | } |
| | | |
| | | public void setVehicleId(String vehicleId) { |
| | | this.vehicleId = vehicleId; |
| | | public void setVid(String vid) { |
| | | this.vid = vid; |
| | | } |
| | | |
| | | public Integer getType() { |
| | | public int getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(Integer type) { |
| | | public void setType(int type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public String getDeviceId() { |
| | | return deviceId; |
| | | public String getDid() { |
| | | return did; |
| | | } |
| | | |
| | | public void setDeviceId(String deviceId) { |
| | | this.deviceId = deviceId; |
| | | public void setDid(String did) { |
| | | this.did = did; |
| | | } |
| | | } |
| | | } |