Exemplo n.º 1
0
        public async Task GetAlbum()
        {
            var account = GetAccount();
            var mc      = new MobileClient();

            Assert.IsTrue(await mc.LoginAsync(account.Item1, account.Item2));
            Assert.IsNotNull(await mc.GetAlbumAsync("Bdyocq5dfo3a72heswzl7nhni64")); // Lunch Money - EP, By: SoySauce
        }
Exemplo n.º 2
0
        public override async Task <Album> GetAlbumAsync(string albumId, bool withTracks)
        {
            try
            {
                // Album should always have tracks
                var album = await client.GetAlbumAsync(albumId, includeDescription : false);

                return(CreateAlbum(album));
            }
            catch (HttpRequestException ex)
            {
                // Just uhhhh
                throw new ResourceNotFoundException(ex.Message);
            }
        }