public class FactualPlaceVisit
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
Constructor and Description |
---|
FactualPlaceVisit(Location ingressLocation,
java.util.List<FactualPlace> attachedPlaces,
Geographies geographies,
boolean isHome,
boolean isWork)
Constructs a
FactualPlaceVisit object. |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
java.util.List<FactualPlace> |
getAttachedPlaces()
Returns a list of places the user is at.
|
Geographies |
getGeographies()
Returns the geographies the user is at.
|
Location |
getIngressLocation()
Returns the location when the user started visiting the place.
|
boolean |
isHome()
Returns true if the user is at home.
|
boolean |
isWork()
Returns true if the user is at work.
|
JSONObject |
toJson()
Returns a json representation of the
FactualPlaceVisit . |
void |
writeToParcel(Parcel out,
int flags) |
public FactualPlaceVisit(Location ingressLocation, java.util.List<FactualPlace> attachedPlaces, Geographies geographies, boolean isHome, boolean isWork)
FactualPlaceVisit
object.ingressLocation
- The location when the user started visiting the place.attachedPlaces
- A list of places the user is at.geographies
- The geographies the user is at.isHome
- True if the user is at home.isWork
- True if the user is at work.public Location getIngressLocation()
public java.util.List<FactualPlace> getAttachedPlaces()
public Geographies getGeographies()
public boolean isHome()
public boolean isWork()
public JSONObject toJson() throws JSONException
FactualPlaceVisit
.FactualPlaceVisit
.JSONException
- If an error occurs creating the json.public int describeContents()
public void writeToParcel(Parcel out, int flags)