Location Status eingebaut

Ranking wieder teilaktivert.
This commit is contained in:
Sven committed 2024-04-10 15:37:27 +02:00
1 parent 276b337b62
commit cfbc0cf765
12 files changed
+566 -862

No files matched your search

-72
View File
@@ -3,59 +3,6 @@ import 'package:json_annotation/json_annotation.dart';
part 'zip_message.g.dart';
/*
{
"recv": "rank",
"payload": {
"set_pos": {
"zip": "22525",
"track": {
"time": "2021-03-01T12:55:51Z",
"pos":
{
"lat": 53.595121,
"long": 9.907433,
"acc": 35
}
}
},
"reg_zip": {
"id": 2,
"zip": "22039"
}
}
}
*/
@JsonSerializable()
class ZipMessage {
@JsonKey(name: "set_pos")
ZipSetPos? setPos;
@JsonKey(name: "req_zip")
ZipReqZip? reqZip;
ZipMessage();
factory ZipMessage.fromJson(Map<String, dynamic> json) => _$ZipMessageFromJson(json);
Map<String, dynamic> toJson() => _$ZipMessageToJson(this);
}
@embedded
@JsonSerializable()
class ZipReqZip {
late int id;
late String zip;
ZipReqZip();
factory ZipReqZip.fromJson(Map<String, dynamic> json) => _$ZipReqZipFromJson(json);
Map<String, dynamic> toJson() => _$ZipReqZipToJson(this);
}
@embedded
@JsonSerializable()
class ZipSetPos {
@@ -99,22 +46,3 @@ class ZipTrackPos {
Map<String, dynamic> toJson() => _$ZipTrackPosToJson(this);
}
/*
@JsonSerializable()
class MessageContent
{
late String text;
late String subj;
late String time;
MessageContent();
factory MessageContent.fromJson(Map<String, dynamic> json) => _$MessageContentFromJson(json);
Map<String, dynamic> toJson() => _$MessageContentToJson(this);
}
*/