Example #1
0
        private RestRequest createSetlistByTourSearchRequest(SetlistByTourSearchOptions options)
        {
            var request = new RestRequest();

            request.Resource = "artist/{ArtistId}/tour/{TourName}";

            request.AddUrlSegment("ArtistId", options.MbId);
            request.AddUrlSegment("TourName", options.Tour);

            return(request);
        }
Example #2
0
        public void FindSetlistsByTour_CanFindSetlists()
        {
            var options = new SetlistByTourSearchOptions()
            {
                MbId = "65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab",
                Tour = "World Magnetic"
            };

            var results = _client.FindSetlistsByTour(options);

            Assert.NotNull(results);
            Assert.NotEmpty(results.Setlists);
        }
Example #3
0
        public SetlistSearchResult FindSetlistsByTour(SetlistByTourSearchOptions options)
        {
            var request = createSetlistByTourSearchRequest(options);

            return(executeRequest <SetlistSearchResult>(request));
        }
Example #4
0
        public void FindSetlistsByTour(SetlistByTourSearchOptions options, Action <SetlistSearchResult> callback)
        {
            var request = createSetlistByTourSearchRequest(options);

            executeRequestAsync <SetlistSearchResult>(request, callback);
        }