29 lines
814 B
Java
29 lines
814 B
Java
package app.mealsmadeeasy.api.recipe;
|
|
|
|
import app.mealsmadeeasy.api.image.Image;
|
|
import app.mealsmadeeasy.api.recipe.comment.RecipeComment;
|
|
import app.mealsmadeeasy.api.recipe.star.RecipeStar;
|
|
import app.mealsmadeeasy.api.user.User;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
import java.time.LocalDateTime;
|
|
import java.util.Set;
|
|
|
|
public interface Recipe {
|
|
Long getId();
|
|
LocalDateTime getCreated();
|
|
@Nullable LocalDateTime getModified();
|
|
String getSlug();
|
|
String getTitle();
|
|
@Nullable Integer getPreparationTime();
|
|
@Nullable Integer getCookingTime();
|
|
@Nullable Integer getTotalTime();
|
|
String getRawText();
|
|
User getOwner();
|
|
Set<RecipeStar> getStars();
|
|
boolean isPublic();
|
|
Set<User> getViewers();
|
|
Set<RecipeComment> getComments();
|
|
Image getMainImage();
|
|
}
|