Class TrackUpdateBuilder
-
- All Implemented Interfaces:
public final class TrackUpdateBuilder
Allows you to update the playing track with only the fields that you wish to update.
-
-
Constructor Summary
Constructors Constructor Description TrackUpdateBuilder()
-
Method Summary
Modifier and Type Method Description final TrackUpdateBuilder
setEncoded(String encoded)
Sets the encoded track to be played. final TrackUpdateBuilder
setIdentifier(String identifier)
Set the identifier on the player. final TrackUpdateBuilder
setUserData(Object userData)
final PlayerUpdateTrack
build()
-
-
Method Detail
-
setEncoded
final TrackUpdateBuilder setEncoded(String encoded)
Sets the encoded track to be played. This will override the identifier if previously set.
- Parameters:
encoded
- The encoded track to be played.- Returns:
The updated builder, useful for chaining
-
setIdentifier
final TrackUpdateBuilder setIdentifier(String identifier)
Set the identifier on the player. This will override the encoded track if previously set.
- Parameters:
identifier
- the identifier to be played- Returns:
The updated builder, useful for chaining
-
setUserData
final TrackUpdateBuilder setUserData(Object userData)
-
build
final PlayerUpdateTrack build()
-
-
-
-