ChobiQ.DoubanFMAPICodePack.DoubanFMClient.SwitchChannel C# (CSharp) 메소드

SwitchChannel() 공개 메소드

Switches to another channel, playlist will be updated.
public SwitchChannel ( Channel newChannel ) : void
newChannel Channel
리턴 void
        public void SwitchChannel(Channel newChannel)
        {
            var song = DequeueToHistory(PlayOperation.Skip);

            CurrentChannel = newChannel;

            PlaylistRequest request = new PlaylistRequest(
                _status, _history, PlayOperation.Skip, CurrentChannel, song);

            var resp = request.GetResponse();

            ExtractPlaylist(resp, true);
        }