1 36 package org.columba.ristretto.imap; 37 38 import org.columba.ristretto.message.MailboxInfo; 39 40 45 public class MailboxStatus { 46 private String name; 47 private int messages; 48 private int unseen; 49 private int recent; 50 private long uidValidity; 51 private long uidNext; 52 53 57 public MailboxStatus() { 58 messages = unseen = recent = -1; 59 uidValidity = uidNext = -1; 60 } 61 62 67 public MailboxStatus(MailboxInfo info) { 68 messages = info.getExists(); 69 recent = info.getRecent(); 70 uidNext = info.getUidNext(); 71 uidValidity = info.getUidValidity(); 72 73 unseen = -1; 75 } 76 77 80 public int getMessages() { 81 return messages; 82 } 83 86 public void setMessages(int messages) { 87 this.messages = messages; 88 } 89 92 public String getName() { 93 return name; 94 } 95 98 public void setName(String name) { 99 this.name = name; 100 } 101 104 public int getRecent() { 105 return recent; 106 } 107 110 public void setRecent(int recent) { 111 this.recent = recent; 112 } 113 116 public long getUidNext() { 117 return uidNext; 118 } 119 122 public void setUidNext(long uidNext) { 123 this.uidNext = uidNext; 124 } 125 128 public long getUidValidity() { 129 return uidValidity; 130 } 131 134 public void setUidValidity(long uidValidity) { 135 this.uidValidity = uidValidity; 136 } 137 140 public int getUnseen() { 141 return unseen; 142 } 143 146 public void setUnseen(int unseen) { 147 this.unseen = unseen; 148 } 149 } 150 | Popular Tags |