C# Class TheAirline.Models.Passengers.FlightRestrictions

Exibir arquivo Open project: TheAirlineProject/tap-desktop

Public Methods

Method Description
AddRestriction ( FlightRestriction restriction ) : void
Clear ( ) : void
GetRestrictions ( ) : List
HasRestriction ( Airline airline, Country dest1, Country dest2, System.DateTime date ) : bool
HasRestriction ( Country country1, Country country2, System.DateTime date ) : bool
HasRestriction ( Country from, Country to, System.DateTime date, FlightRestriction type ) : bool

Method Details

AddRestriction() public static method

public static AddRestriction ( FlightRestriction restriction ) : void
restriction FlightRestriction
return void

Clear() public static method

public static Clear ( ) : void
return void

GetRestrictions() public static method

public static GetRestrictions ( ) : List
return List

HasRestriction() public static method

public static HasRestriction ( Airline airline, Country dest1, Country dest2, System.DateTime date ) : bool
airline TheAirline.Models.Airlines.Airline
dest1 TheAirline.Models.General.Countries.Country
dest2 TheAirline.Models.General.Countries.Country
date System.DateTime
return bool

HasRestriction() public static method

public static HasRestriction ( Country country1, Country country2, System.DateTime date ) : bool
country1 TheAirline.Models.General.Countries.Country
country2 TheAirline.Models.General.Countries.Country
date System.DateTime
return bool

HasRestriction() public static method

public static HasRestriction ( Country from, Country to, System.DateTime date, FlightRestriction type ) : bool
from TheAirline.Models.General.Countries.Country
to TheAirline.Models.General.Countries.Country
date System.DateTime
type FlightRestriction
return bool