Пример #1
0
        public virtual IPlaylist HandleResponse(IMpdResponse response)
        {
            if (response.IsErrorResponse)
            {
                return(null);
            }

            var parser = new ResponseParser(response);

            return(new Mpd.Playlist
            {
                Name = PlaylistName,
                LastModified = parser.GetLastModified(),
                Items = parser.GetListedTracks()
            });
        }