public class EventPacket
extends java.lang.Object
implements android.os.Parcelable
Event
objects.Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<EventPacket> |
CREATOR |
Modifier | Constructor and Description |
---|---|
protected |
EventPacket(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
static EventPacket |
from(java.util.List<Event> events,
long timestamp)
Creates new event packet from list of
Event objects and a timestamp. |
java.util.List<Event> |
getEvents() |
long |
getTimestamp() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<EventPacket> CREATOR
public static EventPacket from(java.util.List<Event> events, long timestamp)
Event
objects and a timestamp.events
- the list of events.timestamp
- the timestamp.public long getTimestamp()
public java.util.List<Event> getEvents()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable