Esempio n. 1
0
        public List <ViewArtist> Artists(string query, out SearchInfo info)
        {
            SpotifyBridge.SearchResult <Artist> result = repo.getAllArtists(query);
            List <ViewArtist> ret = new List <ViewArtist>();

            foreach (Artist artist in result.Results)
            {
                ret.Add(new ViewArtist(artist));
            }
            info = result.Info;
            return(ret);
        }
Esempio n. 2
0
        public List <ViewTrack> Tracks(string query, out SearchInfo info)
        {
            SpotifyBridge.SearchResult <Track> result = repo.getAllTracks(query);
            List <ViewTrack> ret = new List <ViewTrack>();

            foreach (Track track in result.Results)
            {
                ret.Add(new ViewTrack(track));
            }
            info = result.Info;
            return(ret);
        }
Esempio n. 3
0
        public List <ViewAlbum> Albuns(string query, out SearchInfo info)
        {
            SpotifyBridge.SearchResult <Album> result = repo.getAllAlbum(query);
            List <ViewAlbum> ret = new List <ViewAlbum>();

            foreach (Album album in result.Results)
            {
                ret.Add(new ViewAlbum(album));
            }
            info = result.Info;
            return(ret);
        }