Made some improvements to the dietary preference handling, but CanteenOfferPageAdapter.kt still needs some work for the filtering to work properly; it should only filter out elements if they meet NO preferences!

This commit is contained in:
denizk0461
2023-04-18 15:39:49 +02:00
parent c385da4287
commit 4d9ad39578
12 changed files with 252 additions and 113 deletions
@@ -1,9 +1,11 @@
package com.denizk0461.studip.model
import androidx.room.ColumnInfo
//@Entity(tableName = "offers")
data class CanteenOffer(
// @PrimaryKey val id: Int,
val id: Int,
val itemId: Int,
val date: String,
val dateId: Int,
val category: String,
@@ -12,14 +14,5 @@ data class CanteenOffer(
val canteenId: Int,
val title: String,
val price: String, // price for students
val isFair: Boolean, // artgerechte Tierhaltung
val isFish: Boolean, // Fisch
val isPoultry: Boolean, // Geflügel
val isLamb: Boolean, // Lamm
val isVital: Boolean, // mensaVital
val isBeef: Boolean, // Rindfleisch
val isPork: Boolean, // Schweinefleisch
val isVegan: Boolean, // plant-based (vegan)
val isVegetarian: Boolean, // vegetarisch
val isGame: Boolean, // Wild
@ColumnInfo(name = "dietary_preferences") val dietaryPreferences: String,
)