Skip to content

Instantly share code, notes, and snippets.

@cemdrman
Created November 30, 2022 17:39
Show Gist options
  • Save cemdrman/0f8daf3c96b1c31a483ee27b8646f42a to your computer and use it in GitHub Desktop.
Save cemdrman/0f8daf3c96b1c31a483ee27b8646f42a to your computer and use it in GitHub Desktop.
package model;
import java.time.LocalDateTime;
public class Blog {
private String title;
private String photoUrl;
private String content;
private LocalDateTime publishDate;
private String[] tags;
private Boolean isPublisched = false;
private Integer views; //
public Blog() {
}
public Blog(String title, String photoUrl, String content, LocalDateTime publishDate, String[] tags) {
this.title = title;
this.photoUrl = photoUrl;
this.content = content;
this.publishDate = publishDate;
this.tags = tags;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getPhotoUrl() {
return photoUrl;
}
public void setPhotoUrl(String photoUrl) {
this.photoUrl = photoUrl;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public LocalDateTime getPublishDate() {
return publishDate;
}
public void setPublishDate(LocalDateTime publishDate) {
this.publishDate = publishDate;
}
public String[] getTags() {
return tags;
}
public void setTags(String[] tags) {
this.tags = tags;
}
public Boolean getPublisched() {
return isPublisched;
}
public void setPublisched(Boolean publisched) {
isPublisched = publisched;
}
public Integer getViews() {
return views;
}
public void setViews(Integer views) {
this.views = views;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment