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 - DeviceLocation- locationThe device location.- IAuthenticatedUser- userThe 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 - boolean- equals(java.lang.Object o)Checks for equality.- java.lang.String- toString()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 class- java.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 class- java.lang.Object
- Returns:
- A string with user and distance.