internal SubsonicResponse(RestData.SubsonicResponse restData) { Ok = restData.IsOk; Version = SubsonicVersion.Parse(restData.Version); _nowPlayingList = restData.NowPlaying.Select(nowPlaying => new NowPlaying(nowPlaying)).ToList(); _shares = restData.Shares.Select(share => new Share(share)).ToList(); _playlists = restData.Playlists.Select(playlist => new Playlist(playlist)).ToList(); SearchResult2 = new SearchResult2(restData.SearchResult2); User = new User(restData.User); }
internal SubsonicResponse() { Ok = false; Version = new SubsonicVersion(); _nowPlayingList = new List<NowPlaying>(); _shares = new List<Share>(); _playlists = new List<Playlist>(); SearchResult2 = new SearchResult2(); User = new User(); }