Пример #1
0
        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);
        }
Пример #2
0
 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;
 }
Пример #3
0
        public Slice()
        {
            Kind = "qpxexpress#sliceInput";

            PermittedDepartureTime = new PermittedDepartureTime();
        }