Class EventMessage
- java.lang.Object
-
- com.castlabs.android.player.models.EventMessage
-
- All Implemented Interfaces:
Parcelable
public final class EventMessage extends Object implements Parcelable
An Event Message (emsg) as defined in ISO 23009-1.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventMessage.Builder-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<EventMessage>CREATOR-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Constructor Description EventMessage(String schemeIdUri, String value, long durationMs, long id, byte[] messageData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()booleanequals(Object obj)longgetDurationMs()The duration of the event in milliseconds.longgetId()The instance identifier.byte[]getMessageData()The body of the message.StringgetSchemeIdUri()The message scheme.StringgetValue()The value for the event.inthashCode()StringtoString()voidwriteToParcel(Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<EventMessage> CREATOR
-
-
Constructor Detail
-
EventMessage
public EventMessage(String schemeIdUri, String value, long durationMs, long id, byte[] messageData)
- Parameters:
schemeIdUri- The message scheme.value- The value for the event.durationMs- The duration of the event in milliseconds.id- The instance identifier.messageData- The body of the message.
-
-
Method Detail
-
getSchemeIdUri
public String getSchemeIdUri()
The message scheme.
-
getValue
public String getValue()
The value for the event.
-
getDurationMs
public long getDurationMs()
The duration of the event in milliseconds.
-
getId
public long getId()
The instance identifier.
-
getMessageData
public byte[] getMessageData()
The body of the message.
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceParcelable
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
- Specified by:
writeToParcelin interfaceParcelable
-
-