2 * Copyright (C) 2015 Roland Haeder
\r
4 * This program is free software: you can redistribute it and/or modify
\r
5 * it under the terms of the GNU General Public License as published by
\r
6 * the Free Software Foundation, either version 3 of the License, or
\r
7 * (at your option) any later version.
\r
9 * This program is distributed in the hope that it will be useful,
\r
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
12 * GNU General Public License for more details.
\r
14 * You should have received a copy of the GNU General Public License
\r
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
\r
17 package org.mxchange.addressbook.contact;
\r
19 import org.mxchange.addressbook.FrameworkInterface;
\r
20 import org.mxchange.addressbook.client.Client;
\r
24 * @author Roland Haeder
\r
26 public interface Contact extends FrameworkInterface {
\r
29 * Some "getter" for translated gender of the contact
\r
30 * @return Translated / human-readable gender
\r
32 public String getTranslatedGender();
\r
35 * Checks whether the contact is user's own data
\r
39 public boolean isOwnContact();
\r
42 * Gender of the contact
\r
44 * @return the gender
\r
46 public char getGender();
\r
51 * @return the surname
\r
53 public String getSurname();
\r
58 * @return the familyName
\r
60 public String getFamilyName();
\r
65 * @return the companyName
\r
67 public String getCompanyName();
\r
72 * @return the street
\r
74 public String getStreet();
\r
79 * @return the houseNumber
\r
81 public int getHouseNumber();
\r
86 * @return the zipCode
\r
88 public long getZipCode();
\r
95 public String getCity();
\r
100 * @return the countryCode
\r
102 public String getCountryCode();
\r
107 * @return the emailAddress
\r
109 public String getEmailAddress();
\r
114 * @return the phoneNumber
\r
116 public String getPhoneNumber();
\r
121 * @return the faxNumber
\r
123 public String getFaxNumber();
\r
128 * @return the cellphoneNumber
\r
130 public String getCellphoneNumber();
\r
135 * @return the birthday
\r
137 public String getBirthday();
\r
142 * @return the comment
\r
144 public String getComment();
\r
147 * Shows the contact to the user
\r
149 * @param client Client instance to call back
\r
151 public void show (final Client client);
\r
154 * Updates address data in this Contact instance
\r
156 * @param street Street
\r
157 * @param zipCode ZIP code
\r
159 * @param countryCode Country code
\r
161 public void updateAddressData (final String street, final long zipCode, final String city, final String countryCode);
\r
164 * Updates name data in this Contact instance
\r
166 * @param gender Gender (M, F, C)
\r
167 * @param surname Surname
\r
168 * @param familyName Family name
\r
169 * @param companyName Company name
\r
171 public void updateNameData (final char gender, final String surname, final String familyName, final String companyName);
\r
174 * Updates other data in this Contact instance
\r
176 * @param phoneNumber Phone number
\r
177 * @param cellNumber Cellphone number
\r
178 * @param faxNumber Fax number
\r
179 * @param email Email address
\r
180 * @param birthday Birthday
\r
181 * @param comment Comments
\r
183 public void updateOtherData (final String phoneNumber, final String cellNumber, final String faxNumber, final String email, final String birthday, final String comment);
\r