public interface PresenceManager
| Modifier and Type | Method and Description |
|---|---|
PresenceEntityContext |
addPresenceEntity(HubContext hctx,
java.lang.String name)
Adds a new presence entity.
|
PresenceLocationContext |
addPresenceLocation(HubContext hctx,
java.lang.String name,
java.lang.Double latitude,
java.lang.Double longitude,
java.lang.Double radius,
java.lang.Integer beaconMajor,
java.lang.Integer beaconMinor)
Adds a new presence location.
|
void |
deletePresenceEntity(PresenceEntityContext ctx)
Deletes a presence entity.
|
void |
deletePresenceLocation(PresenceLocationContext ctx)
Deletes a presence location.
|
java.util.Collection<PresenceEntity> |
getAllPresenceEntities(HubContext ctx)
Returns all presence entities for a hub.
|
java.util.Collection<PresenceLocation> |
getAllPresenceLocations(HubContext ctx)
Retrieves a lit of all presence locations.
|
PresenceEntity |
getPresenceEntity(PresenceEntityContext ctx)
Returns details of a presence entity.
|
PresenceLocation |
getPresenceEntityLocation(PresenceEntityContext ctx)
Retrieves the current location of a presence entity.
|
PresenceLocation |
getPresenceLocation(PresenceLocationContext ctx)
Returns details of a presence location.
|
void |
updatePresenceEntityLocation(PresenceEntityContext ectx,
PresenceLocationContext lctx)
Sends an update event for a presence entity.
|
java.util.Collection<PresenceEntity> getAllPresenceEntities(HubContext ctx)
ctx - the context of the target hubPresenceEntity getPresenceEntity(PresenceEntityContext ctx)
ctx - the context of the entityPresenceEntityContext addPresenceEntity(HubContext hctx, java.lang.String name)
hctx - the context of the hub that owns the entityname - the name of the entityvoid deletePresenceEntity(PresenceEntityContext ctx)
ctx - the context of the presence entityPresenceLocation getPresenceEntityLocation(PresenceEntityContext ctx)
ctx - the presence entity contextvoid updatePresenceEntityLocation(PresenceEntityContext ectx, PresenceLocationContext lctx)
ectx - the context of the entitylctx - the context of the new locationjava.util.Collection<PresenceLocation> getAllPresenceLocations(HubContext ctx)
ctx - the context of the target hubPresenceLocation getPresenceLocation(PresenceLocationContext ctx)
ctx - the context of the presence locationPresenceLocationContext addPresenceLocation(HubContext hctx, java.lang.String name, java.lang.Double latitude, java.lang.Double longitude, java.lang.Double radius, java.lang.Integer beaconMajor, java.lang.Integer beaconMinor)
hctx - the context of the target hubname - the name of the locationlatitude - the location's latitude (for map-based locations)longitude - the location's longitude (for map-based locations)radius - the radius around the lat/long (for map-based locations)beaconMajor - the beacon major number (for beacon-based locations)beaconMinor - the beacon minor number (for beacon-based locations)void deletePresenceLocation(PresenceLocationContext ctx)
ctx - the context of the presence location to deleteCopyright © 2015 Whizzo Software LLC. All rights reserved.