Added isPublic to FullRecipeView.
This commit is contained in:
parent
40b315bb08
commit
ebc58e6221
@ -113,6 +113,7 @@ public class RecipeServiceImpl implements RecipeService {
|
||||
if (recipe.getMainImage() != null) {
|
||||
view.setMainImage(this.imageService.toImageView(recipe.getMainImage()));
|
||||
}
|
||||
view.setIsPublic(recipe.isPublic());
|
||||
return view;
|
||||
}
|
||||
|
||||
|
@ -18,6 +18,7 @@ public class FullRecipeView {
|
||||
private int starCount;
|
||||
private int viewerCount;
|
||||
private ImageView mainImage;
|
||||
private boolean isPublic;
|
||||
|
||||
public long getId() {
|
||||
return this.id;
|
||||
@ -107,4 +108,12 @@ public class FullRecipeView {
|
||||
this.mainImage = mainImage;
|
||||
}
|
||||
|
||||
public boolean getIsPublic() {
|
||||
return this.isPublic;
|
||||
}
|
||||
|
||||
public void setIsPublic(boolean isPublic) {
|
||||
this.isPublic = isPublic;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user