public CPlaylist(CPlaylistInfo playlistInfo) : this(playlistInfo.Id, playlistInfo.Name, playlistInfo.UserId, playlistInfo.IsPublic) { }
public async Task <HttpResponseMessage> FilesFromPlaylistAsync(CUserInfo userInfo, CPlaylistInfo playlistInfo) { // clear all headers client.DefaultRequestHeaders.Clear(); // set Authorization header client.DefaultRequestHeaders.Authorization = HelperMethods.UserCredentials(userInfo); HttpResponseMessage response = await client.GetAsync($"api/file/GetFilesFromPlaylist?playlistId={playlistInfo.Id}"); return(response); }