コード例 #1
0
        public Everything Get(string input, string selection = null)
        {
            this.search = input;

            Everything   everything  = new Everything();
            List <Movie> listMovies  = new List <Movie>();
            ArtistHolder listArtists = new ArtistHolder();
            List <Game>  listGames   = new List <Game>();
            //Tweets listTweets = new Tweets();

            SpotifyToken token = new SpotifyToken();

            Requests       requests = new Requests();
            RequestSpotify rs       = new RequestSpotify();
            RequestIgdb    ri       = new RequestIgdb();


            listMovies  = requests.GetMovieList(input).Result;
            listArtists = rs.GetAll(input).Result;

            //RequestTwitter rt = new RequestTwitter();

            listMovies  = requests.GetMovieList(input).Result;
            listArtists = rs.GetAll(input).Result;
            listGames   = ri.GetGameList(input).Result;
            //listTweets = rt.GetTweets(input).Result;


            everything.artistholder = listArtists;
            everything.movieslist   = listMovies;
            everything.gamelist     = listGames;
            //everything.tweetlist = listTweets;

            return(everything);
        }
コード例 #2
0
        public AlbumSearch Get(string search, string offset = "0", string limit = "20")
        {
            RequestSpotify rs     = new RequestSpotify();
            AlbumSearch    albums = new AlbumSearch();

            albums = rs.SearchAlbums(search: search, offset: offset, limit: limit);
            return(albums);
        }
コード例 #3
0
        public ArtistSearch Get(string search, string offset = "0", string limit = "20")
        {
            RequestSpotify rs     = new RequestSpotify();
            ArtistSearch   artist = new ArtistSearch();

            artist = rs.SearchArtists(search: search, offset: offset, limit: limit);
            return(artist);
        }
コード例 #4
0
        public List <Song> Get(string artistid)
        {
            RequestSpotify rs     = new RequestSpotify();
            List <Song>    holder = new List <Song>();

            holder = rs.GetTopTracks(artistid).Result;
            return(holder);
        }
コード例 #5
0
        public ArtistAlbumsHolder Get(string id, string offset = "0", string limit = "20")
        {
            RequestSpotify     rs     = new RequestSpotify();
            ArtistAlbumsHolder holder = new ArtistAlbumsHolder();

            holder = rs.GetArtistAlbums(id, offset, limit).Result;
            return(holder);
        }
コード例 #6
0
        public List <Song> Get(string albumid)
        {
            RequestSpotify rs  = new RequestSpotify();
            List <Song>    alb = new List <Song>();

            alb = rs.GetFullAlbum(albumid).Result;
            return(alb);
        }
コード例 #7
0
        public Artist Get(string artistid, string offset = "0", string limit = "20")
        {
            RequestSpotify rs     = new RequestSpotify();
            Artist         artist = new Artist();

            artist = rs.OneArtist(artistid).Result;
            return(artist);
        }
コード例 #8
0
        public SongSearch Get(string search, string offset = "0", string limit = "20")
        {
            RequestSpotify rs     = new RequestSpotify();
            SongSearch     tracks = new SongSearch();

            tracks = rs.SearchTracks(search: search, offset: offset, limit: limit);
            return(tracks);
        }