Esempio n. 1
0
 private void GenerateParkingSpaces(ParkingSpaceType type, int quantity)
 {
     for (int i = 0; i < quantity; i++)
     {
         ParkingSpaces.Add(new ParkingSpace(type));
     }
 }
Esempio n. 2
0
 public ParkingSpace(int id, ParkingSpaceType type, int?vehicleId)
 {
     Id           = id;
     Type         = type;
     PricePerHour = PricePerHour;
     VehicleId    = vehicleId;
 }
Esempio n. 3
0
        public ParkingSpace allocateFreeSpace(ParkingSpaceType pspaceType)
        {
            //get a ParkingSpace from the corresponding free list
            ParkingSpace pspace = ParkingSpace.defalultNonImplemented;

            pspace.setStart();
            return(pspace);
        }
Esempio n. 4
0
 public Sprite GetParkingLotIcon(ParkingSpaceType type)
 {
     if (parkingLotIconLookup.ContainsKey(type))
     {
         return(parkingLotIcons[parkingLotIconLookup[type]]);
     }
     return(parkingLotIcons[0]);
 }
Esempio n. 5
0
 public ParkingSpace(int spaceNum, ParkingSpaceType spaceType)
 {
     SpaceNumber = spaceNum;
     SpaceType   = spaceType;
 }
Esempio n. 6
0
 public ParkingSpace(int id, ParkingSpaceType pspaceType)
 {
     //super();
     this.id         = id;
     this.pspaceType = pspaceType;
 }
Esempio n. 7
0
 public ParkingSpace(ParkingSpaceType type)
 {
     Type = type;
 }
Esempio n. 8
0
 public ParkingSpaceResponse(int id, ParkingSpaceType type)
 {
     Id   = id;
     Type = type;
 }