package ca.ualberta.cs.lonelytwitter;

import java.util.Date;

public class lonelyTweetModel
{
	protected String text;
	protected Date timestamp;
	
	public String getText()
	{
	
		return text;
	}
	
	public abstract void setText(String text);
	
	public Date getTimestamp()
	{
	
		return timestamp;
	}
	
	public void setTimestamp(Date timestamp)
	{
	
		this.timestamp = timestamp;
	}

	public lonelyTweetModel(String text, Date timestamp)
	{

		super();
		this.text = text;
		this.timestamp = new Date();
	}
	public lonelyTweetModel(String text)
	{

		super();
		this.text = text;
		this.timestamp = new Date();
	}
	
}

package ca.ualberta.cs.lonelytwitter;

import java.util.Date;

public abstract class lonelyTweetModel
{
	protected String text;
	protected Date timestamp;
	protected boolean important;
	
	public String getText()
	{
	
		return text;
	}
	
	public abstract void setText(String text);
	
	public Date getTimestamp()
	{
	
		return timestamp;
	}
	
	public void setTimestamp(Date timestamp)
	{
	
		this.timestamp = timestamp;
	}

	public lonelyTweetModel(String text, Date timestamp)
	{

		super();
		this.text = text;
		this.timestamp = new Date();
	}
	public lonelyTweetModel(String text)
	{

		super();
		this.text = text;
		this.timestamp = new Date();
	}
	
	//abstract method can be used to differentiate between normal and important 
	public boolean getImportant(){
		return important;
	}
	public abstract void setImportant(boolean important) throws Exception;
}

Add important check flag