Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 1.05 KB

README.md

File metadata and controls

44 lines (37 loc) · 1.05 KB

mss-dotnet

MSS API wrapper for .NET projects

NuGet

Warning! Do not use this in production yet! Supports only v2.0!

Available services

  • getHotelList
  • getSpecialList
  • getRoomList
  • getPriceList
  • getRoomAvailability
  • getHotelPictures
  • prepareBooking
  • getBooking
  • createInquiry
  • getUserSources

Example

var settings = new MssClientSettings("username", "password", "source");
using (var client = new MssClient(settings))
{
    var response = await client.SendRequest(request =>
    {
        request.Header.Method = HeaderMethods.GetHotelList;
        request.Request.Search = new Search
        {
            Ids = new string[] { "9000" },
            Lang = Languages.German,
        };
        request.Request.Options = new Options
        {
            HotelDetails = (int) (HotelDetails.BasicInfo | PaymentOptionsForOnlineBooking.Themes),
        };
        return request;
    });
}