package app.mealsmadeeasy.api.recipe.view;

import app.mealsmadeeasy.api.image.view.ImageView;
import app.mealsmadeeasy.api.user.view.UserInfoView;
import lombok.Builder;
import lombok.Value;
import org.jetbrains.annotations.Nullable;

import java.time.OffsetDateTime;

@Value
@Builder
public class RecipeInfoView {
    Integer id;
    OffsetDateTime created;
    @Nullable OffsetDateTime modified;
    String slug;
    String title;
    @Nullable Integer preparationTime;
    @Nullable Integer cookingTime;
    @Nullable Integer totalTime;
    UserInfoView owner;
    boolean isPublic;
    int starCount;
    @Nullable ImageView mainImage;
}
