Recipe

data class Recipe(val localId: Long = 0, 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?)

This class represents a Recipe entity.

Constructors

Link copied to clipboard
constructor(localId: Long = 0, 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 herbs of the Recipe.

Link copied to clipboard

The image of the Recipe.

Link copied to clipboard

The ingredients of the Recipe.

Link copied to clipboard
val localId: Long = 0

The local ID of the Recipe.

Link copied to clipboard

The optional ingredients of the Recipe.

Link copied to clipboard
val serverId: String? = null

The server ID of the Recipe.

Link copied to clipboard

The slug of the Recipe.

Link copied to clipboard

The steps of the Recipe.

Link copied to clipboard

The title of the Recipe.

Functions

Link copied to clipboard

Converts this Recipe to an ApiRecipe.

Link copied to clipboard

Converts this Recipe to a dbRecipe.