public class Notification
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Notification.NotificationAction
Enumeration containing all the Notification Actions
|
Modifier and Type | Field and Description |
---|---|
Notification.NotificationAction |
action
Action that will trigger this notification
|
java.lang.String |
building
Parent building unique identifier
|
int |
delay
Delay before triggerring the notification
|
java.lang.String |
floor
Parent floor unique identifier
|
int |
floorNumber
Parent floor number
|
java.lang.String |
id
Notification unique identifier
|
java.lang.String |
place
Id of the poi that will trigger the event
|
java.util.HashMap<java.lang.String,java.lang.String> |
properties
Keys/values that define the content of the notification
|
int |
range
Extended area where the notification will trigger
|
int |
repeat
Number of seconds when this notification can be repeated again
|
java.util.HashMap<java.lang.String,Values.Notification.Targets> |
targets
Keys/values that defines the notification target
|
java.lang.String |
type
Deprecated.
|
static java.lang.String |
TYPE
String containing the Notification type
|
Modifier and Type | Method and Description |
---|---|
static Notification |
fromIntent(android.content.Intent intent)
This method gets the Notification object from an intent.
|
java.lang.String |
toJson()
This method provides compatibility by returning relevant info into a
JSON String.
|
public static final java.lang.String TYPE
public final java.lang.String id
public final java.lang.String building
public final java.lang.String floor
public final int floorNumber
public final java.lang.String place
public final java.util.HashMap<java.lang.String,java.lang.String> properties
public final Notification.NotificationAction action
public final int delay
public final int range
public final int repeat
@Deprecated public final java.lang.String type
public final java.util.HashMap<java.lang.String,Values.Notification.Targets> targets
public java.lang.String toJson()
public static Notification fromIntent(android.content.Intent intent) throws java.lang.Exception
intent
- Intent where the Notification should be extractedjava.lang.Exception
- Exception thrown while retrieving the object from the Intent