コード例 #1
0
        public static async Task <ResponseWrapper <InfoResponse> > GetAsync(this SearchBeerEndpoint endpoint)
        {
            string url = endpoint.GenerateUrl();

            Info info = new Info();

            HttpResponseMessage responseMesage = await endpoint.Service.Client.GetAsync(url);

            string json = await responseMesage.Content.ReadAsStringAsync();

            ResponseWrapper <InfoResponse> checkinsResponseWrapper = JsonConvert.DeserializeObject <ResponseWrapper <InfoResponse> >(json);

            return(checkinsResponseWrapper);
        }
コード例 #2
0
 public static SearchBeerEndpoint Compact(this SearchBeerEndpoint endpoint, bool compact = true)
 {
     endpoint.Compact = compact;
     return(endpoint);
 }