Exemplo n.º 1
0
        public override async Task NextSongAsync()
        {
            await server.sendRoomUpdate(this);

            if (SongQueue.Count() <= 0)
            {
                await server.BroadcastRoomAsync(this, new Packet(PacketType.PauseMusic, null));

                return;
            }

            var song = SongQueue.Peek();

            await server.BroadcastRoomAsync(this, new Packet(PacketType.StartPlaying, new StartPlayingData()
            {
                SongToPlay = song
            }));
        }