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() )); }
public static string Booking(this CoralClient client, CoralBookingParameters parameters) { return(client.MakeRequest( CoralBookingClient.ENDPOINT, HttpMethod.Post, query: parameters.GetQueryString(), body: parameters.GetPostBody() ).Result); }
public static string HotelAvailability(this CoralClient client, CoralHotelAvailabilityParameters parameters) { return(client.MakeRequest( CoralHotelAvailabilityClient.ENDPOINT, HttpMethod.Get, query: parameters.GetQueryString() ).Result); }
public static async Task <string> HotelAvailabilityAsync(this CoralClient client, CoralHotelAvailabilityParameters parameters) { return(await client.MakeRequest( CoralHotelAvailabilityClient.ENDPOINT, HttpMethod.Get, query : parameters.GetQueryString() )); }
public static string Cancel(this CoralClient client, CoralCancellationParameters parameters) { return(client.MakeRequest( CoralCancellationClient.ENDPOINT, HttpMethod.Post, query: parameters.GetQueryString() ).Result); }
public static async Task <string> CancelAsync(this CoralClient client, CoralCancellationParameters parameters) { return(await client.MakeRequest( CoralCancellationClient.ENDPOINT, HttpMethod.Post, query : parameters.GetQueryString() )); }
public static string GetBookings(this CoralClient client, CoralBookingsParameters parameters) { return(client.MakeRequest( CoralBookingsClient.ENDPOINT, HttpMethod.Get, query: parameters.GetQueryString() ).Result); }