TempStorage

class used to minimise GET requests to the API and efficiently pass variables between views

Properties

Link copied to clipboard
val chosenMeal: <Error class: unknown class>
Link copied to clipboard
val chosenMealImg: <Error class: unknown class>
Link copied to clipboard
val ingredients: <Error class: unknown class>
Link copied to clipboard
val mealOptions: <Error class: unknown class>
Link copied to clipboard
val meatOptions: <Error class: unknown class>
Link copied to clipboard
val suggestedMealImages: <Error class: unknown class>
Link copied to clipboard
val suggestedMeals: <Error class: unknown class>

Functions

Link copied to clipboard

remove the suggested meals and their images

Link copied to clipboard

set it in the cache to not have to load it again going from com.sonnenstahl.recime.Recipes to com.sonnenstahl.recime.Recipe

Link copied to clipboard
fun updateChosenMealImage(image: <Error class: unknown class>?)

set it in the cache to not have to load it again going from com.sonnenstahl.recime.Recipes to com.sonnenstahl.recime.Recipe

Link copied to clipboard
fun updateIngredients(ingredients: List<String>)

update the ingredients to be searched for

Link copied to clipboard

update the meal options going

Link copied to clipboard

update the meat options going

Link copied to clipboard
fun updateSuggestedMealImages(images: List<<Error class: unknown class>?>)

set it in the cache to not have to load it again going from com.sonnenstahl.recime.Recipes to com.sonnenstahl.recime.Recipe

Link copied to clipboard

set it in the cache to not have to load it again going from com.sonnenstahl.recime.Recipes to com.sonnenstahl.recime.Recipe