forked from upstream-mirrors/OpenTracks
@@ -0,0 +1,18 @@
|
||||
package de.dennisguse.opentracks.data.models;
|
||||
|
||||
public record Temperature(
|
||||
float value_celsius
|
||||
) {
|
||||
|
||||
public static Temperature of(float value_celsius) {
|
||||
return new Temperature(value_celsius);
|
||||
}
|
||||
|
||||
public static Temperature ofCentiCelsius(int value_centi_celsius) {
|
||||
return Temperature.of((float) (value_centi_celsius / 100.0));
|
||||
}
|
||||
|
||||
public float getCelsius() {
|
||||
return value_celsius;
|
||||
}
|
||||
}
|
||||
@@ -43,6 +43,7 @@ public record TrackPoint(
|
||||
|
||||
Distance sensorDistance,
|
||||
HeartRate heartRate,
|
||||
Temperature temperature,
|
||||
Cadence cadence,
|
||||
Power power,
|
||||
AltitudeGainLoss altitudeGainLoss
|
||||
@@ -57,6 +58,7 @@ public record TrackPoint(
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
);
|
||||
}
|
||||
@@ -71,6 +73,7 @@ public record TrackPoint(
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
);
|
||||
}
|
||||
@@ -95,6 +98,7 @@ public record TrackPoint(
|
||||
),
|
||||
trackPoint.sensorDistance,
|
||||
trackPoint.heartRate,
|
||||
null,
|
||||
trackPoint.cadence,
|
||||
trackPoint.power,
|
||||
trackPoint.altitudeGainLoss
|
||||
@@ -108,6 +112,7 @@ public record TrackPoint(
|
||||
position,
|
||||
sensorDistance,
|
||||
heartRate,
|
||||
null,
|
||||
cadence,
|
||||
power,
|
||||
altitudeGainLoss
|
||||
@@ -121,6 +126,7 @@ public record TrackPoint(
|
||||
newPosition,
|
||||
sensorDistance,
|
||||
heartRate,
|
||||
null,
|
||||
cadence,
|
||||
power,
|
||||
altitudeGainLoss
|
||||
@@ -150,6 +156,7 @@ public record TrackPoint(
|
||||
position,
|
||||
newSensorDistance,
|
||||
heartRate,
|
||||
null,
|
||||
cadence,
|
||||
power,
|
||||
newAltitudeGainLoss
|
||||
|
||||
Reference in New Issue
Block a user