public class Event
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
static java.lang.String |
TYPE |
Constructor and Description |
---|
Event(EventType type,
java.lang.String uniqueId,
int batteryPower,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
int |
getBatteryPower() |
long |
getTimestamp() |
EventType |
getType() |
java.lang.String |
getUniqueId() |
static Event |
of(RemoteBluetoothDevice device,
EventType eventType) |
static JSONArray |
toJSONArray(java.util.List<Event> monitoringEvents) |
static JSONObject |
toJSONObject(Event event) |
void |
writeToParcel(Parcel dest,
int flags) |
public static final <any> CREATOR
public static final java.lang.String TYPE
public Event(EventType type, java.lang.String uniqueId, int batteryPower, long timestamp)
public static Event of(RemoteBluetoothDevice device, EventType eventType)
public long getTimestamp()
public int getBatteryPower()
public java.lang.String getUniqueId()
public EventType getType()
public static JSONObject toJSONObject(Event event)
public static JSONArray toJSONArray(java.util.List<Event> monitoringEvents)
public int describeContents()
public void writeToParcel(Parcel dest, int flags)