Package com.iizix.user.geo
Class UserLocation
- java.lang.Object
- com.iizix.user.geo.UserLocation
public class UserLocation extends java.lang.ObjectClass holding the user with the latest location.- Author:
- Christopher Mindus
Field Summary
Fields Modifier and Type Field Description DeviceLocationlocationThe device location.IAuthenticatedUseruserThe authenticated user.
Constructor Summary
Constructors Constructor Description UserLocation(IAuthenticatedUser user, DeviceLocation location)Constructor.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Checks for equality.java.lang.StringtoString()String representation of the class.
Field Detail
user
public final IAuthenticatedUser user
The authenticated user.
location
public final DeviceLocation location
The device location.
Constructor Detail
UserLocation
public UserLocation(IAuthenticatedUser user, DeviceLocation location)
Constructor.
Method Detail
equals
public boolean equals(java.lang.Object o)
Checks for equality.- Overrides:
equalsin 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:
toStringin classjava.lang.Object- Returns:
- A string with user and distance.