Back to project page FirebaseGradleChat.
The source code is released under:
Apache License
If you think the Android project FirebaseGradleChat listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pl.polak.firebase.chat.model; //from w ww. jav a2 s . c o m import java.util.Calendar; import java.util.Date; public class Chat { private String message; private String author; private Date date; @SuppressWarnings("unused") private Chat() {} public Chat(String message, String author) { this.message = message; this.author = author; this.date = Calendar.getInstance().getTime(); } public String getMessage() { return message; } public String getAuthor() { return author; } public Date getDate() { return date; } }