X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=Addressbook%2Fsrc%2Forg%2Fmxchange%2Faddressbook%2Fcontact%2FContact.java;h=57bca671d9ce38d0ede711a0306a326331d51b62;hb=2a605f8ef9955c6acc7d9dc8de26d6a362573c58;hp=2860ee209332ae0a29b5cf7876eca6d458a3b8b3;hpb=26e5c3c4c49253578272a4fd6b121e76004dd414;p=jbonuscard-lib.git diff --git a/Addressbook/src/org/mxchange/addressbook/contact/Contact.java b/Addressbook/src/org/mxchange/addressbook/contact/Contact.java index 2860ee2..57bca67 100644 --- a/Addressbook/src/org/mxchange/addressbook/contact/Contact.java +++ b/Addressbook/src/org/mxchange/addressbook/contact/Contact.java @@ -1,184 +1,185 @@ -/* - * Copyright (C) 2015 Roland Haeder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.mxchange.addressbook.contact; - -import org.mxchange.addressbook.FrameworkInterface; -import org.mxchange.addressbook.client.Client; - -/** - * - * @author Roland Haeder - */ -public interface Contact extends FrameworkInterface { - - /** - * Some "getter" for translated gender of the contact - * @return Translated / human-readable gender - */ - public String getTranslatedGender(); - - /** - * Checks whether the contact is user's own data - * - * @return Own data? - */ - public boolean isOwnContact(); - - /** - * Gender of the contact - * - * @return the gender - */ - public char getGender(); - - /** - * Surname - * - * @return the surname - */ - public String getSurname(); - - /** - * Family name - * - * @return the familyName - */ - public String getFamilyName(); - - /** - * Companyname - * - * @return the companyName - */ - public String getCompanyName(); - - /** - * Street - * - * @return the street - */ - public String getStreet(); - - /** - * House number - * - * @return the houseNumber - */ - public int getHouseNumber(); - - /** - * ZIP code - * - * @return the zipCode - */ - public long getZipCode(); - - /** - * City - * - * @return the city - */ - public String getCity(); - - /** - * Country code - * - * @return the countryCode - */ - public String getCountryCode(); - - /** - * Email address - * - * @return the emailAddress - */ - public String getEmailAddress(); - - /** - * Phone number - * - * @return the phoneNumber - */ - public String getPhoneNumber(); - - /** - * Fax number - * - * @return the faxNumber - */ - public String getFaxNumber(); - - /** - * Cellphone number - * - * @return the cellphoneNumber - */ - public String getCellphoneNumber(); - - /** - * Birth day - * - * @return the birthday - */ - public String getBirthday(); - - /** - * Comments - * - * @return the comment - */ - public String getComment(); - - /** - * Shows the contact to the user - * - * @param client Client instance to call back - */ - public void show (final Client client); - - /** - * Updates address data in this Contact instance - * - * @param street Street - * @param zipCode ZIP code - * @param city City - * @param countryCode Country code - */ - public void updateAddressData (final String street, final long zipCode, final String city, final String countryCode); - - /** - * Updates name data in this Contact instance - * - * @param gender Gender (M, F, C) - * @param surname Surname - * @param familyName Family name - * @param companyName Company name - */ - public void updateNameData (final char gender, final String surname, final String familyName, final String companyName); - - /** - * Updates other data in this Contact instance - * - * @param phoneNumber Phone number - * @param cellNumber Cellphone number - * @param faxNumber Fax number - * @param email Email address - * @param birthday Birthday - * @param comment Comments - */ - public void updateOtherData (final String phoneNumber, final String cellNumber, final String faxNumber, final String email, final String birthday, final String comment); -} +/* + * Copyright (C) 2015 Roland Haeder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.addressbook.contact; + +import org.mxchange.addressbook.FrameworkInterface; +import org.mxchange.addressbook.client.Client; + +/** + * + * @author Roland Haeder + */ +public interface Contact extends FrameworkInterface { + + /** + * Some "getter" for translated gender of the contact + * + * @return Translated / human-readable gender + */ + public String getTranslatedGender (); + + /** + * Checks whether the contact is user's own data + * + * @return Own data? + */ + public boolean isOwnContact (); + + /** + * Gender of the contact + * + * @return the gender + */ + public Gender getGender (); + + /** + * Surname + * + * @return the surname + */ + public String getSurname (); + + /** + * Family name + * + * @return the familyName + */ + public String getFamilyName (); + + /** + * Companyname + * + * @return the companyName + */ + public String getCompanyName (); + + /** + * Street + * + * @return the street + */ + public String getStreet (); + + /** + * House number + * + * @return the houseNumber + */ + public int getHouseNumber (); + + /** + * ZIP code + * + * @return the zipCode + */ + public long getZipCode (); + + /** + * City + * + * @return the city + */ + public String getCity (); + + /** + * Country code + * + * @return the countryCode + */ + public String getCountryCode (); + + /** + * Email address + * + * @return the emailAddress + */ + public String getEmailAddress (); + + /** + * Phone number + * + * @return the phoneNumber + */ + public String getPhoneNumber (); + + /** + * Fax number + * + * @return the faxNumber + */ + public String getFaxNumber (); + + /** + * Cellphone number + * + * @return the cellphoneNumber + */ + public String getCellphoneNumber (); + + /** + * Birth day + * + * @return the birthday + */ + public String getBirthday (); + + /** + * Comments + * + * @return the comment + */ + public String getComment (); + + /** + * Shows the contact to the user + * + * @param client Client instance to call back + */ + public void show (final Client client); + + /** + * Updates address data in this Contact instance + * + * @param street Street + * @param zipCode ZIP code + * @param city City + * @param countryCode Country code + */ + public void updateAddressData (final String street, final long zipCode, final String city, final String countryCode); + + /** + * Updates name data in this Contact instance + * + * @param gender Gender (M, F, C) + * @param surname Surname + * @param familyName Family name + * @param companyName Company name + */ + public void updateNameData (final Gender gender, final String surname, final String familyName, final String companyName); + + /** + * Updates other data in this Contact instance + * + * @param phoneNumber Phone number + * @param cellNumber Cellphone number + * @param faxNumber Fax number + * @param email Email address + * @param birthday Birthday + * @param comment Comments + */ + public void updateOtherData (final String phoneNumber, final String cellNumber, final String faxNumber, final String email, final String birthday, final String comment); +}