Exemplo n.º 1
0
        public void FindUserAttended_CanFindSetlists()
        {
            var options = new UserAttendedSearchOptions() { UserId = "fuzy" };

            var results = _client.FindUserAttended(options);

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

            executeRequestAsync<SetlistSearchResult>(request, callback);
        }
Exemplo n.º 4
0
        public SetlistSearchResult FindUserAttended(UserAttendedSearchOptions options)
        {
            var request = createUserAttendedRequest(options);

            return executeRequest<SetlistSearchResult>(request);
        }