All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.derekcormier.recipe.RecipeSnapshot Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version
package ca.derekcormier.recipe;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;
import java.util.List;

public class RecipeSnapshot extends IngredientSnapshot {
    @JsonProperty("ingredients")
    private final List ingredients = new ArrayList<>();
    @JsonProperty("context")
    private String context = null;
    @JsonProperty("contextIngredient")
    private KeyedIngredientSnapshot contextIngredient = null;

    public RecipeSnapshot() {
        super("Recipe");
    }

    List getIngredients() {
        return ingredients;
    }

    public String getContext() {
        return context;
    }

    public KeyedIngredientSnapshot getContextIngredient() {
        return contextIngredient;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy