Exemplo n.º 1
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);
        }
Exemplo n.º 2
0
 public PoseTranslator(AdditionalActions additionalActions)
 {
     //This is just a frankly unnecesary wrapper
     this.Sensor            = KinectSensor.GetDefault();
     sourceTypes            = FrameSourceTypes.Color | FrameSourceTypes.Depth | FrameSourceTypes.Infrared | FrameSourceTypes.Body;
     this.additionalActions = additionalActions;
 }
Exemplo n.º 3
0
 public CamManager(FilterInfo deviceInfo, AdditionalActions onFrameActions)
 {
     this.device         = new VideoCaptureDevice(deviceInfo.MonikerString);
     this.onFrameActions = onFrameActions;
     device.NewFrame    += CaptureFrame;
 }
Exemplo n.º 4
0
 public void AddBuff(Buff buff)
 {
     buffs.Add(buff);
     AttackActions += buff.Effect;
     buff.OnAdd(this);
 }
Exemplo n.º 5
0
 public void RemoveBuff(Buff buff)
 {
     buffs.Remove(buff);
     AttackActions -= buff.Effect;
     buff.OnRemove(this);
 }