Archived
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:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user