Fixed RecipeInfoView getIsPublic naming.
This commit is contained in:
parent
faf4434b7a
commit
23d6f147c4
@ -149,7 +149,7 @@ public class RecipeServiceImpl implements RecipeService {
|
|||||||
view.setSlug(entity.getSlug());
|
view.setSlug(entity.getSlug());
|
||||||
view.setTitle(entity.getTitle());
|
view.setTitle(entity.getTitle());
|
||||||
view.setOwnerUsername(entity.getOwner().getUsername());
|
view.setOwnerUsername(entity.getOwner().getUsername());
|
||||||
view.setPublic(entity.isPublic());
|
view.setIsPublic(entity.isPublic());
|
||||||
view.setStarCount(this.getStarCount(entity));
|
view.setStarCount(this.getStarCount(entity));
|
||||||
if (entity.getMainImage() != null) {
|
if (entity.getMainImage() != null) {
|
||||||
view.setMainImage(this.imageService.toImageView(entity.getMainImage()));
|
view.setMainImage(this.imageService.toImageView(entity.getMainImage()));
|
||||||
|
@ -56,12 +56,12 @@ public final class RecipeInfoView {
|
|||||||
this.ownerUsername = ownerUsername;
|
this.ownerUsername = ownerUsername;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPublic() {
|
public boolean getIsPublic() {
|
||||||
return this.isPublic;
|
return this.isPublic;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPublic(boolean aPublic) {
|
public void setIsPublic(boolean isPublic) {
|
||||||
isPublic = aPublic;
|
this.isPublic = isPublic;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getStarCount() {
|
public int getStarCount() {
|
||||||
|
Loading…
Reference in New Issue
Block a user