From f81c4418fe2cb0635f77f1a208875af887b2e985 Mon Sep 17 00:00:00 2001
From: Roland Haeder <roland@mxchange.org>
Date: Mon, 10 Apr 2017 22:07:24 +0200
Subject: [PATCH] Continued a bit: - not just cellphones, let's support any
 mobile phone - tpzo fixed

---
 .../mxchange/addressbook/client/console/ConsoleClient.java  | 6 +++---
 .../facade/contact/AddressbookContactFacade.java            | 4 ++--
 .../mxchange/addressbook/facade/contact/ContactFacade.java  | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/org/mxchange/addressbook/client/console/ConsoleClient.java b/src/org/mxchange/addressbook/client/console/ConsoleClient.java
index 6065392..8452a4a 100644
--- a/src/org/mxchange/addressbook/client/console/ConsoleClient.java
+++ b/src/org/mxchange/addressbook/client/console/ConsoleClient.java
@@ -39,7 +39,7 @@ import org.mxchange.jcore.application.Application;
 import org.mxchange.jcore.exceptions.MenuInitializationException;
 import org.mxchange.jcore.exceptions.UnhandledUserChoiceException;
 import org.mxchange.jcountry.data.Country;
-import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
+import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
 
@@ -125,7 +125,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC
 		}
 
 		// Cellphone and such ...
-		this.outputMessage(MessageFormat.format("Telefonnumer: {0}\nFaxnummer: {1}\nHandy: {2}\nKommentar:\n{3}", contact.getContactLandLineNumber(), contact.getContactFaxNumber(), contact.getContactCellphoneNumber(), contact.getContactComment()));
+		this.outputMessage(MessageFormat.format("Telefonnumer: {0}\nFaxnummer: {1}\nHandy: {2}\nKommentar:\n{3}", contact.getContactLandLineNumber(), contact.getContactFaxNumber(), contact.getContactMobileNumber(), contact.getContactComment()));
 
 		// Trace message
 		this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
@@ -235,7 +235,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC
 		DialableLandLineNumber phoneNumber = manager.enterOwnPhoneNumber();
 
 		// Phone number
-		DialableCellphoneNumber cellphonePhoneNumber = manager.enterOwnCellNumber();
+		DialableMobileNumber cellphonePhoneNumber = manager.enterOwnCellNumber();
 
 		// Fax number
 		DialableFaxNumber faxNumber = manager.enterOwnFaxNumber();
diff --git a/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java b/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java
index 177ec38..226fafb 100644
--- a/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java
+++ b/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java
@@ -33,7 +33,7 @@ import org.mxchange.jcore.facade.BaseFacade;
 import org.mxchange.jcoreeelogger.beans.local.logger.Log;
 import org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal;
 import org.mxchange.jcountry.data.Country;
-import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
+import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
 
@@ -310,7 +310,7 @@ public class AddressbookContactFacade extends BaseFacade implements ContactFacad
 	}
 
 	@Override
-	public DialableCellphoneNumber enterOwnCellNumber () {
+	public DialableMobileNumber enterOwnCellNumber () {
 		// Trace message
 		this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
 
diff --git a/src/org/mxchange/addressbook/facade/contact/ContactFacade.java b/src/org/mxchange/addressbook/facade/contact/ContactFacade.java
index 3228529..6e465d7 100644
--- a/src/org/mxchange/addressbook/facade/contact/ContactFacade.java
+++ b/src/org/mxchange/addressbook/facade/contact/ContactFacade.java
@@ -22,7 +22,7 @@ import org.mxchange.jcontacts.contact.gender.Gender;
 import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException;
 import org.mxchange.jcore.facade.Facade;
 import org.mxchange.jcountry.data.Country;
-import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
+import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
 
@@ -110,7 +110,7 @@ public interface ContactFacade extends Facade {
 	 * <p>
 	 * @return Cellphone number
 	 */
-	DialableCellphoneNumber enterOwnCellNumber ();
+	DialableMobileNumber enterOwnCellNumber ();
 
 	/**
 	 * Allows the user to enter own city name.
-- 
2.39.5