public void FindUserAttended_CanFindSetlists() { var options = new UserAttendedSearchOptions() { UserId = "fuzy" }; var results = _client.FindUserAttended(options); Assert.NotNull(results); Assert.NotEmpty(results.Setlists); }
private RestRequest createUserAttendedRequest(UserAttendedSearchOptions options) { var request = new RestRequest(); request.Resource = "user/{UserId}/attended"; request.AddUrlSegment("UserId", options.UserId); if (options.Page.HasValue) request.AddParameter("p", options.Page.Value); return request; }
public void FindUserAttended(UserAttendedSearchOptions options, Action<SetlistSearchResult> callback) { var request = createUserAttendedRequest(options); executeRequestAsync<SetlistSearchResult>(request, callback); }
public SetlistSearchResult FindUserAttended(UserAttendedSearchOptions options) { var request = createUserAttendedRequest(options); return executeRequest<SetlistSearchResult>(request); }