]> git.mxchange.org Git - addressbook-swing.git/commitdiff
Continued a bit:
authorRoland Haeder <roland@mxchange.org>
Mon, 10 Apr 2017 20:07:24 +0000 (22:07 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 10 Apr 2017 20:07:24 +0000 (22:07 +0200)
- not just cellphones, let's support any mobile phone
- tpzo fixed

src/org/mxchange/addressbook/client/console/ConsoleClient.java
src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java
src/org/mxchange/addressbook/facade/contact/ContactFacade.java

index 60653923cdfc02e1b7b7e32e2386a1986d7cc79f..8452a4aa3dbbc35cda2413438042a37ce2f296d6 100644 (file)
@@ -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();
index 177ec38284a8c84903fea1e4d351ecfc7cb4126f..226fafbced2ee8663687030af96569cf93150fb8 100644 (file)
@@ -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
 
index 3228529ad065066222b238ffac29effe4638b06b..6e465d7f6fe1b244ba26ecfc3299d95a30e8fb44 100644 (file)
@@ -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.