public void Initialize(INavigationParameters parameters)
 {
     if (parameters.ContainsKey("Album id"))
     {
         Id = parameters["Album id"].ToString();
         GetAlbumInfoCommand.Execute();
     }
     SelectedAlbumID = Id;
 }
Ejemplo n.º 2
0
        public async Task <LastResponse <LastAlbum> > GetAlbumInfoAsync(string artistname, string albumname, bool autocorrect = false)
        {
            var command = new GetAlbumInfoCommand(Auth, albumname, artistname)
            {
                Autocorrect = autocorrect
            };

            return(await command.ExecuteAsync());
        }
        public GetAlbumInfoCommandTests()
        {
            _command = new GetAlbumInfoCommand(MAuth.Object)
            {
                AlbumName  = "Ray of Light",
                ArtistName = "Madonna"
            };

            _command.SetParameters();
        }
Ejemplo n.º 4
0
        public async Task <LastResponse <LastAlbum> > GetAlbumInfoByMbidAsync(string albumMbid, bool autocorrect = false)
        {
            var command = new GetAlbumInfoCommand(Auth)
            {
                AlbumMbid   = albumMbid,
                Autocorrect = autocorrect
            };

            return(await command.ExecuteAsync());
        }