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.jcore.model.contact;
19 import java.io.Serializable;
20 import java.sql.Timestamp;
21 import java.util.Date;
22 import org.mxchange.jcore.model.contact.gender.Gender;
25 * A general contact interface
27 * @author Roland Haeder<roland@mxchange.org>
29 public interface Contact extends Serializable {
32 * @return the contactId
38 * @param id the contactId to set
40 public void setId (final Long id);
43 * Gender of the contact
47 public Gender getGender ();
50 * Gender of the contact
52 * @param gender the gender to set
54 public void setGender (final Gender gender);
59 * @return the first name
61 public String getFirstName ();
66 * @param firstName the first name to set
68 public void setFirstName (final String firstName);
73 * @return the familyName
75 public String getFamilyName ();
80 * @param familyName the familyName to set
82 public void setFamilyName (final String familyName);
87 * @return the companyName
89 public String getCompanyName ();
94 * @param companyName the companyName to set
96 public void setCompanyName (final String companyName);
103 public String getStreet ();
108 * @param street the street to set
110 public void setStreet (final String street);
115 * @return the houseNumber
117 public Long getHouseNumber ();
122 * @param houseNumber the houseNumber to set
124 public void setHouseNumber (final Long houseNumber);
129 * @return the zipCode
131 public Long getZipCode ();
136 * @param zipCode the zipCode to set
138 public void setZipCode (final Long zipCode);
145 public String getCity ();
150 * @param city the city to set
152 public void setCity (final String city);
157 * @return the countryCode
159 public String getCountryCode ();
164 * @param countryCode the countryCode to set
166 public void setCountryCode (final String countryCode);
171 * @return the emailAddress
173 public String getEmailAddress ();
178 * @param emailAddress the emailAddress to set
180 public void setEmailAddress (final String emailAddress);
185 * @return the phoneNumber
187 public String getPhoneNumber ();
192 * @param phoneNumber the phoneNumber to set
194 public void setPhoneNumber (final String phoneNumber);
199 * @return the faxNumber
201 public String getFaxNumber ();
206 * @param faxNumber the faxNumber to set
208 public void setFaxNumber (final String faxNumber);
213 * @return the cellphoneNumber
215 public String getCellphoneNumber ();
220 * @param cellphoneNumber the cellphoneNumber to set
222 public void setCellphoneNumber (final String cellphoneNumber);
227 * @return the birthday
229 public Date getBirthday ();
234 * @param birthday the birthday to set
236 public void setBirthday (final Date birthday);
241 * @return the comment
243 public String getComment ();
248 * @param comment the comment to set
250 public void setComment (final String comment);
253 * Checks whether the contact is user's own data
257 public Boolean isOwnContact ();
260 * Setter for own contact
262 * @param ownContact Own contact
264 public void setOwnContact (final Boolean ownContact);
267 * Getter for "created" timestamp
269 * @return "created" timestamp
271 public Timestamp getCreated ();
274 * Setter for "created" timestamp
276 * @param created "created" timestamp
278 public void setCreated (final Timestamp created);
281 * Getter for "updated" timestamp
283 * @return "updated" timestamp
285 public Timestamp getUpdated ();
288 * Getter for "updated" timestamp
290 * @param updated "updated" timestamp
292 public void setUpdated (final Timestamp updated);