]> git.mxchange.org Git - addressbook-swing.git/commitdiff
some fixes, API has changed, no more cellphone, use mobile instead
authorRoland Haeder <roland@mxchange.org>
Tue, 11 Apr 2017 10:31:14 +0000 (12:31 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 11 Apr 2017 10:31:14 +0000 (12:31 +0200)
src/org/mxchange/addressbook/client/console/ConsoleClient.java

index 313aea96ff107d8298b28d1b41cf315304bbd2a7..6bccf45ccf5ef27358c7554791a03c6d82d605a1 100644 (file)
@@ -124,7 +124,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC
                        throw new NullPointerException("contact is null"); //NOI18N
                }
 
-               // Cellphone and such ...
+               // Mobile and such ...
                this.outputMessage(MessageFormat.format("Telefonnumer: {0}\nFaxnummer: {1}\nHandy: {2}\nKommentar:\n{3}", contact.getContactLandLineNumber(), contact.getContactFaxNumber(), contact.getContactMobileNumber(), contact.getContactComment()));
 
                // Trace message
@@ -235,7 +235,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC
                DialableLandLineNumber phoneNumber = manager.enterOwnPhoneNumber();
 
                // Phone number
-               DialableMobileNumber cellphonePhoneNumber = manager.enterOwnCellNumber();
+               DialableMobileNumber mobileNumber = manager.enterOwnCellNumber();
 
                // Fax number
                DialableFaxNumber faxNumber = manager.enterOwnFaxNumber();
@@ -248,7 +248,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC
 
                // Update contact instance
                contact.setContactLandLineNumber(phoneNumber);
-               contact.setContactCellphoneNumber(cellphonePhoneNumber);
+               contact.setContactMobileNumber(mobileNumber);
                contact.setContactFaxNumber(faxNumber);
                contact.setContactEmailAddress(email);
                contact.setContactComment(comment);