2 * Copyright (C) 2015 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.jcontacts.contact;
19 import java.io.Serializable;
20 import java.util.Calendar;
21 import java.util.Date;
22 import org.mxchange.jcontacts.contact.gender.Gender;
25 * A general contact interface
27 * @author Roland Haeder<roland@mxchange.org>
29 public interface Contact extends Serializable {
32 * Copies all attributes from other contact object to this
34 * @param contact Source instance
36 public void copyAll (final Contact contact);
41 * @return the birthday
43 public Date getBirthday ();
48 * @param birthday the birthday to set
50 public void setBirthday (final Date birthday);
55 * @return the cellphoneNumber
57 public String getCellphoneNumber ();
62 * @param cellphoneNumber the cellphoneNumber to set
64 public void setCellphoneNumber (final String cellphoneNumber);
71 public String getCity ();
76 * @param city the city to set
78 public void setCity (final String city);
85 public String getComment ();
90 * @param comment the comment to set
92 public void setComment (final String comment);
97 * @return the contactId
99 public Long getContactId ();
104 * @param id the contactId to set
106 public void setContactId (final Long id);
111 * @return the countryCode
113 public String getCountryCode ();
118 * @param countryCode the countryCode to set
120 public void setCountryCode (final String countryCode);
123 * Getter for "created" timestamp
125 * @return "created" timestamp
127 public Calendar getCreated ();
130 * Setter for "created" timestamp
132 * @param created "created" timestamp
134 public void setCreated (final Calendar created);
139 * @return the emailAddress
141 public String getEmailAddress ();
146 * @param emailAddress the emailAddress to set
148 public void setEmailAddress (final String emailAddress);
153 * @return the familyName
155 public String getFamilyName ();
160 * @param familyName the familyName to set
162 public void setFamilyName (final String familyName);
167 * @return the faxNumber
169 public String getFaxNumber ();
174 * @param faxNumber the faxNumber to set
176 public void setFaxNumber (final String faxNumber);
181 * @return the first name
183 public String getFirstName ();
188 * @param firstName the first name to set
190 public void setFirstName (final String firstName);
193 * Gender of the contact
197 public Gender getGender ();
200 * Gender of the contact
202 * @param gender the gender to set
204 public void setGender (final Gender gender);
209 * @return the houseNumber
211 public Short getHouseNumber ();
216 * @param houseNumber the houseNumber to set
218 public void setHouseNumber (final Short houseNumber);
221 * Setter for own contact
223 * @param ownContact Own contact
225 public void setOwnContact (final Boolean ownContact);
230 * @return the phoneNumber
232 public String getPhoneNumber ();
237 * @param phoneNumber the phoneNumber to set
239 public void setPhoneNumber (final String phoneNumber);
246 public String getStreet ();
251 * @param street the street to set
253 public void setStreet (final String street);
256 * Getter for "updated" timestamp
258 * @return "updated" timestamp
260 public Calendar getUpdated ();
263 * Getter for "updated" timestamp
265 * @param updated "updated" timestamp
267 public void setUpdated (final Calendar updated);
272 * @return the zipCode
274 public Integer getZipCode ();
279 * @param zipCode the zipCode to set
281 public void setZipCode (final Integer zipCode);
284 * Checks whether the contact is user's own data
288 public Boolean isOwnContact ();