Class OnlineLocation
-
- All Implemented Interfaces:
public class OnlineLocation
Basic struct to hold location sharing data received from Pointr Cloud
-
-
Field Summary
Fields Modifier and Type Field Description public final IdentifierPair
identifierPair
public final String
userName
public final Location
location
public final double
orientation
public final long
serverTimestamp
-
Constructor Summary
Constructors Constructor Description OnlineLocation(IdentifierPair identifierPair, String userName, Location location, double orientation, long serverTimestamp)
-
Method Summary
Modifier and Type Method Description IdentifierPair
getIdentifierPair()
String
getUserName()
name of user for shared location Location
getLocation()
Shared location double
getOrientation()
Orientation for shared location long
getServerTimestamp()
Unix timestamp of shared location -
-
Constructor Detail
-
OnlineLocation
OnlineLocation(IdentifierPair identifierPair, String userName, Location location, double orientation, long serverTimestamp)
-
-
Method Detail
-
getIdentifierPair
IdentifierPair getIdentifierPair()
- Returns:
Identifier pair for subscription
-
getUserName
String getUserName()
name of user for shared location
- Returns:
user name
-
getLocation
Location getLocation()
Shared location
- Returns:
location
-
getOrientation
double getOrientation()
Orientation for shared location
- Returns:
orientation of location
-
getServerTimestamp
long getServerTimestamp()
Unix timestamp of shared location
- Returns:
timestamp of shared location
-
-
-
-