public class EventPacket
extends java.lang.Object
implements android.os.Parcelable
Event objects.| Modifier and Type | Class and Description | 
|---|---|
static class  | 
EventPacket.Builder
Builder class that is used to build  
EventPacket instances from values configured by the setters. | 
| Modifier and Type | Field and Description | 
|---|---|
static android.os.Parcelable.Creator<EventPacket> | 
CREATOR  | 
| Modifier and Type | Method and Description | 
|---|---|
static EventPacket.Builder | 
builder()  | 
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()  | 
java.lang.String | 
getSourceId()  | 
SourceType | 
getSourceType()  | 
long | 
getTimestamp()  | 
void | 
writeToParcel(android.os.Parcel dest,
             int flags)  | 
public static final android.os.Parcelable.Creator<EventPacket> CREATOR
public static EventPacket.Builder builder()
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 int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
                          int flags)
writeToParcel in interface android.os.Parcelablepublic java.lang.String getSourceId()
public SourceType getSourceType()
public long getTimestamp()
public java.util.List<Event> getEvents()