예제 #1
0
        public void FindUserAttended_CanFindSetlists()
        {
            var options = new UserAttendedSearchOptions() { UserId = "fuzy" };

            var results = _client.FindUserAttended(options);

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

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

            return executeRequest<SetlistSearchResult>(request);
        }