Android Open Source - FirebaseGradleChat Chat






From Project

Back to project page FirebaseGradleChat.

License

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.

Java Source Code

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;
    }
}




Java Source Code List

pl.polak.firebase.MainActivity.java
pl.polak.firebase.adapter.ChatListAdapter.java
pl.polak.firebase.adapter.FirebaseListAdapter.java
pl.polak.firebase.chat.model.Chat.java