Ejemplo n.º 1
0
 public SlimAccommodationData(string htId, string name, string countryName, string localityName, string localityZoneName, string address, AccommodationRatings rating)
 {
     HtId             = htId ?? string.Empty;
     Name             = name ?? string.Empty;
     CountryName      = countryName ?? string.Empty;
     LocalityName     = localityName;
     LocalityZoneName = localityZoneName;
     Address          = address ?? string.Empty;;
     Rating           = rating;
 }
Ejemplo n.º 2
0
 public AvailabilityRequest(string nationality, string residency, DateTime checkInDate, DateTime checkOutDate,
                            ClientSearchFilters filters, List <RoomOccupationRequest> roomDetails, AccommodationRatings ratings,
                            PropertyTypes propertyTypes = default, List <string> htIds = null)
 {
     CheckInDate  = checkInDate;
     CheckOutDate = checkOutDate;
     Filters      = filters;
     Nationality  = nationality;
     PropertyType = propertyTypes;
     Ratings      = ratings;
     Residency    = residency;
     RoomDetails  = roomDetails ?? new List <RoomOccupationRequest>();
     HtIds        = htIds ?? new List <string>();
 }
 public AvailabilityRequest(string nationality, string residency, DateTime checkInDate, DateTime checkOutDate,
                            SearchFilters filters, List <RoomOccupationRequest> rooms, PropertyTypes propertyTypes,
                            AccommodationRatings ratings, List <string> accommodationIds)
 {
     CheckInDate      = checkInDate;
     CheckOutDate     = checkOutDate;
     Filters          = filters;
     Nationality      = nationality;
     PropertyTypes    = propertyTypes;
     Ratings          = ratings;
     AccommodationIds = accommodationIds;
     Residency        = residency;
     Rooms            = rooms ?? new List <RoomOccupationRequest>(0);
 }
Ejemplo n.º 4
0
 public AvailabilityRequest(string nationality, string residency, DateTime checkInDate, DateTime checkOutDate,
                            SearchFilters filters, List <RoomOccupationRequest> roomDetails, AccommodationRatings ratings,
                            SearchLocation location = default, PropertyTypes propertyTypes = default, SearchInfo searchInfo = default)
 {
     CheckInDate  = checkInDate;
     CheckOutDate = checkOutDate;
     Filters      = filters;
     Location     = location;
     Nationality  = nationality;
     PropertyType = propertyTypes;
     Ratings      = ratings;
     Residency    = residency;
     RoomDetails  = roomDetails ?? new List <RoomOccupationRequest>();
     SearchInfo   = searchInfo;
 }
Ejemplo n.º 5
0
 private static EdoContractsRatings GetRating(AccommodationRatings rating)
 => rating switch
 {
Ejemplo n.º 6
0
 public Accommodation(string id, string name, List <string> accommodationAmenities, Dictionary <string, string>?additionalInfo,
                      string?category, ContactInfo contacts, LocationInfo location, List <ImageInfo>?photos, AccommodationRatings rating,
                      in ScheduleInfo schedule, List <TextualDescription>?textualDescriptions, PropertyTypes type,