- TrackState-Zustände (no_fix/static/moving_slow/moving_medium/moving_fast) mit je eigenem Meldeintervall mit/ohne Auftrag (lib/tools/track_state.dart) - Festes Sampling (15s) statt fixem 120s-Timer; Sofortmeldung bei Zustandswechsel, sonst nach Zustandsintervall (mqtt_core.dart) - track-JSON um state (String) und speed (m/s) erweitert - Statisch-Erkennung über GPS-Genauigkeit, aktiver Auftrag = akzeptiert und <=15min vor ordertime - chat_message.dart: Direktimport von objectbox.dart ergaenzt, behebt build_runner-Aufloesungsfehler (ChatMessage-Entity) - Release-Build-Script (build_release_apk.sh) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
28 lines
543 B
Dart
28 lines
543 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'track_message.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class TrackPosition {
|
|
late int time;
|
|
|
|
late double lat;
|
|
|
|
late double long;
|
|
|
|
late int acc;
|
|
|
|
/// Bewegungszustand der Ortung (String-Label, z. B. "static", "moving_medium").
|
|
late String state;
|
|
|
|
/// Geschwindigkeit in m/s.
|
|
late double speed;
|
|
|
|
TrackPosition();
|
|
|
|
factory TrackPosition.fromJson(Map<String, dynamic> json) => _$TrackPositionFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$TrackPositionToJson(this);
|
|
}
|
|
|