dbRecipe

data class dbRecipe(val localId: Long, val serverId: String? = null, val slug: String, val title: String, val ingredients: List<String>, val optionalIngredients: List<String>, val herbs: List<String>, val steps: List<String>, val image: String?)

Represents a "recipe" in the database.

Constructors

Link copied to clipboard
constructor(localId: Long, serverId: String? = null, slug: String, title: String, ingredients: List<String>, optionalIngredients: List<String>, herbs: List<String>, steps: List<String>, image: String?)

Properties

Link copied to clipboard

The list of herbs for the recipe.

Link copied to clipboard

The image of the recipe.

Link copied to clipboard

The list of ingredients for the recipe.

Link copied to clipboard

The unique ID for this recipe in the local database. This is the primary key.

Link copied to clipboard

The list of optional ingredients for the recipe.

Link copied to clipboard
val serverId: String? = null

The unique ID for this recipe on the server. This is indexed and must be unique.

Link copied to clipboard

The slug of the recipe.

Link copied to clipboard

The list of steps for the recipe.

Link copied to clipboard

The title of the recipe.

Functions

Link copied to clipboard

Converts a dbRecipe object to a Recipe domain object.