import { IFlightContract } from './flight.contract';
import { ILegContract } from './leg.contract';
import { FlightStatusLegacy, RouteTypeLegacy } from '../../enumerators/';

export interface IRouteContract extends IFlightContract {
    routeType: RouteTypeLegacy;
    status: FlightStatusLegacy;
}

export interface IDirectFlight extends IRouteContract {
    leg: ILegContract;
}

export interface IMultiFlight extends IRouteContract {
    legs: ILegContract[];
}

export interface IConnectingFlight extends IRouteContract {
    flights: (IDirectFlight | IMultiFlight)[];
}
