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

Mailbox.java (835B)


      1 package de.mtbnews.android.tapatalk.wrapper;
      2 
      3 import java.util.Date;
      4 import java.util.List;
      5 
      6 public class Mailbox implements ListEntry
      7 {
      8 
      9 	private String id;
     10 	private String name;
     11 	public int countAll;
     12 	public int countUnread;
     13 	public List<Message> messages;
     14 
     15 	public Mailbox(String id, String name, Integer countAll, Integer countUnread)
     16 	{
     17 		this.id = id;
     18 		this.name = name;
     19 		this.countAll = countAll;
     20 		this.countUnread = countUnread;
     21 	}
     22 
     23 	public String getId()
     24 	{
     25 		return id;
     26 	}
     27 
     28 	@Override
     29 	public String getContent()
     30 	{
     31 		return null;
     32 	}
     33 
     34 	@Override
     35 	public Date getDate()
     36 	{
     37 		return null;
     38 	}
     39 
     40 	@Override
     41 	public String getName()
     42 	{
     43 		return "" + countAll + " (" + countUnread + ")";
     44 	}
     45 
     46 	@Override
     47 	public String getTitle()
     48 	{
     49 		return name;
     50 	}
     51 
     52 	@Override
     53 	public boolean isUnread()
     54 	{
     55 		return this.countUnread > 0;
     56 	}
     57 
     58 }