package app.mealsmadeeasy.api.recipe.spec;

import app.mealsmadeeasy.api.image.Image;
import lombok.Builder;
import lombok.Value;
import org.jetbrains.annotations.Nullable;

import java.util.List;

@Value
@Builder
public class RecipeCreateSpec {

    @Builder
    public record IngredientCreateSpec(
        @Nullable String amount,
        String name,
        @Nullable String notes
    ) {}

    String slug;
    String title;
    @Nullable Integer preparationTime;
    @Nullable Integer cookingTime;
    @Nullable Integer totalTime;
    @Nullable List<IngredientCreateSpec> ingredients;
    String rawText;
    boolean isPublic;
    @Nullable Image mainImage;

}
