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

Topic.java (1403B)


      1 package de.mtbnews.android.tapatalk.wrapper;
      2 
      3 import java.util.Date;
      4 import java.util.List;
      5 
      6 public class Topic implements ListEntry
      7 {
      8 
      9 	private String id;
     10 
     11 	private List<Post> posts;
     12 
     13 	private String title;
     14 	private Date date;
     15 	private String content;
     16 	private String name;
     17 	private int postCount;
     18 
     19 	public String forumId;
     20 	public boolean unread;
     21 
     22 	@Override
     23 	public boolean isUnread()
     24 	{
     25 		return this.unread;
     26 	}
     27 
     28 	/**
     29 	 * @param id
     30 	 * @param posts
     31 	 * @param title
     32 	 * @param date
     33 	 * @param content
     34 	 * @param name
     35 	 * @param postCount
     36 	 */
     37 	public Topic(String id, List<Post> posts, String title, Date date, String content, String name, int postCount)
     38 	{
     39 		super();
     40 		this.id = id;
     41 		this.posts = posts;
     42 		this.title = title;
     43 		this.date = date;
     44 		this.content = content;
     45 		this.name = name;
     46 		this.postCount = postCount;
     47 	}
     48 
     49 	/**
     50 	 * @return the postCount
     51 	 */
     52 	public int getPostCount()
     53 	{
     54 		return postCount;
     55 	}
     56 
     57 	/**
     58 	 * @return the id
     59 	 */
     60 	public String getId()
     61 	{
     62 		return id;
     63 	}
     64 
     65 	/**
     66 	 * @return the title
     67 	 */
     68 	public String getTitle()
     69 	{
     70 		return title;
     71 	}
     72 
     73 	/**
     74 	 * @return the date
     75 	 */
     76 	public Date getDate()
     77 	{
     78 		return date;
     79 	}
     80 
     81 	/**
     82 	 * @return the content
     83 	 */
     84 	public String getContent()
     85 	{
     86 		return content;
     87 	}
     88 
     89 	/**
     90 	 * @return the posts
     91 	 */
     92 	public List<Post> getPosts()
     93 	{
     94 		return posts;
     95 	}
     96 
     97 	/**
     98 	 * @return the name
     99 	 */
    100 	public String getName()
    101 	{
    102 		return name;
    103 	}
    104 
    105 }