private void GenerateParkingSpaces(ParkingSpaceType type, int quantity) { for (int i = 0; i < quantity; i++) { ParkingSpaces.Add(new ParkingSpace(type)); } }
public ParkingSpace(int id, ParkingSpaceType type, int?vehicleId) { Id = id; Type = type; PricePerHour = PricePerHour; VehicleId = vehicleId; }
public ParkingSpace allocateFreeSpace(ParkingSpaceType pspaceType) { //get a ParkingSpace from the corresponding free list ParkingSpace pspace = ParkingSpace.defalultNonImplemented; pspace.setStart(); return(pspace); }
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; }
public ParkingSpace(int id, ParkingSpaceType pspaceType) { //super(); this.id = id; this.pspaceType = pspaceType; }
public ParkingSpace(ParkingSpaceType type) { Type = type; }
public ParkingSpaceResponse(int id, ParkingSpaceType type) { Id = id; Type = type; }