public class BeaconEvent extends Object
Constructor and Description |
---|
BeaconEvent(String minionId,
String beacon,
String additional,
Map<String,Object> data)
Creates a new BeaconEvent
|
Modifier and Type | Method and Description |
---|---|
String |
getAdditional()
Provides additional information from the tag depending on the type of beacon
|
String |
getBeacon()
Returns the beacon name.
|
Map<String,Object> |
getData()
The event data containing more information about this event
|
String |
getMinionId()
Returns the id of the minion that triggered the beacon
|
static Optional<BeaconEvent> |
parse(Event event)
Utility method to parse e generic event to a more specific one
|
public BeaconEvent(String minionId, String beacon, String additional, Map<String,Object> data)
minionId
- the id of the minion sending the eventbeacon
- the beacon nameadditional
- additional information depending on the beacondata
- data containing more information about this eventpublic String getBeacon()
public String getMinionId()
public String getAdditional()
public Map<String,Object> getData()
public static Optional<BeaconEvent> parse(Event event)
event
- the generic event to parseCopyright © 2016. All rights reserved.