replaceStreamQueueChannel method

void replaceStreamQueueChannel(
  1. int channel,
  2. List<EntertainmentStreamCommand> newChannelQueue
)

Empty the queue only in the given 'channel' and replace that data with newQueue.

Throws InvalidCommandChannelException if a command in newQueue is does not have the same channel as the channel parameter provided to this method.

Implementation

void replaceStreamQueueChannel(
  int channel,
  List<EntertainmentStreamCommand> newChannelQueue,
) =>
    _entertainmentStream.replaceQueueChannel(channel, newChannelQueue);