From: Roland Häder Date: Tue, 16 Aug 2016 09:14:31 +0000 (+0200) Subject: Renaming season has started: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3ecbe7c50adb9339d40c6935f34263bcf4a2a7d7;p=jcontacts-core.git Renaming season has started: - renamed cellphone to mobile (all occurences) - let's don't discrimite other mobile phones, right? --- diff --git a/src/org/mxchange/jcontacts/events/cellphone/unlinked/AdminMobileNumberUnlinkedEvent.java b/src/org/mxchange/jcontacts/events/cellphone/unlinked/AdminMobileNumberUnlinkedEvent.java deleted file mode 100644 index 0cc2bd6..0000000 --- a/src/org/mxchange/jcontacts/events/cellphone/unlinked/AdminMobileNumberUnlinkedEvent.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (C) 2016 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.jcontacts.events.cellphone.unlinked; - -import org.mxchange.jcontacts.contact.Contact; -import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; - -/** - * An event when a cell phone number has been updated - *

- * @author Roland Haeder - */ -public class AdminMobileNumberUnlinkedEvent implements AdminUnlinkedMobileNumberEvent { - - /** - * Serial number - */ - private static final long serialVersionUID = 18_521_758_718_691_064L; - - /** - * Contact instance - */ - private final Contact contact; - - /** - * Unlinked mobile provider instance - */ - private final DialableMobileNumber unlinkedCellphoneNumber; - - /** - * Constructor with unlinked cell phone number - *

- * @param contact Contact with linked cell phone instance - * @param unlinkedCellphoneNumber Unlinked cell phone number - */ - public AdminMobileNumberUnlinkedEvent (final Contact contact, final DialableMobileNumber unlinkedCellphoneNumber) { - // Set it here - this.contact = contact; - this.unlinkedCellphoneNumber = unlinkedCellphoneNumber; - } - - @Override - public Contact getContact () { - return this.contact; - } - - @Override - public DialableMobileNumber getUnlinkedCellphoneNumber () { - return this.unlinkedCellphoneNumber; - } - -} diff --git a/src/org/mxchange/jcontacts/events/cellphone/unlinked/AdminUnlinkedMobileNumberEvent.java b/src/org/mxchange/jcontacts/events/cellphone/unlinked/AdminUnlinkedMobileNumberEvent.java deleted file mode 100644 index dd3fc0d..0000000 --- a/src/org/mxchange/jcontacts/events/cellphone/unlinked/AdminUnlinkedMobileNumberEvent.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2016 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.jcontacts.events.cellphone.unlinked; - -import java.io.Serializable; -import org.mxchange.jcontacts.contact.Contact; -import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; - -/** - * An interface for an event when a cell phone number has been updated - *

- * @author Roland Haeder - */ -public interface AdminUnlinkedMobileNumberEvent extends Serializable { - - /** - * Getter for updated cell phone numbers - *

- * @return Updated cell phone numbers - */ - DialableMobileNumber getUnlinkedCellphoneNumber (); - - /** - * Getter for contact instance - *

- * @return Contact instance - */ - Contact getContact (); - -} diff --git a/src/org/mxchange/jcontacts/events/mobile/unlinked/AdminMobileNumberUnlinkedEvent.java b/src/org/mxchange/jcontacts/events/mobile/unlinked/AdminMobileNumberUnlinkedEvent.java new file mode 100644 index 0000000..a2ab5da --- /dev/null +++ b/src/org/mxchange/jcontacts/events/mobile/unlinked/AdminMobileNumberUnlinkedEvent.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2016 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.jcontacts.events.mobile.unlinked; + +import org.mxchange.jcontacts.contact.Contact; +import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; + +/** + * An event when a cell phone number has been updated + *

+ * @author Roland Haeder + */ +public class AdminMobileNumberUnlinkedEvent implements AdminUnlinkedMobileNumberEvent { + + /** + * Serial number + */ + private static final long serialVersionUID = 18_521_758_718_691_064L; + + /** + * Contact instance + */ + private final Contact contact; + + /** + * Unlinked mobile provider instance + */ + private final DialableMobileNumber unlinkedCellphoneNumber; + + /** + * Constructor with unlinked cell phone number + *

+ * @param contact Contact with linked cell phone instance + * @param unlinkedCellphoneNumber Unlinked cell phone number + */ + public AdminMobileNumberUnlinkedEvent (final Contact contact, final DialableMobileNumber unlinkedCellphoneNumber) { + // Set it here + this.contact = contact; + this.unlinkedCellphoneNumber = unlinkedCellphoneNumber; + } + + @Override + public Contact getContact () { + return this.contact; + } + + @Override + public DialableMobileNumber getUnlinkedCellphoneNumber () { + return this.unlinkedCellphoneNumber; + } + +} diff --git a/src/org/mxchange/jcontacts/events/mobile/unlinked/AdminUnlinkedMobileNumberEvent.java b/src/org/mxchange/jcontacts/events/mobile/unlinked/AdminUnlinkedMobileNumberEvent.java new file mode 100644 index 0000000..4c12280 --- /dev/null +++ b/src/org/mxchange/jcontacts/events/mobile/unlinked/AdminUnlinkedMobileNumberEvent.java @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2016 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.jcontacts.events.mobile.unlinked; + +import java.io.Serializable; +import org.mxchange.jcontacts.contact.Contact; +import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; + +/** + * An interface for an event when a cell phone number has been updated + *

+ * @author Roland Haeder + */ +public interface AdminUnlinkedMobileNumberEvent extends Serializable { + + /** + * Getter for updated cell phone numbers + *

+ * @return Updated cell phone numbers + */ + DialableMobileNumber getUnlinkedCellphoneNumber (); + + /** + * Getter for contact instance + *

+ * @return Contact instance + */ + Contact getContact (); + +}