Skip to content

Instantly share code, notes, and snippets.

@HDBandit
Created April 4, 2016 21:50
Show Gist options
  • Save HDBandit/200f2f590e50173e47d00b6c552eab90 to your computer and use it in GitHub Desktop.
Save HDBandit/200f2f590e50173e47d00b6c552eab90 to your computer and use it in GitHub Desktop.
public class Message {
@JsonView(MessageView.MessageSummary.class)
private String content;
@JsonView(MessageView.MessageSummary.class)
private String author;
@JsonView(MessageView.MessageEntire.class)
private int likes;
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public int getLikes() {
return likes;
}
public void setLikes(int likes) {
this.likes = likes;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment