android-ibc-forum

Unnamed repository; edit this file 'description' to name the repository.
git clone http://git.code.weiherhei.de/android-ibc-forum.git
Log | Files | Refs

Message.java (980B)


      1 package de.mtbnews.android.tapatalk.wrapper;
      2 
      3 import java.util.Date;
      4 
      5 public class Message implements ListEntry
      6 {
      7 	public String id;
      8 	private Date date;
      9 	public String from;
     10 	public String[] to;
     11 	public String subject;
     12 	public String content;
     13 	public boolean unread;
     14 
     15 	@Override
     16 	public boolean isUnread()
     17 	{
     18 		return this.unread;
     19 	}
     20 
     21 	/**
     22 	 * @param id
     23 	 * @param unread
     24 	 * @param date
     25 	 * @param from
     26 	 * @param to
     27 	 * @param subject
     28 	 * @param content
     29 	 */
     30 	public Message(String id, boolean unread, Date date, String from, String[] to, String subject, String content)
     31 	{
     32 		super();
     33 		this.id = id;
     34 		this.unread = unread;
     35 		this.date = date;
     36 		this.from = from;
     37 		this.to = to;
     38 		this.subject = subject;
     39 		this.content = content;
     40 	}
     41 
     42 	@Override
     43 	public String getContent()
     44 	{
     45 		return content;
     46 	}
     47 
     48 	@Override
     49 	public Date getDate()
     50 	{
     51 		return date;
     52 	}
     53 
     54 	@Override
     55 	public String getName()
     56 	{
     57 		return from;
     58 	}
     59 
     60 	@Override
     61 	public String getTitle()
     62 	{
     63 		return subject;
     64 	}
     65 }