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 org.mxchange.jcore.model.contact.gender.Gender;
23 * A general contact interface
25 * @author Roland Haeder
27 public interface Contact extends Serializable {
30 * @return the contactId
32 public Long getContactId ();
36 * @param contactId the contactId to set
38 public void setContactId (final Long contactId);
41 * Gender of the contact
45 public Gender getGender ();
48 * Gender of the contact
50 * @param gender the gender to set
52 public void setGender (final Gender gender);
57 * @return the first name
59 public String getFirstName ();
64 * @param firstName the first name to set
66 public void setFirstName (final String firstName);
71 * @return the familyName
73 public String getFamilyName ();
78 * @param familyName the familyName to set
80 public void setFamilyName (final String familyName);
85 * @return the companyName
87 public String getCompanyName ();
92 * @param companyName the companyName to set
94 public void setCompanyName (final String companyName);
101 public String getStreet ();
106 * @param street the street to set
108 public void setStreet (final String street);
113 * @return the houseNumber
115 public Long getHouseNumber ();
120 * @param houseNumber the houseNumber to set
122 public void setHouseNumber (final Long houseNumber);
127 * @return the zipCode
129 public Long getZipCode ();
134 * @param zipCode the zipCode to set
136 public void setZipCode (final Long zipCode);
143 public String getCity ();
148 * @param city the city to set
150 public void setCity (final String city);
155 * @return the countryCode
157 public String getCountryCode ();
162 * @param countryCode the countryCode to set
164 public void setCountryCode (final String countryCode);
169 * @return the emailAddress
171 public String getEmailAddress ();
176 * @param emailAddress the emailAddress to set
178 public void setEmailAddress (final String emailAddress);
183 * @return the phoneNumber
185 public String getPhoneNumber ();
190 * @param phoneNumber the phoneNumber to set
192 public void setPhoneNumber (final String phoneNumber);
197 * @return the faxNumber
199 public String getFaxNumber ();
204 * @param faxNumber the faxNumber to set
206 public void setFaxNumber (final String faxNumber);
211 * @return the cellphoneNumber
213 public String getCellphoneNumber ();
218 * @param cellphoneNumber the cellphoneNumber to set
220 public void setCellphoneNumber (final String cellphoneNumber);
225 * @return the birthday
227 public String getBirthday ();
232 * @param birthday the birthday to set
234 public void setBirthday (final String birthday);
239 * @return the comment
241 public String getComment ();
246 * @param comment the comment to set
248 public void setComment (final String comment);
251 * Checks whether the contact is user's own data
255 public boolean isOwnContact ();