public static void Search(string query)
 {
     App._searchResult = new SearchResult();
     SpotifyHelper spotify = new SpotifyHelper("test");
     //App._searchResult.AddArtists(spotify.SearchArtists(query).Artists);
     spotify.SearchArtistsAsync(query, App.SearchArtistsCallback);
     spotify.SearchAlbumsAsync(query, App.SearchAlbumsCallback);
     spotify.SearchTracksAsync(query, App.SearchTracksCallback);
     var page = new View.GroupedCollectionPage();
     page.Groups = App._searchResult.SearchResultGroups;
     Window.Current.Content = page;
 }
Example #2
0
        public static void Search(string query)
        {
            App._searchResult = new SearchResult();
            SpotifyHelper spotify = new SpotifyHelper("test");

            //App._searchResult.AddArtists(spotify.SearchArtists(query).Artists);
            spotify.SearchArtistsAsync(query, App.SearchArtistsCallback);
            spotify.SearchAlbumsAsync(query, App.SearchAlbumsCallback);
            spotify.SearchTracksAsync(query, App.SearchTracksCallback);
            var page = new View.GroupedCollectionPage();

            page.Groups            = App._searchResult.SearchResultGroups;
            Window.Current.Content = page;
        }