mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 14:43:08 +02:00
41 lines
942 B
Java
41 lines
942 B
Java
|
|
package model;
|
||
|
|
|
||
|
|
public class TemperatureAlarm {
|
||
|
|
private String thermometerId;
|
||
|
|
private long timestamp;
|
||
|
|
private double temperature;
|
||
|
|
|
||
|
|
public TemperatureAlarm() {
|
||
|
|
}
|
||
|
|
|
||
|
|
public TemperatureAlarm(String thermometerId, long timestamp, double temperature) {
|
||
|
|
this.thermometerId = thermometerId;
|
||
|
|
this.timestamp = timestamp;
|
||
|
|
this.temperature = temperature;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getThermometerId() {
|
||
|
|
return thermometerId;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setThermometerId(String thermometerId) {
|
||
|
|
this.thermometerId = thermometerId;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getTimestamp() {
|
||
|
|
return timestamp;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTimestamp(long timestamp) {
|
||
|
|
this.timestamp = timestamp;
|
||
|
|
}
|
||
|
|
|
||
|
|
public double getTemperature() {
|
||
|
|
return temperature;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTemperature(double temperature) {
|
||
|
|
this.temperature = temperature;
|
||
|
|
}
|
||
|
|
}
|