content: package com.quizapp.tollywood.chat;
  
  /**
   * Message is a Custom Object to encapsulate message information/fields
   * 
   * @author Adil Soomro
   *
   */
  public class Message {
  	/**
  	 * The content of the message
  	 */
  	String message;
  	/**
  	 * The content of the message
  	 */
  	double timestamp;
  	/**
  	 * boolean to determine, who is sender of this message
  	 */
  	boolean isMine;
  	/**
  	 * boolean to determine, whether the message is a status message or not.
  	 * it reflects the changes/updates about the sender is writing, have entered text etc
  	 */
  	public boolean isStatusMessage;
  	
  	/**
  	 * Constructor to make a Message object
  	 */
  	public Message(String message, double timestamp,boolean isMine) {
  		super();
  		this.message = message;
  		this.isMine = isMine;
  		this.timestamp = timestamp;
  		this.isStatusMessage = false;
  	}
  	/**
  	 * Constructor to make a status Message object
  	 * consider the parameters are swapped from default Message constructor,
  	 *  not a good approach but have to go with it.
  	 */
  	public Message(boolean status, String message) {
  		super();
  		this.message = message;
  		this.isMine = false;
  		this.timestamp = -1;
  		this.isStatusMessage = status;
  	}
  	public double getTimestamp() {
  		return timestamp;
  	}
  	public void setTimestamp(double timestamp) {
  		this.timestamp = timestamp;
  	}
  	public String getMessage() {
  		return message;
  	}
  	public void setMessage(String message) {
  		this.message = message;
  	}
  	public boolean isMine() {
  		return isMine;
  	}
  	public void setMine(boolean isMine) {
  		this.isMine = isMine;
  	}
  	public boolean isStatusMessage() {
  		return isStatusMessage;
  	}
  	public void setStatusMessage(boolean isStatusMessage) {
  		this.isStatusMessage = isStatusMessage;
  	}
  	
  	
  }
  