예제 #1
0
        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);
        }
예제 #2
0
        //---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>();
        }
예제 #3
0
 public RejectedState(SeasonPass sp)
 {
     vsp = sp;
 }
예제 #4
0
 public ExpiredState(SeasonPass sp)
 {
     vsp = sp;
 }
예제 #5
0
 public TerminatedState(SeasonPass sp)
 {
     vsp = sp;
 }
예제 #6
0
 public PendingState(SeasonPass sp)
 {
     vsp = sp;
 }
예제 #7
0
 public ValidState(SeasonPass sp)
 {
     vsp = sp;
 }