First version with flat picker

This commit is contained in:
Niklas Meinzer
2024-05-20 16:25:02 +02:00
parent 6b6876fdf6
commit 60b3efa1f8
3 changed files with 88 additions and 24 deletions

34
src/Data.js Normal file
View File

@@ -0,0 +1,34 @@
class Flat {
constructor(name, numRooms, sizePrivate, isWbs = false, isAccessible = false) {
this.name = name;
this.numRooms = numRooms;
this.sizePrivate = sizePrivate;
this.isWbs = isWbs;
}
print() {
return this.name + " (" + this.numRooms + " Zimmer)";
}
}
export const flatData = {
"north": {
},
"south": {
0: [
new Flat("W 0.4", 2, 55.9, true),
new Flat("W 0.5", 4, 84.6, true),
new Flat("W 0.6", 5, 95.8, true),
],
1: [
new Flat("W 1.4", 2, 55.7),
new Flat("W 1.6.0", 1, 25.6),
new Flat("W 1.6", 5, 95.7),
],
2: [
new Flat("W 2.5", 2, 55.8),
new Flat("W 2.6", 4, 84.6, true),
new Flat("W 2.7", 5, 95.7)
]
}
}