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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • TrackUpdateBuilder

        TrackUpdateBuilder()
    • 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

      • build

         final PlayerUpdateTrack build()