public class BrazeGeofence extends java.lang.Object implements IPutIntoJson<org.json.JSONObject>, java.lang.Comparable<BrazeGeofence>
Constructor and Description |
---|
BrazeGeofence(org.json.JSONObject object) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BrazeGeofence otherGeofence) |
boolean |
equivalentServerData(BrazeGeofence otherGeofence)
Check whether this geofence is identical to another geofence based on their server data
from Appboy.
|
org.json.JSONObject |
forJsonPut() |
boolean |
getAnalyticsEnabledEnter() |
boolean |
getAnalyticsEnabledExit() |
int |
getCooldownEnterSeconds() |
int |
getCooldownExitSeconds() |
double |
getDistanceFromGeofenceRefresh() |
java.lang.String |
getId() |
double |
getLatitude() |
double |
getLongitude() |
double |
getRadiusMeters() |
void |
setDistanceFromGeofenceRefresh(double distance) |
Geofence |
toGeofence()
Creates a Google Play Location Services Geofence object from an AppboyGeofence.
|
java.lang.String |
toString() |
public BrazeGeofence(org.json.JSONObject object) throws org.json.JSONException
org.json.JSONException
public java.lang.String getId()
public boolean getAnalyticsEnabledEnter()
public boolean getAnalyticsEnabledExit()
public int getCooldownEnterSeconds()
public int getCooldownExitSeconds()
public double getLatitude()
public double getLongitude()
public double getRadiusMeters()
public void setDistanceFromGeofenceRefresh(double distance)
public double getDistanceFromGeofenceRefresh()
public Geofence toGeofence()
public boolean equivalentServerData(BrazeGeofence otherGeofence)
otherGeofence
- the geofence to compare topublic java.lang.String toString()
toString
in class java.lang.Object
public org.json.JSONObject forJsonPut()
forJsonPut
in interface IPutIntoJson<org.json.JSONObject>
public int compareTo(BrazeGeofence otherGeofence)
compareTo
in interface java.lang.Comparable<BrazeGeofence>
otherGeofence
- the AppboyGeofence object to compare to