Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Ingredient(val id: String = UUID.randomUUID().toString(), val name: String, var isSelected: MutableState<Boolean> = mutableStateOf(false), val filePath: String = "file:///android_asset/default-ingredient.png")

data class to represent the ingredients in the fridge

Link copied to clipboard
@Serializable(with = Meal.Serializer::class)
data class Meal(val idMeal: String, val strMeal: String, val strMealAlternate: String? = null, val strCategory: String? = null, val strArea: String? = null, val strInstructions: String? = null, val strMealThumb: String? = null, val strTags: String? = null, val strYoutube: String? = null, val ingredients: MutableList<String>? = null, val measures: List<String>? = null, val strSource: String? = null, val strImageSource: String? = null, val strCreativeCommonsConfirmed: String? = null, val dateModified: String? = null)

a representation of the json response from the API a lot of the main properties are listed

Link copied to clipboard
data class MealOption(val name: String, var isChosen: MutableState<Boolean> = mutableStateOf(false))

data class to describe the type of restrictions that user may want to impose

Link copied to clipboard
@Serializable
data class MealResponse(val meals: List<Meal>?)
Link copied to clipboard
Link copied to clipboard

enum so that com.sonnenstahl.recime.Recipes can know what type of API request to commit

Properties

Link copied to clipboard
val EXCLUDED_NAMES: <Error class: unknown class>
Link copied to clipboard

a set of most of the ingredients I can think of and will be used for adding ingredients and as reference for all the icons that ReciMe has

Link copied to clipboard
val MEAL_TYPE_OPTION: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val VEGGIES: <Error class: unknown class>

Functions

Link copied to clipboard
fun disableAllButVegan(meatOptions: List<MealOption>): <Error class: unknown class>
Link copied to clipboard
fun disableMeat(meatOptions: List<MealOption>): <Error class: unknown class>
Link copied to clipboard
fun disableVegan(meatOptions: List<MealOption>): <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard