ca.derekcormier.recipe.RecipeSnapshot Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of recipe-java-runtime Show documentation
Show all versions of recipe-java-runtime Show documentation
Java runtime classes for the Recipe framework
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;
}
}