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) {
|
if (recipe.getMainImage() != null) {
|
||||||
view.setMainImage(this.imageService.toImageView(recipe.getMainImage()));
|
view.setMainImage(this.imageService.toImageView(recipe.getMainImage()));
|
||||||
}
|
}
|
||||||
|
view.setIsPublic(recipe.isPublic());
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ public class FullRecipeView {
|
|||||||
private int starCount;
|
private int starCount;
|
||||||
private int viewerCount;
|
private int viewerCount;
|
||||||
private ImageView mainImage;
|
private ImageView mainImage;
|
||||||
|
private boolean isPublic;
|
||||||
|
|
||||||
public long getId() {
|
public long getId() {
|
||||||
return this.id;
|
return this.id;
|
||||||
@ -107,4 +108,12 @@ public class FullRecipeView {
|
|||||||
this.mainImage = mainImage;
|
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