package com.firebase.androidchat;


import java.util.Date;

public class Conversation {

    private String message;
    private String author;
    private Date date;
    private final static int STATUS_SENDING = 0;
    private final static int STATUS_SENT = 1;
    private final static int STATUS_FAILED = 2;
    private int status = STATUS_SENT;
    @SuppressWarnings("unused")
    public Conversation() {
    }

    Conversation(String message, String author, Date date) {
        this.setMessage(message);
        this.setAuthor(author);
        this.setDate(date);
    }


    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
    public boolean isSent()
    {
        return UserList.user.getUsername().equals(author);
    }
}

@@ -158,37 +158,39 @@
 ate date;%0A    pr
-ivate
+otected
  final static in
@@ -209,37 +209,39 @@
 DING = 0;%0A    pr
-iva
+otec
 te
+d
  final static in
@@ -265,21 +265,23 @@
 ;%0A    pr
-iva
+otec
 te
+d
  final s
@@ -309,16 +309,84 @@
 ED = 2;%0A
+    protected final static int STATUS_SEEN = 3; //3 is just random.%0A
     priv

add STATUS_SEEN constant