public abstract class Event
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
protected EventType |
eventType |
protected long |
timestamp |
protected java.lang.String |
uniqueId |
Modifier | Constructor and Description |
---|---|
protected |
Event(EventType eventType,
long timestamp,
java.lang.String uniqueId) |
protected |
Event(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
long |
getTimestamp() |
EventType |
getType() |
java.lang.String |
getUniqueId() |
static Event |
of(RemoteBluetoothDevice device,
EventType eventType)
Creates concrete event object based on device and event type.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
protected final EventType eventType
protected final long timestamp
protected final java.lang.String uniqueId
protected Event(EventType eventType, long timestamp, java.lang.String uniqueId)
protected Event(android.os.Parcel in)
public static Event of(RemoteBluetoothDevice device, EventType eventType)
device
- the bluetooth device.eventType
- the event type.public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public EventType getType()
public long getTimestamp()
public java.lang.String getUniqueId()