mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-29 09:11:17 +01:00
18 lines
431 B
Dart
18 lines
431 B
Dart
/// One 1 Hz record of trainer telemetry. Fields are nullable because the
|
|
/// trainer may not report all metrics (e.g. no HR strap paired).
|
|
class WorkoutSample {
|
|
final DateTime timestamp;
|
|
final int? powerW;
|
|
final int? cadenceRpm;
|
|
final double? speedKph;
|
|
final int? heartRateBpm;
|
|
|
|
const WorkoutSample({
|
|
required this.timestamp,
|
|
this.powerW,
|
|
this.cadenceRpm,
|
|
this.speedKph,
|
|
this.heartRateBpm,
|
|
});
|
|
}
|