예제 #1
0
 public static async Task <string> BookingAsync(this CoralClient client, CoralBookingParameters parameters)
 {
     return(await client.MakeRequest(
                CoralBookingClient.ENDPOINT, HttpMethod.Post,
                query : parameters.GetQueryString(), body : parameters.GetPostBody()
                ));
 }
예제 #2
0
 public static string Booking(this CoralClient client, CoralBookingParameters parameters)
 {
     return(client.MakeRequest(
                CoralBookingClient.ENDPOINT, HttpMethod.Post,
                query: parameters.GetQueryString(), body: parameters.GetPostBody()
                ).Result);
 }
예제 #3
0
 public static string HotelAvailability(this CoralClient client, CoralHotelAvailabilityParameters parameters)
 {
     return(client.MakeRequest(
                CoralHotelAvailabilityClient.ENDPOINT, HttpMethod.Get, query: parameters.GetQueryString()
                ).Result);
 }
예제 #4
0
 public static async Task <string> HotelAvailabilityAsync(this CoralClient client, CoralHotelAvailabilityParameters parameters)
 {
     return(await client.MakeRequest(
                CoralHotelAvailabilityClient.ENDPOINT, HttpMethod.Get, query : parameters.GetQueryString()
                ));
 }
예제 #5
0
 public static string Cancel(this CoralClient client, CoralCancellationParameters parameters)
 {
     return(client.MakeRequest(
                CoralCancellationClient.ENDPOINT, HttpMethod.Post, query: parameters.GetQueryString()
                ).Result);
 }
예제 #6
0
 public static async Task <string> CancelAsync(this CoralClient client, CoralCancellationParameters parameters)
 {
     return(await client.MakeRequest(
                CoralCancellationClient.ENDPOINT, HttpMethod.Post, query : parameters.GetQueryString()
                ));
 }
예제 #7
0
 public static string GetBookings(this CoralClient client, CoralBookingsParameters parameters)
 {
     return(client.MakeRequest(
                CoralBookingsClient.ENDPOINT, HttpMethod.Get, query: parameters.GetQueryString()
                ).Result);
 }