Exemplo n.º 1
0
 public CPlaylist(CPlaylistInfo playlistInfo) : this(playlistInfo.Id, playlistInfo.Name, playlistInfo.UserId, playlistInfo.IsPublic)
 {
 }
Exemplo n.º 2
0
        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);
        }