Remove unused fields

This commit is contained in:
Kirill Kamakin
2022-10-30 12:44:33 +01:00
parent 9ed229f20f
commit 31ccf8822d
12 changed files with 390 additions and 256 deletions

View File

@@ -3,44 +3,21 @@ package gq.kirmanak.mealient.data.add
data class AddRecipeInfo(
val name: String = "",
val description: String = "",
val image: String = "",
val recipeYield: String = "",
val recipeIngredient: List<AddRecipeIngredientInfo> = emptyList(),
val recipeInstructions: List<AddRecipeInstructionInfo> = emptyList(),
val slug: String = "",
val filePath: String = "",
val tags: List<String> = emptyList(),
val categories: List<String> = emptyList(),
val notes: List<AddRecipeNoteInfo> = emptyList(),
val extras: Map<String, String> = emptyMap(),
val assets: List<String> = emptyList(),
val settings: AddRecipeSettingsInfo = AddRecipeSettingsInfo(),
)
data class AddRecipeSettingsInfo(
val disableAmount: Boolean = true,
val disableComments: Boolean = false,
val landscapeView: Boolean = true,
val public: Boolean = true,
val showAssets: Boolean = true,
val showNutrition: Boolean = true,
)
data class AddRecipeNoteInfo(
val title: String = "",
val text: String = "",
)
data class AddRecipeIngredientInfo(
val disableAmount: Boolean = true,
val food: String? = null,
val note: String = "",
val quantity: Int = 1,
val title: String? = null,
val unit: String? = null,
)
data class AddRecipeInstructionInfo(
val title: String = "",
val text: String = "",
)

View File

@@ -1,34 +1,17 @@
package gq.kirmanak.mealient.data.recipes.network
import kotlinx.datetime.LocalDate
import kotlinx.datetime.LocalDateTime
data class FullRecipeInfo(
val remoteId: String,
val name: String,
val slug: String,
val image: String?,
val description: String,
val recipeCategories: List<String>,
val tags: List<String>,
val rating: Int?,
val dateAdded: LocalDate,
val dateUpdated: LocalDateTime,
val recipeYield: String,
val recipeIngredients: List<RecipeIngredientInfo>,
val recipeInstructions: List<RecipeInstructionInfo>,
)
data class RecipeIngredientInfo(
val title: String,
val note: String,
val unit: String,
val food: String,
val disableAmount: Boolean,
val quantity: Double,
)
data class RecipeInstructionInfo(
val title: String,
val text: String,
)