public AncillaryServicesSearchResult()
 {
     Services = new AncillaryServices <AncillaryServiceRS>();
     Prices   = new AncillaryServicesPrices();
 }
Esempio n. 2
0
        public BookFlightRQBody Clone()
        {
            var result = new BookFlightRQBody();

            result.FlightID = FlightID;

            if (Travellers != null)
            {
                result.Travellers = new TravellerList(Travellers.Select(t => t.Copy()));
            }

            if (DataItems != null)
            {
                result.DataItems = new PNRDataItemList(DataItems.Select(di => di.Copy()));
            }

            result.AdditionalActions = AdditionalActions?.Copy();
            result.PricingOptions    = PricingOptions?.Clone();

            if (AncillaryServices != null)
            {
                result.AncillaryServices = new AncillaryServices <AncillaryServiceRQ>(AncillaryServices.Select(s => s.Copy()));
            }

            if (RequestorTags != null)
            {
                result.RequestorTags = new TagList(RequestorTags);
            }

            result.RefererID = RefererID;

            return(result);
        }