public class BeaconEvent extends Object
| 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()
Return event data as Map
|
<R> R |
getData(Class<R> type)
Return this event's data parsed into the given type.
|
<R> R |
getData(com.google.gson.reflect.TypeToken<R> type)
Return the event data parsed into the given type.
|
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 String getBeacon()
public String getMinionId()
public String getAdditional()
public <R> R getData(com.google.gson.reflect.TypeToken<R> type)
R - type to parse the data intotype - type token to parse datapublic <R> R getData(Class<R> type)
R - type to parse the data intotype - class to parse datapublic static Optional<BeaconEvent> parse(Event event)
event - the generic event to parseCopyright © 2016. All rights reserved.