WUT_Computer_Science/Programming/PSD/zin3/code/model/TemperatureReading.java

41 lines
948 B
Java
Raw Normal View History

2025-04-24 13:34:07 +02:00
package model;
public class TemperatureReading {
private String thermometerId;
private long timestamp;
private double temperature;
public TemperatureReading() {
}
public TemperatureReading(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;
}
}