Class EventMessage
java.lang.Object
com.castlabs.android.player.models.mpd.EventMessage
- All Implemented Interfaces:
Parcelable
An Event Message (emsg) as defined in ISO 23009-1.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating EventMessage instances.Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Parcelable.Creator<EventMessage> Creator for Parcelable implementation.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionEventMessage(String schemeIdUri, String value, long durationMs, long id, byte[] messageData) Creates a new EventMessage. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanlongGets the duration of the event in milliseconds.longgetId()Gets the instance identifier.byte[]Gets the body of the message.Gets the message scheme.getValue()Gets the value for the event.inthashCode()toString()voidwriteToParcel(Parcel dest, int flags)
-
Field Details
-
CREATOR
Creator for Parcelable implementation.
-
-
Constructor Details
-
EventMessage
public EventMessage(@NonNull String schemeIdUri, @NonNull String value, long durationMs, long id, @Nullable byte[] messageData) Creates a new EventMessage.- 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 Details
-
getSchemeIdUri
Gets the message scheme.- Returns:
- The message scheme.
-
getValue
Gets the value for the event.- Returns:
- The value for the event.
-
getDurationMs
public long getDurationMs()Gets the duration of the event in milliseconds.- Returns:
- The duration of the event in milliseconds.
-
getId
public long getId()Gets the instance identifier.- Returns:
- The instance identifier.
-
getMessageData
@Nullable public byte[] getMessageData()Gets the body of the message.- Returns:
- The body of the message.
-
hashCode
public int hashCode() -
equals
-
toString
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceParcelable
-
writeToParcel
- Specified by:
writeToParcelin interfaceParcelable
-