Beispiel #1
0
        public Task <MeetupResponse <Group> > Get(string groupName)
        {
            if (string.IsNullOrWhiteSpace(groupName))
            {
                throw new ArgumentNullException(nameof(groupName));
            }

            return(MeetupRequestMethods.GetWithRequestAsync <Group>($"/{groupName}", _options, null));
        }
Beispiel #2
0
        public Task <MeetupResponse <Venue[]> > For(GroupVenueRequest request)
        {
            if (request == null)
            {
                throw new ArgumentNullException(nameof(request));
            }

            return(MeetupRequestMethods.GetWithRequestAsync <Venue[]>($"/{request.GroupName}/venues", _options, request));
        }
Beispiel #3
0
        public Task <MeetupResponse <Topic[]> > RecommendedGroupTopic(RecommendedGroupTopicRequest request)
        {
            if (request == null)
            {
                throw new ArgumentNullException(nameof(request));
            }

            return(MeetupRequestMethods.GetWithRequestAsync <Topic[]>("recommended/group_topics",
                                                                      _options, request));
        }
Beispiel #4
0
        public Task <MeetupResponse <Topic[]> > Find(FindTopicRequest request)
        {
            if (request == null)
            {
                throw new ArgumentNullException(nameof(request));
            }

            return(MeetupRequestMethods.GetWithRequestAsync <Topic[]>(
                       "find/topics",
                       _options, request));
        }
Beispiel #5
0
        public Task <MeetupResponse <Venue[]> > Find(FindVenuesRequest request)
        {
            if (request == null)
            {
                throw new ArgumentNullException(nameof(request));
            }

            if (!string.IsNullOrWhiteSpace(request.Country) && request.Country.Length != 2)
            {
                throw new ArgumentOutOfRangeException(nameof(request), "Country must be a 2 character code");
            }

            return(MeetupRequestMethods.GetWithRequestAsync <Venue[]>("/find/venues", _options, request));
        }
 public Task <MeetupResponse <Location[]> > FindLocation(FindLocationRequest request)
 {
     return(MeetupRequestMethods.GetWithRequestAsync <Location[]>("/find/location", _options, request));
 }
Beispiel #7
0
 private Task <MeetupResponse <Venue[]> > Recommended(MeetupRequest request)
 {
     return(MeetupRequestMethods.GetWithRequestAsync <Venue[]>("/recommended/venues", _options, request));
 }
Beispiel #8
0
 public Task <MeetupResponse <TopicCategory[]> > FindCategories(FindTopicCategoriesRequest request)
 {
     return(MeetupRequestMethods.GetWithRequestAsync <TopicCategory[]>(
                "find/topic_categories",
                _options, request));
 }
Beispiel #9
0
 public Task <MeetupResponse <Event[]> > For(GetEventsRequest request)
 {
     return(MeetupRequestMethods.GetWithRequestAsync <Event[]>($"{request.GroupName}/events", _options, request));
 }
Beispiel #10
0
 public Task <MeetupResponse <List <Group> > > Find()
 {
     return(MeetupRequestMethods.GetWithRequestAsync <List <Group> >($"/find/groups", _options, null));
 }
Beispiel #11
0
 public Task <MeetupResponse <Rsvp[]> > For(GetRsvpsRequest request)
 {
     return(MeetupRequestMethods.GetWithRequestAsync <Rsvp[]>($"{request.GroupName}/events/{request.EventId}/rsvps", _options, request));
 }