meals-made-easy-api/src/main/java/app/mealsmadeeasy/api/recipe/view/RecipeInfoView.java

27 lines
633 B
Java

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;
OffsetDateTime modified;
String slug;
String title;
@Nullable Integer preparationTime;
@Nullable Integer cookingTime;
@Nullable Integer totalTime;
UserInfoView owner;
boolean isPublic;
int starCount;
@Nullable ImageView mainImage;
}