Package com.iizix.server.geo
Class UserLocation
- java.lang.Object
-
- com.iizix.server.geo.UserLocation
-
public class UserLocation extends java.lang.Object
Class holding the user with the latest location.- Author:
- Christopher Mindus
-
-
Field Summary
Fields Modifier and Type Field Description DeviceLocation
location
The device location.AuthenticatedUser
user
The authenticated user.
-
Constructor Summary
Constructors Constructor Description UserLocation(AuthenticatedUser user, DeviceLocation location)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Checks for equality.java.lang.String
toString()
String representation of the class.
-
-
-
Field Detail
-
user
public final AuthenticatedUser user
The authenticated user.
-
location
public final DeviceLocation location
The device location.
-
-
Constructor Detail
-
UserLocation
public UserLocation(AuthenticatedUser user, DeviceLocation location)
Constructor.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Checks for equality.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- The object to compare with.- Returns:
- When equals, false otherwise.
-
toString
public java.lang.String toString()
String representation of the class.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string with user and distance.
-
-