Created
August 4, 2016 23:47
-
-
Save goncalossilva/ce557f75d3fe3079531d97ceb068dcc5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Message { | |
private long id; | |
private long userId; | |
private long postedTs; | |
private String content; | |
public Message(long id, long userId, long postedTs, String content) { | |
this.id = id; | |
this.userId = userId; | |
this.postedTs = postedTs; | |
this.content = content; | |
} | |
public long getId() { | |
return id; | |
} | |
public long getUserId() { | |
return userId; | |
} | |
public long getPostedTs() { | |
return postedTs; | |
} | |
public String getContent() { | |
return content; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class User { | |
private long id; | |
private String name; | |
private String avatarUrl; | |
public User(long id, String name, String avatarUrl) { | |
this.id = id; | |
this.name = name; | |
this.avatarUrl = avatarUrl; | |
} | |
public long getId() { | |
return id; | |
} | |
public String getName() { | |
return name; | |
} | |
public String getAvatarUrl() { | |
return avatarUrl; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment