--- /dev/null
+/*
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontacts.events.fax.unlinked;
+
+import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+
+/**
+ * An event when a cell phone number has been unlinked
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class AdminFaxNumberUnlinkedEvent implements AdminUnlinkedFaxNumberEvent {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 18_521_758_718_691_064L;
+
+ /**
+ * Contact instance
+ */
+ private final Contact contact;
+
+ /**
+ * Unlinked fax number
+ */
+ private final DialableFaxNumber unlinkedFaxNumber;
+
+ /**
+ * Constructor with unlinked cell phone number
+ * <p>
+ * @param contact Contact with linked cell phone instance
+ * @param unlinkedCellphoneNumber Unlinked cell phone number
+ */
+ public AdminFaxNumberUnlinkedEvent (final Contact contact, final DialableFaxNumber unlinkedCellphoneNumber) {
+ // Set it here
+ this.contact = contact;
+ this.unlinkedFaxNumber = unlinkedCellphoneNumber;
+ }
+
+ @Override
+ public Contact getContact () {
+ return this.contact;
+ }
+
+ @Override
+ public DialableFaxNumber getUnlinkedFaxNumber () {
+ return this.unlinkedFaxNumber;
+ }
+
+}
--- /dev/null
+/*
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontacts.events.fax.unlinked;
+
+import java.io.Serializable;
+import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+
+/**
+ * An interface for an event when a fax number has been unlinked
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public interface AdminUnlinkedFaxNumberEvent extends Serializable {
+
+ /**
+ * Getter for updated fax numbers
+ * <p>
+ * @return Updated fax numbers
+ */
+ DialableFaxNumber getUnlinkedFaxNumber ();
+
+ /**
+ * Getter for contact instance
+ * <p>
+ * @return Contact instance
+ */
+ Contact getContact ();
+
+}
--- /dev/null
+/*
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontacts.events.landline.unlinked;
+
+import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
+
+/**
+ * An event when a land-line number has been unlinked
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class AdminLandLineNumberUnlinkedEvent implements AdminUnlinkedLandLineNumberEvent {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 18_521_758_718_691_065L;
+
+ /**
+ * Contact instance
+ */
+ private final Contact contact;
+
+ /**
+ * Unlinked land-line number
+ */
+ private final DialableLandLineNumber unlinkedLandLineNumber;
+
+ /**
+ * Constructor with unlinked land-line number
+ * <p>
+ * @param contact Contact with linked land-line instance
+ * @param unlinkedLandLineNumber Unlinked land-line number
+ */
+ public AdminLandLineNumberUnlinkedEvent (final Contact contact, final DialableLandLineNumber unlinkedLandLineNumber) {
+ // Set it here
+ this.contact = contact;
+ this.unlinkedLandLineNumber = unlinkedLandLineNumber;
+ }
+
+ @Override
+ public Contact getContact () {
+ return this.contact;
+ }
+
+ @Override
+ public DialableLandLineNumber getUnlinkedLandLineNumber () {
+ return this.unlinkedLandLineNumber;
+ }
+
+}
--- /dev/null
+/*
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontacts.events.landline.unlinked;
+
+import java.io.Serializable;
+import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
+
+/**
+ * An interface for an event when a land-line number has been unlinked
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public interface AdminUnlinkedLandLineNumberEvent extends Serializable {
+
+ /**
+ * Getter for updated land-line numbers
+ * <p>
+ * @return Updated land-line numbers
+ */
+ DialableLandLineNumber getUnlinkedLandLineNumber ();
+
+ /**
+ * Getter for contact instance
+ * <p>
+ * @return Contact instance
+ */
+ Contact getContact ();
+
+}
import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
/**
- * An event when a cell phone number has been updated
+ * An event when a mobile number has been unlinked
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
private final Contact contact;
/**
- * Unlinked mobile provider instance
+ * Unlinked mobile number
*/
- private final DialableMobileNumber unlinkedCellphoneNumber;
+ private final DialableMobileNumber unlinkedMobileNumber;
/**
- * Constructor with unlinked cell phone number
+ * Constructor with unlinked mobile number
* <p>
- * @param contact Contact with linked cell phone instance
- * @param unlinkedCellphoneNumber Unlinked cell phone number
+ * @param contact Contact with linked mobile instance
+ * @param unlinkedMobileNumber Unlinked mobile number
*/
- public AdminMobileNumberUnlinkedEvent (final Contact contact, final DialableMobileNumber unlinkedCellphoneNumber) {
+ public AdminMobileNumberUnlinkedEvent (final Contact contact, final DialableMobileNumber unlinkedMobileNumber) {
// Set it here
this.contact = contact;
- this.unlinkedCellphoneNumber = unlinkedCellphoneNumber;
+ this.unlinkedMobileNumber = unlinkedMobileNumber;
}
@Override
}
@Override
- public DialableMobileNumber getUnlinkedCellphoneNumber () {
- return this.unlinkedCellphoneNumber;
+ public DialableMobileNumber getUnlinkedMobileNumber () {
+ return this.unlinkedMobileNumber;
}
}
import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
/**
- * An interface for an event when a cell phone number has been updated
+ * An interface for an event when a mobile number has been unlinked
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
public interface AdminUnlinkedMobileNumberEvent extends Serializable {
/**
- * Getter for updated cell phone numbers
+ * Getter for updated mobile numbers
* <p>
- * @return Updated cell phone numbers
+ * @return Updated mobile numbers
*/
- DialableMobileNumber getUnlinkedCellphoneNumber ();
+ DialableMobileNumber getUnlinkedMobileNumber ();
/**
* Getter for contact instance