Class EventMessage.Builder
java.lang.Object
com.castlabs.android.player.models.mpd.EventMessage.Builder
- Enclosing class:
EventMessage
Builder for creating EventMessage instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondurationMs(long durationMs) Sets the duration of the event in milliseconds.get()Builds a new EventMessage instance.id(long id) Sets the instance identifier.messageData(byte[] messageData) Sets the body of the message.schemeIdUri(String schemeIdUri) Sets the message scheme.Sets the value for the event.
-
Constructor Details
-
Builder
public Builder()Creates a new Builder for EventMessage.
-
-
Method Details
-
schemeIdUri
Sets the message scheme.- Parameters:
schemeIdUri- The message scheme.- Returns:
- This builder.
-
value
Sets the value for the event.- Parameters:
value- The value for the event.- Returns:
- This builder.
-
durationMs
Sets the duration of the event in milliseconds.- Parameters:
durationMs- The duration of the event in milliseconds.- Returns:
- This builder.
-
id
Sets the instance identifier.- Parameters:
id- The instance identifier.- Returns:
- This builder.
-
messageData
Sets the body of the message.- Parameters:
messageData- The body of the message.- Returns:
- This builder.
-
get
Builds a new EventMessage instance.- Returns:
- A new EventMessage instance.
-