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

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