--- /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.linked;
+
+import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+
+/**
+ * An event when a fax number has been linked with a contact
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class AdminFaxNumberLinkedEvent implements AdminLinkedFaxNumberEvent {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 18_521_758_718_691_064L;
+
+ /**
+ * Contact instance
+ */
+ private final Contact contact;
+
+ /**
+ * Linked fax number
+ */
+ private final DialableFaxNumber linkedFaxNumber;
+
+ /**
+ * Constructor with unlinked fax number
+ * <p>
+ * @param contact Contact with linked fax instance
+ * @param linkedFaxNumber Unlinked fax number
+ */
+ public AdminFaxNumberLinkedEvent (final Contact contact, final DialableFaxNumber linkedFaxNumber) {
+ // Set it here
+ this.contact = contact;
+ this.linkedFaxNumber = linkedFaxNumber;
+ }
+
+ @Override
+ public Contact getContact () {
+ return this.contact;
+ }
+
+ @Override
+ public DialableFaxNumber getLinkedFaxNumber () {
+ return this.linkedFaxNumber;
+ }
+
+}
--- /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.linked;
+
+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 linked with a contact
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public interface AdminLinkedFaxNumberEvent extends Serializable {
+
+ /**
+ * Getter for linked fax numbers
+ * <p>
+ * @return Linked fax numbers
+ */
+ DialableFaxNumber getLinkedFaxNumber ();
+
+ /**
+ * Getter for contact instance
+ * <p>
+ * @return Contact instance
+ */
+ Contact getContact ();
+
+}
import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
/**
- * An event when a cell phone number has been unlinked
+ * An event when a fax number has been unlinked
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
private final DialableFaxNumber unlinkedFaxNumber;
/**
- * Constructor with unlinked cell phone number
+ * Constructor with unlinked fax number
* <p>
- * @param contact Contact with linked cell phone instance
- * @param unlinkedCellphoneNumber Unlinked cell phone number
+ * @param contact Contact with linked fax instance
+ * @param unlinkedFaxNumber Unlinked fax number
*/
- public AdminFaxNumberUnlinkedEvent (final Contact contact, final DialableFaxNumber unlinkedCellphoneNumber) {
+ public AdminFaxNumberUnlinkedEvent (final Contact contact, final DialableFaxNumber unlinkedFaxNumber) {
// Set it here
this.contact = contact;
- this.unlinkedFaxNumber = unlinkedCellphoneNumber;
+ this.unlinkedFaxNumber = unlinkedFaxNumber;
}
@Override
public interface AdminUnlinkedFaxNumberEvent extends Serializable {
/**
- * Getter for updated fax numbers
+ * Getter for unlinked fax numbers
* <p>
- * @return Updated fax numbers
+ * @return Unlinked fax numbers
*/
DialableFaxNumber getUnlinkedFaxNumber ();
--- /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.linked;
+
+import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
+
+/**
+ * An event when a land-line number has been linked with a contact
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class AdminLandLineNumberLinkedEvent implements AdminLinkedLandLineNumberEvent {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 18_521_758_718_691_065L;
+
+ /**
+ * Contact instance
+ */
+ private final Contact contact;
+
+ /**
+ * Linked land-line number
+ */
+ private final DialableLandLineNumber linkedLandLineNumber;
+
+ /**
+ * Constructor with unlinked land-line number
+ * <p>
+ * @param contact Contact with linked land-line instance
+ * @param linkedLandLineNumber Linked land-line number
+ */
+ public AdminLandLineNumberLinkedEvent (final Contact contact, final DialableLandLineNumber linkedLandLineNumber) {
+ // Set it here
+ this.contact = contact;
+ this.linkedLandLineNumber = linkedLandLineNumber;
+ }
+
+ @Override
+ public Contact getContact () {
+ return this.contact;
+ }
+
+ @Override
+ public DialableLandLineNumber getLinkedLandLineNumber () {
+ return this.linkedLandLineNumber;
+ }
+
+}
--- /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.linked;
+
+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 linked with a
+ * contact
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public interface AdminLinkedLandLineNumberEvent extends Serializable {
+
+ /**
+ * Getter for linked land-line numbers
+ * <p>
+ * @return Linked land-line numbers
+ */
+ DialableLandLineNumber getLinkedLandLineNumber ();
+
+ /**
+ * Getter for contact instance
+ * <p>
+ * @return Contact instance
+ */
+ Contact getContact ();
+
+}
public interface AdminUnlinkedLandLineNumberEvent extends Serializable {
/**
- * Getter for updated land-line numbers
+ * Getter for unlinked land-line numbers
* <p>
- * @return Updated land-line numbers
+ * @return Unlinked land-line numbers
*/
DialableLandLineNumber getUnlinkedLandLineNumber ();
--- /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.mobile.linked;
+
+import java.io.Serializable;
+import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
+
+/**
+ * An interface for an event when a mobile number has been linked with a contact
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public interface AdminLinkedMobileNumberEvent extends Serializable {
+
+ /**
+ * Getter for linked mobile numbers
+ * <p>
+ * @return Linked mobile numbers
+ */
+ DialableMobileNumber getLinkedMobileNumber ();
+
+ /**
+ * 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.mobile.linked;
+
+import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
+
+/**
+ * An event when a mobile number has been linked with a contact
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class AdminMobileNumberLinkedEvent implements AdminLinkedMobileNumberEvent {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 18_521_758_718_691_064L;
+
+ /**
+ * Contact instance
+ */
+ private final Contact contact;
+
+ /**
+ * Unlinked mobile number
+ */
+ private final DialableMobileNumber linkedMobileNumber;
+
+ /**
+ * Constructor with unlinked mobile number
+ * <p>
+ * @param contact Contact with linked mobile instance
+ * @param linkedMobileNumber Linked mobile number
+ */
+ public AdminMobileNumberLinkedEvent (final Contact contact, final DialableMobileNumber linkedMobileNumber) {
+ // Set it here
+ this.contact = contact;
+ this.linkedMobileNumber = linkedMobileNumber;
+ }
+
+ @Override
+ public Contact getContact () {
+ return this.contact;
+ }
+
+ @Override
+ public DialableMobileNumber getLinkedMobileNumber () {
+ return this.linkedMobileNumber;
+ }
+
+}
public interface AdminUnlinkedMobileNumberEvent extends Serializable {
/**
- * Getter for updated mobile numbers
+ * Getter for unlinked mobile numbers
* <p>
- * @return Updated mobile numbers
+ * @return Unlinked mobile numbers
*/
DialableMobileNumber getUnlinkedMobileNumber ();