public Payment(DateTime pd, int p, string pm, string pt, SeasonPass sp) { purchaseDate = pd; price = p; paymentMode = pm; //credit, visa purchaseType = pt; // type of trasaction - SeasonPass - Car, SeasonPass - Motorbike, SeasonPass - Lorry sp.AddPayment(this); }
//---constructor--- public Vehicle(int id, string lp, string vt, string iun, User carOwner) { vehicleID = id; licensePlate = lp; vehicleType = vt; iuNumber = iun; vehicleSeasonPass = null; userVehicle = carOwner; carOwner.RegisterVehicle(this); offences = new List <string>(); vehicleParkingList = new List <ParkingSession>(); }
public RejectedState(SeasonPass sp) { vsp = sp; }
public ExpiredState(SeasonPass sp) { vsp = sp; }
public TerminatedState(SeasonPass sp) { vsp = sp; }
public PendingState(SeasonPass sp) { vsp = sp; }
public ValidState(SeasonPass sp) { vsp = sp; }