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