Exemplo n.º 1
0
        public Task <MeetupResponse <Venue[]> > Recommended(RecommendedVenuesRequest request)
        {
            if (!string.IsNullOrWhiteSpace(request?.Country) && request.Country.Length != 2)
            {
                throw new ArgumentOutOfRangeException(nameof(request), "Country must be a 2 character code");
            }

            return(Recommended(request ?? MeetupRequest.FieldsOnly("taglist")));
        }
Exemplo n.º 2
0
 public Task <MeetupResponse <Venue[]> > Recommended()
 {
     return(Recommended(MeetupRequest.FieldsOnly("taglist")));
 }
Exemplo n.º 3
0
        public Task <MeetupResponse <Group> > Get(string groupName, string[] fields)
        {
            if (string.IsNullOrWhiteSpace(groupName))
            {
                throw new ArgumentNullException(nameof(groupName));
            }

            return(MeetupRequestMethods.GetWithRequestAsync <Group>($"/{groupName}", _options, MeetupRequest.FieldsOnly(fields)));
        }