public void FindUserAttended_CanFindSetlists()
        {
            var options = new UserAttendedSearchOptions() { UserId = "fuzy" };

            var results = _client.FindUserAttended(options);

            Assert.NotNull(results);
            Assert.NotEmpty(results.Setlists);
        }
Exemple #2
0
        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;
        }
Exemple #3
0
        public void FindUserAttended(UserAttendedSearchOptions options, Action<SetlistSearchResult> callback)
        {
            var request = createUserAttendedRequest(options);

            executeRequestAsync<SetlistSearchResult>(request, callback);
        }
Exemple #4
0
        public SetlistSearchResult FindUserAttended(UserAttendedSearchOptions options)
        {
            var request = createUserAttendedRequest(options);

            return executeRequest<SetlistSearchResult>(request);
        }