replaceStreamQueue method

void replaceStreamQueue(
  1. Map<int, List<EntertainmentStreamCommand>> newQueue
)

Empty the queue and replace it with newQueue.

The keys in newQueue are the channels that the commands are for.

The values in newQueue are the commands to send to the bridge.

Throws InvalidCommandChannelException if a command in newQueue map is not in the same channel as the channel it was initialized with.

Implementation

void replaceStreamQueue(
  Map<int, List<EntertainmentStreamCommand>> newQueue,
) =>
    _entertainmentStream.replaceQueue(newQueue);