properties| Constructor and Description |
|---|
Location(org.json.JSONObject properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
createBeacon(Beacon beacon,
Placement placement,
Completion completion) |
Config.Beacon |
findBeaconByIdentifier(java.lang.String identifier)
find a beacon with a particular identifier
|
Config.Beacon |
findBeaconBySerial(java.lang.String serial)
find a beacon with a particular serial/mac
|
java.lang.String |
getAddressDescription()
Gets the full address as a user displayable string
|
java.util.ArrayList<Config.Beacon> |
getBeacons()
Get the beacons configured for this location.
|
Config.Floorplan |
getFloorplan(java.lang.String identifier)
Get the floorplan for a location with a specific identifier
|
java.util.ArrayList<Config.Floorplan> |
getFloorplans()
Gets tfloorplan objects configured for this location
|
java.lang.String |
getLocationName()
Get the Location name.
|
java.lang.String |
getPartnerIdentifier()
Get the Partner identifier.
|
void |
load(Completion completion)
Load all data and related data for this beacon.
|
void |
loadBeacons(Completion completion)
Load just the related beacon data for this location.
|
getAddress, getExternalIdentifier, getIdentifier, getLatitude, getLocation, getLongitude, getPlacement, getSignal, getTimezone, streamEvents, toStringpublic java.util.ArrayList<Config.Floorplan> getFloorplans()
public Config.Floorplan getFloorplan(java.lang.String identifier)
identifier - floorplan idpublic java.lang.String getLocationName()
public java.lang.String getPartnerIdentifier()
public java.lang.String getAddressDescription()
public java.util.ArrayList<Config.Beacon> getBeacons()
public Config.Beacon findBeaconByIdentifier(java.lang.String identifier)
identifier - the id of the beaconpublic Config.Beacon findBeaconBySerial(java.lang.String serial)
serial - the id of the beaconpublic void loadBeacons(Completion completion)
completion - Called when the load is completepublic void load(Completion completion)
completion - called when the load is completepublic void createBeacon(Beacon beacon, Placement placement, Completion completion)