using DateRangeViewModels = SepehrFlightApiSampleClient.Availability.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,
            DateRangeViewModels.Flight selectedReturningFlight,
            DateRangeViewModels.FlightClass selectedReturningFlightClass)
        {
            return FactoryBasedOnDateRangeResult.Create(
                selectedDepartureFlight,
                selectedDepartureFlightClass,
                selectedReturningFlight,
                selectedReturningFlightClass);
        }

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