diff --git a/NucuHub.Android/app/build.gradle b/NucuHub.Android/app/build.gradle index ddf7b06..f493b3b 100644 --- a/NucuHub.Android/app/build.gradle +++ b/NucuHub.Android/app/build.gradle @@ -60,5 +60,6 @@ dependencies { implementation 'io.grpc:grpc-protobuf-lite:1.33.1' // CURRENT_GRPC_VERSION implementation 'io.grpc:grpc-stub:1.33.1' // CURRENT_GRPC_VERSION compileOnly 'org.apache.tomcat:annotations-api:6.0.53' // necessary for Java 9+ - + compileOnly 'org.projectlombok:lombok:1.18.16' + annotationProcessor 'org.projectlombok:lombok:1.18.16' } \ No newline at end of file diff --git a/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/domain/EnvironmentSensorData.java b/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/domain/EnvironmentSensorData.java index 3122ae8..53f6298 100644 --- a/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/domain/EnvironmentSensorData.java +++ b/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/domain/EnvironmentSensorData.java @@ -2,6 +2,7 @@ package dev.nuculabs.nucuhub.domain; import NucuCarSensorsProto.NucuCarSensors; import android.util.Log; +import lombok.Getter; import org.json.JSONException; import org.json.JSONObject; @@ -10,10 +11,10 @@ import java.text.DecimalFormat; public class EnvironmentSensorData { @SuppressWarnings("FieldCanBeLocal") private final String TAG = EnvironmentSensorData.class.getName(); - private double temperature; - private double humidity; - private double pressure; - private double volatileOrganicCompounds; + @Getter private double temperature; + @Getter private double humidity; + @Getter private double pressure; + @Getter private double volatileOrganicCompounds; private NucuCarSensors.SensorStateEnum sensorState; public EnvironmentSensorData(String data, NucuCarSensors.SensorStateEnum state) { @@ -65,22 +66,6 @@ public class EnvironmentSensorData { return airQualityScore; } - public double getTemperature() { - return temperature; - } - - public double getHumidity() { - return humidity; - } - - public double getPressure() { - return pressure; - } - - public double getVolatileOrganicCompounds() { - return volatileOrganicCompounds; - } - @SuppressWarnings("NullableProblems") @Override public String toString() {