Class LocationSharingSubscriberData
-
- All Implemented Interfaces:
public class LocationSharingSubscriberData
Basic data structure to hold location sharing subscriber data includes the token associated with the subscriber, a list of subscriber identifier pairs and an expiration unix timestamp
-
-
Field Summary
Fields Modifier and Type Field Description public final String
token
public final List<IdentifierPair>
subscribers
public final long
expiryTimestamp
-
Constructor Summary
Constructors Constructor Description LocationSharingSubscriberData(String token, List<IdentifierPair> subscribers, long expiryTimestamp)
-
Method Summary
Modifier and Type Method Description String
getToken()
Get token List<IdentifierPair>
getSubscribers()
List of subscribers long
getExpiryTimestamp()
Get expiration timestamp -
-
Constructor Detail
-
LocationSharingSubscriberData
LocationSharingSubscriberData(String token, List<IdentifierPair> subscribers, long expiryTimestamp)
-
-
Method Detail
-
getSubscribers
List<IdentifierPair> getSubscribers()
List of subscribers
- Returns:
a list of subscriber identifier pairs
-
getExpiryTimestamp
long getExpiryTimestamp()
Get expiration timestamp
- Returns:
expiration date as unix timestamp
-
-
-
-