-
Notifications
You must be signed in to change notification settings - Fork 4
Theme Regionale Wellness und Heilanwendungen
lukmay edited this page Dec 16, 2023
·
3 revisions
If an accommodation has the features listed below, the theme "Regionale Wellness" is added to the ThemeIds
.
-
Both are mandatory:
-
B5CFA063BEEB4631B7A0DE836030E2ED
- DE: Wellness
- EN: Wellness
- IT: Wellness
-
E72CE3544DA2475E97B9C034DA6F1595
- DE: Massagen
- EN: Massages
- IT: Massaggi
-
B5CFA063BEEB4631B7A0DE836030E2ED
-
One of the two is mandatory:
-
D417529377CB430389E07787D8A3A483
- DE: Sauna
- EN: Sauna
- IT: Sauna
-
5E57209D17244BA09A0400A498E549AE
- IT: Bagno turco
- DE: Dampfbad
- EN: Steam bath
-
D417529377CB430389E07787D8A3A483
-
One of the two is mandatory:
-
7BCAF604E17B46F2A2C6CAE70C5B621F
- DE: Hallenbad
- EN: Indoor pool
- IT: Piscina coperta
-
B2103635BD224E64A812FD2BF53C8DCA
- DE: Freibad
- EN: Outdoor pool
- IT: Piscina all’aperto
-
7BCAF604E17B46F2A2C6CAE70C5B621F
graph LR
A[Features needed for 'Regionale Wellness'] --> B[B5CFA063BEEB4631B7A0DE836030E2ED - Wellness]
A --> C[E72CE3544DA2475E97B9C034DA6F1595 - Massages]
A --> D
D{min. 1 of 2} --> E[D417529377CB430389E07787D8A3A483 - Sauna]
D --> F[5E57209D17244BA09A0400A498E549AE - Steam bath]
A --> G
G{min. 1 of 2} --> H[7BCAF604E17B46F2A2C6CAE70C5B621F - Indoor pool]
G --> I[B2103635BD224E64A812FD2BF53C8DCA - Outdoor pool]
Code:
Is implemented here.
if (myacco.Features != null)
{
var regionalewellness = myacco.Features.Where(x =>
x.Id == "B5CFA063BEEB4631B7A0DE836030E2ED" ||
x.Id == "E72CE3544DA2475E97B9C034DA6F1595" ||
x.Id == "D417529377CB430389E07787D8A3A483" ||
x.Id == "5E57209D17244BA09A0400A498E549AE" ||
x.Id == "7BCAF604E17B46F2A2C6CAE70C5B621F" ||
x.Id == "B2103635BD224E64A812FD2BF53C8DCA");
bool wellness1 = false;
bool wellness2 = false;
bool wellness3 = false;
bool wellness4 = false;
bool wellness5 = false;
bool wellness6 = false;
if (regionalewellness.Count() > 0)
{
foreach (var mywellness in regionalewellness)
{
if (mywellness.Id == "B5CFA063BEEB4631B7A0DE836030E2ED")
wellness1 = true;
if (mywellness.Id == "E72CE3544DA2475E97B9C034DA6F1595")
wellness2 = true;
if (mywellness.Id == "D417529377CB430389E07787D8A3A483")
wellness3 = true;
if (mywellness.Id == "5E57209D17244BA09A0400A498E549AE")
wellness4 = true;
if (mywellness.Id == "7BCAF604E17B46F2A2C6CAE70C5B621F")
wellness5 = true;
if (mywellness.Id == "B2103635BD224E64A812FD2BF53C8DCA")
wellness6 = true;
}
if (wellness1 && wellness2 && (wellness3 || wellness4) && (wellness5 || wellness6))
{
myacco.ThemeIds.Add("Regionale Wellness");
}
}
}
This wiki contains additional information about the Open Data Hub alongside the Open Data Hub - Official Documentation 🔗 .