You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.5 KiB
74 lines
1.5 KiB
1 year ago
|
package com.example.device.entity;
|
||
|
|
||
|
import java.time.LocalDateTime;
|
||
|
|
||
|
/**
|
||
|
* @author mengff
|
||
|
* @Date 2024/01/04
|
||
|
*/
|
||
|
public class Status {
|
||
|
public LocalDateTime getTime() {
|
||
|
return time;
|
||
|
}
|
||
|
|
||
|
public void setTime(LocalDateTime time) {
|
||
|
this.time = time;
|
||
|
}
|
||
|
|
||
|
public String getDeviceNo() {
|
||
|
return deviceNo;
|
||
|
}
|
||
|
|
||
|
public Status(long id, String deviceNo, String deviceName, int deviceStatus) {
|
||
|
this.id = id;
|
||
|
this.deviceNo = deviceNo;
|
||
|
this.deviceName = deviceName;
|
||
|
this.deviceStatus = deviceStatus;
|
||
|
}
|
||
|
|
||
|
public Status() {
|
||
|
}
|
||
|
|
||
|
public void setDeviceNo(String deviceNo) {
|
||
|
this.deviceNo = deviceNo;
|
||
|
}
|
||
|
|
||
|
public String getDeviceName() {
|
||
|
return deviceName;
|
||
|
}
|
||
|
|
||
|
public void setDeviceName(String deviceName) {
|
||
|
this.deviceName = deviceName;
|
||
|
}
|
||
|
|
||
|
public int getDeviceStatus() {
|
||
|
return deviceStatus;
|
||
|
}
|
||
|
|
||
|
public void setDeviceStatus(int deviceStatus) {
|
||
|
this.deviceStatus = deviceStatus;
|
||
|
}
|
||
|
|
||
|
private long id;
|
||
|
|
||
|
private String deviceNo;
|
||
|
|
||
|
@Override
|
||
|
public String toString() {
|
||
|
return "Status{" +
|
||
|
"id=" + id +
|
||
|
", deviceNo='" + deviceNo + '\'' +
|
||
|
", deviceName='" + deviceName + '\'' +
|
||
|
", deviceStatus=" + deviceStatus +
|
||
|
", time=" + time +
|
||
|
'}';
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
private String deviceName;
|
||
|
private int deviceStatus;
|
||
|
|
||
|
private LocalDateTime time;
|
||
|
|
||
|
}
|