@@ -22,7 +22,6 @@ class FindMyLocationReport {
2222 double ? latitude;
2323 double ? longitude;
2424 int ? accuracy;
25- DateTime ? published;
2625 DateTime ? timestamp;
2726 int ? confidence;
2827 AccessoryBatteryStatus ? batteryStatus;
@@ -34,7 +33,7 @@ class FindMyLocationReport {
3433 String ? hash;
3534
3635 FindMyLocationReport (this .latitude, this .longitude, this .accuracy,
37- this .published, this .timestamp, this .confidence, this .batteryStatus);
36+ this .timestamp, this .confidence, this .batteryStatus);
3837
3938 FindMyLocationReport .withHash (
4039 this .latitude, this .longitude, this .timestamp, this .hash) {
@@ -60,11 +59,7 @@ class FindMyLocationReport {
6059 await Future .delayed (const Duration (
6160 milliseconds: 1 )); //Is needed otherwise is executed synchron
6261 if (isEncrypted ()) {
63- final unixTimestampInMillis = result["datePublished" ];
64- final datePublished =
65- DateTime .fromMillisecondsSinceEpoch (unixTimestampInMillis);
66- FindMyReport report = FindMyReport (datePublished,
67- base64Decode (result["payload" ]), id! , result["statusCode" ]);
62+ FindMyReport report = FindMyReport (base64Decode (result["payload" ]), id! , result["statusCode" ]);
6863
6964 FindMyLocationReport decryptedReport =
7065 await DecryptReports .decryptReport (
@@ -102,17 +97,16 @@ class Location {
10297
10398/// FindMy report returned by the FindMy Network
10499class FindMyReport {
105- DateTime datePublished;
106100 Uint8List payload;
107101 String id;
108102 int statusCode;
109103
110104 int ? confidence;
111105 DateTime ? timestamp;
112106
113- FindMyReport (this .datePublished, this . payload, this .id, this .statusCode);
107+ FindMyReport (this .payload, this .id, this .statusCode);
114108
115- FindMyReport .completeInit (this .datePublished, this .payload, this .id,
109+ FindMyReport .completeInit ( this .payload, this .id,
116110 this .statusCode, this .confidence, this .timestamp);
117111}
118112
0 commit comments