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); }
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); }
public SetlistSearchResult FindSetlistsByTour(SetlistByTourSearchOptions options) { var request = createSetlistByTourSearchRequest(options); return(executeRequest <SetlistSearchResult>(request)); }
public void FindSetlistsByTour(SetlistByTourSearchOptions options, Action <SetlistSearchResult> callback) { var request = createSetlistByTourSearchRequest(options); executeRequestAsync <SetlistSearchResult>(request, callback); }