[9ff45d6] | 1 | package parkup.data;
|
---|
| 2 |
|
---|
| 3 | import parkup.entities.ParkingSpace;
|
---|
[df4089c] | 4 | import parkup.entities.ParkingZone;
|
---|
[9ff45d6] | 5 |
|
---|
| 6 | import java.util.List;
|
---|
| 7 |
|
---|
| 8 | public class ParkingZoneAdminView {
|
---|
| 9 | private int pzId;
|
---|
| 10 | private String pzName;
|
---|
| 11 | private int price;
|
---|
[df4089c] | 12 | private int from;
|
---|
| 13 | private int to;
|
---|
[9ff45d6] | 14 | private String address;
|
---|
| 15 | private String color;
|
---|
| 16 | private List<ParkingSpace> parkingSpaces;
|
---|
| 17 | private ParkingZoneLocation parkingZoneLocation;
|
---|
[df4089c] | 18 | private List<WorkerDemo> responsibleWorkers;
|
---|
| 19 |
|
---|
| 20 | public ParkingZoneAdminView(ParkingZone pz,List<WorkerDemo> responsibleWorkers) {
|
---|
| 21 | this.pzId = pz.getId();
|
---|
| 22 | this.pzName = pz.getPzName();
|
---|
| 23 | this.price = pz.getPrice();
|
---|
| 24 | this.from = pz.getFrom();
|
---|
| 25 | this.to = pz.getTo();
|
---|
| 26 | this.address = pz.getAddress();
|
---|
| 27 | this.color = pz.getColor();
|
---|
| 28 | this.parkingSpaces = pz.getParkingSpaces();
|
---|
| 29 | this.parkingZoneLocation = pz.getParkingZoneLocation();
|
---|
[9dd526f] | 30 | this.responsibleWorkers = responsibleWorkers;
|
---|
[9ff45d6] | 31 | }
|
---|
| 32 |
|
---|
| 33 | public ParkingZoneAdminView() {}
|
---|
| 34 |
|
---|
[df4089c] | 35 |
|
---|
| 36 |
|
---|
[9ff45d6] | 37 | public int getPzId() {
|
---|
| 38 | return pzId;
|
---|
| 39 | }
|
---|
| 40 |
|
---|
| 41 | public void setPzId(int pzId) {
|
---|
| 42 | this.pzId = pzId;
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 | public String getPzName() {
|
---|
| 46 | return pzName;
|
---|
| 47 | }
|
---|
| 48 |
|
---|
| 49 | public void setPzName(String pzName) {
|
---|
| 50 | this.pzName = pzName;
|
---|
| 51 | }
|
---|
| 52 |
|
---|
| 53 | public int getPrice() {
|
---|
| 54 | return price;
|
---|
| 55 | }
|
---|
| 56 |
|
---|
| 57 | public void setPrice(int price) {
|
---|
| 58 | this.price = price;
|
---|
| 59 | }
|
---|
| 60 |
|
---|
[df4089c] | 61 | public int getFrom() {
|
---|
| 62 | return from;
|
---|
[9ff45d6] | 63 | }
|
---|
| 64 |
|
---|
[df4089c] | 65 | public void setFrom(int from) {
|
---|
| 66 | this.from = from;
|
---|
[9ff45d6] | 67 | }
|
---|
| 68 |
|
---|
[df4089c] | 69 | public int getTo() {
|
---|
| 70 | return to;
|
---|
[9ff45d6] | 71 | }
|
---|
| 72 |
|
---|
[df4089c] | 73 | public void setTo(int to) {
|
---|
| 74 | this.to = to;
|
---|
[9ff45d6] | 75 | }
|
---|
| 76 |
|
---|
| 77 | public String getAddress() {
|
---|
| 78 | return address;
|
---|
| 79 | }
|
---|
| 80 |
|
---|
| 81 | public void setAddress(String address) {
|
---|
| 82 | this.address = address;
|
---|
| 83 | }
|
---|
| 84 |
|
---|
| 85 | public String getColor() {
|
---|
| 86 | return color;
|
---|
| 87 | }
|
---|
| 88 |
|
---|
| 89 | public void setColor(String color) {
|
---|
| 90 | this.color = color;
|
---|
| 91 | }
|
---|
| 92 |
|
---|
| 93 | public List<ParkingSpace> getParkingSpaces() {
|
---|
| 94 | return parkingSpaces;
|
---|
| 95 | }
|
---|
| 96 |
|
---|
| 97 | public void setParkingSpaces(List<ParkingSpace> parkingSpaces) {
|
---|
| 98 | this.parkingSpaces = parkingSpaces;
|
---|
| 99 | }
|
---|
| 100 |
|
---|
| 101 | public ParkingZoneLocation getParkingZoneLocation() {
|
---|
| 102 | return parkingZoneLocation;
|
---|
| 103 | }
|
---|
| 104 |
|
---|
| 105 | public void setParkingZoneLocation(ParkingZoneLocation parkingZoneLocation) {
|
---|
| 106 | this.parkingZoneLocation = parkingZoneLocation;
|
---|
| 107 | }
|
---|
| 108 |
|
---|
[df4089c] | 109 | public List<WorkerDemo> getResponsibleWorkers() {
|
---|
[9dd526f] | 110 | return responsibleWorkers;
|
---|
[9ff45d6] | 111 | }
|
---|
| 112 |
|
---|
[df4089c] | 113 | public void setResponsibleWorkers(List<WorkerDemo> responsibleWorkers) {
|
---|
[9dd526f] | 114 | this.responsibleWorkers = responsibleWorkers;
|
---|
[9ff45d6] | 115 | }
|
---|
| 116 | }
|
---|