public void Initialize(INavigationParameters parameters) { if (parameters.ContainsKey("Album id")) { Id = parameters["Album id"].ToString(); GetAlbumInfoCommand.Execute(); } SelectedAlbumID = Id; }
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(); }
public async Task <LastResponse <LastAlbum> > GetAlbumInfoByMbidAsync(string albumMbid, bool autocorrect = false) { var command = new GetAlbumInfoCommand(Auth) { AlbumMbid = albumMbid, Autocorrect = autocorrect }; return(await command.ExecuteAsync()); }