1 18 19 package sync4j.exchange.items.contact.model; 20 21 import java.util.StringTokenizer ; 22 import java.util.Date ; 23 import java.text.MessageFormat ; 24 import java.text.ParseException ; 25 26 import sync4j.exchange.items.contact.ContactParseException; 27 import sync4j.exchange.xml.XmlParser; 28 import sync4j.exchange.xml.XmlParseException; 29 30 35 36 public class Contact 37 extends sync4j.foundation.pdi.contact.Contact { 38 39 41 43 private String id = null ; 44 private String userId = null ; 45 46 private String href = null ; 47 48 private Date lastUpdate = null ; 49 private char status = ' ' ; 50 51 53 57 public Contact () { 58 59 } 60 61 68 public Contact (String id) { 69 70 this.id = id ; 71 72 } 73 74 82 public Contact (String id, Date t) { 83 84 this.id = id ; 85 this.lastUpdate = t ; 86 87 } 88 89 97 public Contact (String id, char status) { 98 99 this.id = id ; 100 this.status = status ; 101 102 } 103 104 112 public Contact (String id , 113 String href , 114 char status , 115 Date lastUpdate ) { 116 117 this.id = id ; 118 this.href = href ; 119 this.status = status ; 120 this.lastUpdate = lastUpdate ; 121 122 } 123 124 125 127 128 public String getId() { 129 return this.id; 130 } 131 132 public void setId(String id) { 133 this.id = id; 134 } 135 136 public String getUserId() { 137 return this.userId; 138 } 139 140 public Date getLastUpdate() { 141 return this.lastUpdate; 142 } 143 144 public char getStatus() { 145 return this.status; 146 } 147 148 public void setLastUpdate(Date lastUpdate) { 149 this.lastUpdate = lastUpdate; 150 } 151 152 public void setStatus(char status) { 153 this.status = status; 154 } 155 156 public String getHref() { 157 return this.href; 158 } 159 160 public void setHref(String href) { 161 this.href = href; 162 } 163 164 165 } | Popular Tags |