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 org.mxchange.jcore.FrameworkInterface;
20 import org.mxchange.jcore.client.Client;
21 import org.mxchange.jcore.model.contact.gender.Gender;
24 * A general contact interface
26 * @author Roland Haeder
28 public interface Contact extends FrameworkInterface, Comparable<Contact> {
30 * Some "getter" for translated gender of the contact
32 * @return Translated / human-readable gender
34 public String getTranslatedGender ();
38 * @return the contactId
40 public Long getContactId ();
44 * @param contactId the contactId to set
46 public void setContactId (final Long contactId);
49 * Gender of the contact
53 public Gender getGender ();
56 * Gender of the contact
58 * @param gender the gender to set
60 public void setGender (final Gender gender);
65 * @return the first name
67 public String getFirstName ();
72 * @param firstName the first name to set
74 public void setFirstName (final String firstName);
79 * @return the familyName
81 public String getFamilyName ();
86 * @param familyName the familyName to set
88 public void setFamilyName (final String familyName);
93 * @return the companyName
95 public String getCompanyName ();
100 * @param companyName the companyName to set
102 public void setCompanyName (final String companyName);
109 public String getStreet ();
114 * @param street the street to set
116 public void setStreet (final String street);
121 * @return the houseNumber
123 public Long getHouseNumber ();
128 * @param houseNumber the houseNumber to set
130 public void setHouseNumber (final Long houseNumber);
135 * @return the zipCode
137 public Long getZipCode ();
142 * @param zipCode the zipCode to set
144 public void setZipCode (final Long zipCode);
151 public String getCity ();
156 * @param city the city to set
158 public void setCity (final String city);
163 * @return the countryCode
165 public String getCountryCode ();
170 * @param countryCode the countryCode to set
172 public void setCountryCode (final String countryCode);
177 * @return the emailAddress
179 public String getEmailAddress ();
184 * @param emailAddress the emailAddress to set
186 public void setEmailAddress (final String emailAddress);
191 * @return the phoneNumber
193 public String getPhoneNumber ();
198 * @param phoneNumber the phoneNumber to set
200 public void setPhoneNumber (final String phoneNumber);
205 * @return the faxNumber
207 public String getFaxNumber ();
212 * @param faxNumber the faxNumber to set
214 public void setFaxNumber (final String faxNumber);
219 * @return the cellphoneNumber
221 public String getCellphoneNumber ();
226 * @param cellphoneNumber the cellphoneNumber to set
228 public void setCellphoneNumber (final String cellphoneNumber);
233 * @return the birthday
235 public String getBirthday ();
240 * @param birthday the birthday to set
242 public void setBirthday (final String birthday);
247 * @return the comment
249 public String getComment ();
254 * @param comment the comment to set
256 public void setComment (final String comment);
259 * Checks whether the contact is user's own data
263 public boolean isOwnContact ();
266 * Shows the contact to the user
268 * @param client Client instance to call back
270 public void show (final Client client);
274 * @param contact Contact to compare to
275 * @return Comparison value
278 public int compareTo (final Contact contact);