public Slice(JToken jSlice)
            : this()
        {
            Origin = (string)jSlice["origin"];
            Destination = (string)jSlice["destination"];
            Date = (string)jSlice["date"];
            MaxStops = (int?)jSlice["maxStops"];
            MaxConnectionDuration = (int?)jSlice["maxConnectionDuration"];
            PrefferedCabin = (string)jSlice["prefferedCabin"];
            Alliance = (string)jSlice["alliance"];
            PermittedCarrier = (string)jSlice["permittedCarrier"];

            JToken jpermittedDepartureTime = jSlice["permittedDepartureTime"];

            if(jpermittedDepartureTime != null)
                PermittedDepartureTime = new PermittedDepartureTime(jpermittedDepartureTime);
        }
 public Slice(
     PermittedDepartureTime permittedDepartureTime,
     string permittedCarrier, string alliance,
     string prefferedCabin, int maxConnectionDuration,
     int maxStops, string date, string destination,
     string origin, string kind)
     : this()
 {
     PermittedDepartureTime = permittedDepartureTime;
     PermittedCarrier = permittedCarrier;
     Alliance = alliance;
     PrefferedCabin = prefferedCabin;
     MaxConnectionDuration = maxConnectionDuration;
     MaxStops = maxStops;
     Date = date;
     Destination = destination;
     Origin = origin;
     Kind = kind;
 }
        public Slice()
        {
            Kind = "qpxexpress#sliceInput";

            PermittedDepartureTime = new PermittedDepartureTime();
        }