|
|
@@ -1,5 +1,6 @@
|
|
|
package puzzeltocht.domain;
|
|
|
|
|
|
+import java.time.LocalDateTime;
|
|
|
import java.util.UUID;
|
|
|
|
|
|
public class Team {
|
|
|
@@ -7,6 +8,7 @@ public class Team {
|
|
|
private final String name;
|
|
|
private Mission currentMission;
|
|
|
private Location currentLocation;
|
|
|
+ private LocalDateTime lastActive = LocalDateTime.now();
|
|
|
// private final List<Location> locationHistory = new ArrayList<>();
|
|
|
|
|
|
public Team(String name) {
|
|
|
@@ -38,8 +40,8 @@ public class Team {
|
|
|
if (l == null) {
|
|
|
return;
|
|
|
}
|
|
|
+ this.lastActive = LocalDateTime.now();
|
|
|
this.currentLocation = l;
|
|
|
-// updateHistory(l);
|
|
|
}
|
|
|
|
|
|
// public List<Location> getLocationHistory() {
|
|
|
@@ -57,4 +59,8 @@ public class Team {
|
|
|
// }
|
|
|
// }
|
|
|
|
|
|
+ public LocalDateTime getLastActive() {
|
|
|
+ return lastActive;
|
|
|
+ }
|
|
|
+
|
|
|
}
|