Fully documented all Kotlin files and added TODOs to functions that need to be updated in some way

This commit is contained in:
denizk0461
2023-04-23 11:57:03 +02:00
parent 2534849329
commit fbad84aa09
33 changed files with 1220 additions and 571 deletions
@@ -2,9 +2,25 @@ package com.denizk0461.studip.model
import androidx.room.ColumnInfo
//@Entity(tableName = "offers")
/**
* Entity that is constructed by combining instances of OfferItem.kt (itemId, title, price,
* dietaryPreferences), OfferCategory.kt (category, categoryId), OfferCanteen.kt (canteen,
* canteenId), and OfferDate.kt (date, dateId) to be used as a data type for a custom RecyclerView
* adapter class.
*
* @param itemId unique identifier of the item
* @param date date formatted as dd.MM.
* @param dateId ID of the corresponding OfferDate.kt instance
* @param category category text content of the item
* @param categoryId ID of the corresponding OfferCategory.kt instance
* @param canteen name of the canteen
* @param canteenId ID of the corresponding OfferCanteen.kt instance
* @param title text content of the individual canteen offer
* @param price students' price for the individual canteen offer
* @param dietaryPreferences dietary preferences used to filter for the user's needs - see
* DietaryPrefObject.kt
*/
data class CanteenOffer(
// @PrimaryKey val id: Int,
val itemId: Int,
val date: String,
val dateId: Int,
@@ -13,6 +29,6 @@ data class CanteenOffer(
val canteen: String,
val canteenId: Int,
val title: String,
val price: String, // price for students
val price: String,
@ColumnInfo(name = "dietary_preferences") val dietaryPreferences: String,
)