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

Post.java (850B)


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