using DateRangeViewModels = SepehrFlightApiSampleClient.BulkAvailability.WinForms.DateRange.ViewModels;
using SearchByRouteAndDateViewModels = SepehrFlightApiSampleClient.Availability.WinForms.SearchByRouteAndDate.ViewModels;

namespace SepehrFlightApiSampleClient.Booking.WinForms.Book.BookCommand.Factory
{
    public class CommandFactory
    {
        public static Command Create(
            DateRangeViewModels.Flight selectedDepartureFlight,
            DateRangeViewModels.FlightClass selectedDepartureFlightClass,
            int? departureLockId,
            DateRangeViewModels.Flight selectedReturningFlight,
            DateRangeViewModels.FlightClass selectedReturningFlightClass,
            int? returningLockId)
        {
            return FactoryBasedOnDateRangeResult.Create(
                selectedDepartureFlight,
                selectedDepartureFlightClass,
                departureLockId,
                selectedReturningFlight,
                selectedReturningFlightClass,
                returningLockId);
        }

        public static Command Create(
            SearchByRouteAndDateViewModels.Flight selectedDepartureFlight,
            SearchByRouteAndDateViewModels.FlightClass selectedDepartureFlightClass,
            int? departureLockId,
            SearchByRouteAndDateViewModels.Flight selectedReturningFlight,
            SearchByRouteAndDateViewModels.FlightClass selectedReturningFlightClass,
            int? returningLockId)
        {
            return FactoryBasedOnSearchByRouteAndDateResult.Create(
                selectedDepartureFlight,
                selectedDepartureFlightClass,
                departureLockId,
                selectedReturningFlight,
                selectedReturningFlightClass,
                returningLockId);
        }
    }
}
