C# Class TheAirline.Helpers.AirlineInsuranceHelpers

显示文件 Open project: TheAirlineProject/tap-desktop

Public Methods

Method Description
CheckExpiredInsurance ( Airline airline ) : void
CreatePolicy ( Airline airline, AirlineInsurance type, AirlineInsurance scope, AirlineInsurance terms, bool allAirliners, double length, int amount ) : AirlineInsurance
FileInsuranceClaim ( Airline airline, AirlineInsurance policy, int damage ) : void
FileInsuranceClaim ( Airline airline, Airport airport, int damage ) : void
FileInsuranceClaim ( Airline airline, FleetAirliner airliner, Airport airport, int damage ) : void
FileInsuranceClaim ( Airline airline, FleetAirliner airliner, int damage ) : void
GetRatingModifier ( Airline airline ) : double
MakeInsurancePayment ( Airline airline ) : void
ModifyPolicy ( Airline airline, string index, AirlineInsurance newPolicy ) : void
ReceiveInsurancePayout ( Airline airline, AirlineInsurance policy, InsuranceClaim claim ) : void

Method Details

CheckExpiredInsurance() public static method

public static CheckExpiredInsurance ( Airline airline ) : void
airline TheAirline.Models.Airlines.Airline
return void

CreatePolicy() public static method

public static CreatePolicy ( Airline airline, AirlineInsurance type, AirlineInsurance scope, AirlineInsurance terms, bool allAirliners, double length, int amount ) : AirlineInsurance
airline TheAirline.Models.Airlines.Airline
type TheAirline.Models.Airlines.AirlineInsurance
scope TheAirline.Models.Airlines.AirlineInsurance
terms TheAirline.Models.Airlines.AirlineInsurance
allAirliners bool
length double
amount int
return TheAirline.Models.Airlines.AirlineInsurance

FileInsuranceClaim() public static method

public static FileInsuranceClaim ( Airline airline, AirlineInsurance policy, int damage ) : void
airline TheAirline.Models.Airlines.Airline
policy TheAirline.Models.Airlines.AirlineInsurance
damage int
return void

FileInsuranceClaim() public static method

public static FileInsuranceClaim ( Airline airline, Airport airport, int damage ) : void
airline TheAirline.Models.Airlines.Airline
airport TheAirline.Models.Airports.Airport
damage int
return void

FileInsuranceClaim() public static method

public static FileInsuranceClaim ( Airline airline, FleetAirliner airliner, Airport airport, int damage ) : void
airline TheAirline.Models.Airlines.Airline
airliner TheAirline.Models.Airliners.FleetAirliner
airport TheAirline.Models.Airports.Airport
damage int
return void

FileInsuranceClaim() public static method

public static FileInsuranceClaim ( Airline airline, FleetAirliner airliner, int damage ) : void
airline TheAirline.Models.Airlines.Airline
airliner TheAirline.Models.Airliners.FleetAirliner
damage int
return void

GetRatingModifier() public static method

public static GetRatingModifier ( Airline airline ) : double
airline TheAirline.Models.Airlines.Airline
return double

MakeInsurancePayment() public static method

public static MakeInsurancePayment ( Airline airline ) : void
airline TheAirline.Models.Airlines.Airline
return void

ModifyPolicy() public static method

public static ModifyPolicy ( Airline airline, string index, AirlineInsurance newPolicy ) : void
airline TheAirline.Models.Airlines.Airline
index string
newPolicy TheAirline.Models.Airlines.AirlineInsurance
return void

ReceiveInsurancePayout() public static method

public static ReceiveInsurancePayout ( Airline airline, AirlineInsurance policy, InsuranceClaim claim ) : void
airline TheAirline.Models.Airlines.Airline
policy TheAirline.Models.Airlines.AirlineInsurance
claim TheAirline.Models.Airlines.InsuranceClaim
return void