package app.mealsmadeeasy.api.recipe.body;

import lombok.Data;
import org.jetbrains.annotations.Nullable;

import java.util.List;

@Data
public class RecipeUpdateBody {

    @Data
    public static class MainImageUpdateBody {
        private String username;
        private String filename;
    }

    @Data
    public static class IngredientUpdateBody {
        private @Nullable String amount;
        private String name;
        private @Nullable String notes;
    }

    private @Nullable String title;
    private @Nullable Integer preparationTime;
    private @Nullable Integer cookingTime;
    private @Nullable Integer totalTime;
    private @Nullable List<IngredientUpdateBody> ingredients;
    private @Nullable String rawText;
    private @Nullable Boolean isPublic;
    private @Nullable MainImageUpdateBody mainImage;

}
