package com.example.demo.controller;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

public class RecipeUploadForm {

    private String title;
    private String description;
    private String prepTimeMinutes;
    private String cookTimeMinutes;
    private String servings;
    private String cost;

    private List<String> ingredientName;
    private List<String> ingredientQuantity;
    private List<String> ingredientUnit;
    private List<String> ingredientNotes;

    private List<String> stepInstruction;
    private List<String> tags;

    private MultipartFile image;
    private Boolean removeImage;

    public RecipeUploadForm() {}

    // ===== Basic fields =====
    public String getTitle() { return title; }
    public void setTitle(String title) { this.title = title; }

    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }

    public String getPrepTimeMinutes() { return prepTimeMinutes; }
    public void setPrepTimeMinutes(String prepTimeMinutes) { this.prepTimeMinutes = prepTimeMinutes; }

    public String getCookTimeMinutes() { return cookTimeMinutes; }
    public void setCookTimeMinutes(String cookTimeMinutes) { this.cookTimeMinutes = cookTimeMinutes; }

    public String getServings() { return servings; }
    public void setServings(String servings) { this.servings = servings; }

    public String getCost() { return cost; }
    public void setCost(String cost) { this.cost = cost; }

    // ===== Ingredients =====
    public List<String> getIngredientName() { return ingredientName; }
    public void setIngredientName(List<String> ingredientName) { this.ingredientName = ingredientName; }

    public List<String> getIngredientQuantity() { return ingredientQuantity; }
    public void setIngredientQuantity(List<String> ingredientQuantity) { this.ingredientQuantity = ingredientQuantity; }

    public List<String> getIngredientUnit() { return ingredientUnit; }
    public void setIngredientUnit(List<String> ingredientUnit) { this.ingredientUnit = ingredientUnit; }

    public List<String> getIngredientNotes() { return ingredientNotes; }
    public void setIngredientNotes(List<String> ingredientNotes) { this.ingredientNotes = ingredientNotes; }

    // ===== Steps =====
    public List<String> getStepInstruction() { return stepInstruction; }
    public void setStepInstruction(List<String> stepInstruction) { this.stepInstruction = stepInstruction; }

    // ===== Tags =====
    public List<String> getTags() { return tags; }
    public void setTags(List<String> tags) { this.tags = tags; }

    // ===== Image =====
    public MultipartFile getImage() { return image; }
    public void setImage(MultipartFile image) { this.image = image; }

    public Boolean getRemoveImage() { return removeImage; }
    public void setRemoveImage(Boolean removeImage) { this.removeImage = removeImage; }
}