--- /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.jphone.events.fax.deleted;
+
+import java.io.Serializable;
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+
+/**
+ * An interface for an event when a fax number has been deleted
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public interface AdminDeletedFaxNumberEvent extends Serializable {
+
+ /**
+ * Getter for deleted fax numbers
+ * <p>
+ * @return Deleted fax numbers
+ */
+ DialableFaxNumber getDeletedFaxNumber ();
+
+}
--- /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.jphone.events.fax.deleted;
+
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+
+/**
+ * An event when a land-line number has been deleted
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class AdminFaxNumberDeletedEvent implements AdminDeletedFaxNumberEvent {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 18_521_758_718_691_064L;
+
+ /**
+ * Updated land-line number
+ */
+ private final DialableFaxNumber deletedFaxNumber;
+
+ /**
+ * Constructor with deleted land-line number
+ * <p>
+ * @param deletedFaxNumber Deleted land-line number
+ */
+ public AdminFaxNumberDeletedEvent (final DialableFaxNumber deletedFaxNumber) {
+ // Set it here
+ this.deletedFaxNumber = deletedFaxNumber;
+ }
+
+ @Override
+ public DialableFaxNumber getDeletedFaxNumber () {
+ return this.deletedFaxNumber;
+ }
+
+}
--- /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.jphone.events.fax.removed;
+
+import java.util.List;
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+
+/**
+ * An event when a mobile number list needs been cleared
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class AdminFaxNumberRemovedFromListEvent implements AdminRemoveFaxNumberFromListEvent {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 18_521_758_718_691_064L;
+
+ /**
+ * Mobile number list
+ */
+ private final List<DialableFaxNumber> faxNumberList;
+
+ /**
+ * Constructor with fax number list
+ * <p>
+ * @param faxNumberList Fax number list
+ */
+ public AdminFaxNumberRemovedFromListEvent (final List<DialableFaxNumber> faxNumberList) {
+ // Set it here
+ this.faxNumberList = faxNumberList;
+ }
+
+ @Override
+ @SuppressWarnings ("ReturnOfCollectionOrArrayField")
+ public List<DialableFaxNumber> getFaxNumberList () {
+ return this.faxNumberList;
+ }
+
+}
--- /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.jphone.events.fax.removed;
+
+import java.io.Serializable;
+import java.util.List;
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+
+/**
+ * An interface for an event when a list needs to be cleared from fax
+ * numbers.
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public interface AdminRemoveFaxNumberFromListEvent extends Serializable {
+
+ /**
+ * Getter for fax numer list
+ * <p>
+ * @return fax number list
+ */
+ List<DialableFaxNumber> getFaxNumberList ();
+
+}
--- /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.jphone.events.fax.updated;
+
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+
+/**
+ * An event when a fax number has been updated
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class AdminFaxNumberUpdatedEvent implements AdminUpdatedFaxNumberEvent {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 18_521_758_718_691_064L;
+
+ /**
+ * Updated fax provider instance
+ */
+ private final DialableFaxNumber updatedFaxNumber;
+
+ /**
+ * Constructor with updated fax number
+ * <p>
+ * @param updatedFaxNumber Updated fax number
+ */
+ public AdminFaxNumberUpdatedEvent (final DialableFaxNumber updatedFaxNumber) {
+ // Set it here
+ this.updatedFaxNumber = updatedFaxNumber;
+ }
+
+ @Override
+ public DialableFaxNumber getUpdatedFaxNumber () {
+ return this.updatedFaxNumber;
+ }
+
+}
--- /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.jphone.events.fax.updated;
+
+import java.io.Serializable;
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+
+/**
+ * An interface for an event when a fax number has been updated
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public interface AdminUpdatedFaxNumberEvent extends Serializable {
+
+ /**
+ * Getter for updated fax numbers
+ * <p>
+ * @return Updated fax numbers
+ */
+ DialableFaxNumber getUpdatedFaxNumber ();
+
+}
--- /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.jphone.events.landline.deleted;
+
+import java.io.Serializable;
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
+
+/**
+ * An interface for an event when a land-line number has been deleted
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public interface AdminDeletedLandLineNumberEvent extends Serializable {
+
+ /**
+ * Getter for deleted land-line numbers
+ * <p>
+ * @return Deleted land-line numbers
+ */
+ DialableLandLineNumber getDeletedLandLineNumber ();
+
+}
--- /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.jphone.events.landline.deleted;
+
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
+
+/**
+ * An event when a land-line number has been deleted
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class AdminLandLineNumberDeletedEvent implements AdminDeletedLandLineNumberEvent {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 18_521_758_718_691_064L;
+
+ /**
+ * Updated land-line number
+ */
+ private final DialableLandLineNumber deletedLandLineNumber;
+
+ /**
+ * Constructor with deleted land-line number
+ * <p>
+ * @param deletedLandLineNumber Deleted land-line number
+ */
+ public AdminLandLineNumberDeletedEvent (final DialableLandLineNumber deletedLandLineNumber) {
+ // Set it here
+ this.deletedLandLineNumber = deletedLandLineNumber;
+ }
+
+ @Override
+ public DialableLandLineNumber getDeletedLandLineNumber () {
+ return this.deletedLandLineNumber;
+ }
+
+}
--- /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.jphone.events.landline.removed;
+
+import java.util.List;
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
+
+/**
+ * An event when a mobile number list needs been cleared
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class AdminLandLineNumberRemovedFromListEvent implements AdminRemoveLandLineNumberFromListEvent {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 18_521_758_718_691_064L;
+
+ /**
+ * Mobile number list
+ */
+ private final List<DialableLandLineNumber> landLineNumberList;
+
+ /**
+ * Constructor with mobile number list
+ * <p>
+ * @param mobileNumberList Mobile number list
+ */
+ public AdminLandLineNumberRemovedFromListEvent (final List<DialableLandLineNumber> mobileNumberList) {
+ // Set it here
+ this.landLineNumberList = mobileNumberList;
+ }
+
+ @Override
+ @SuppressWarnings ("ReturnOfCollectionOrArrayField")
+ public List<DialableLandLineNumber> getLandLineNumberList () {
+ return this.landLineNumberList;
+ }
+
+}
--- /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.jphone.events.landline.removed;
+
+import java.io.Serializable;
+import java.util.List;
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
+
+/**
+ * An interface for an event when a list needs to be cleared from land-line
+ * numbers.
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public interface AdminRemoveLandLineNumberFromListEvent extends Serializable {
+
+ /**
+ * Getter for land-line numer list
+ * <p>
+ * @return Land-line number list
+ */
+ List<DialableLandLineNumber> getLandLineNumberList ();
+
+}
--- /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.jphone.events.landline.updated;
+
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
+
+/**
+ * An event when a mobile number has been updated
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class AdminLandLineNumberUpdatedEvent implements AdminUpdatedLandLineNumberEvent {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 18_521_758_718_691_064L;
+
+ /**
+ * Updated mobile provider instance
+ */
+ private final DialableLandLineNumber updatedLandLineNumber;
+
+ /**
+ * Constructor with updated mobile number
+ * <p>
+ * @param updatedLandLineNumber Updated mobile number
+ */
+ public AdminLandLineNumberUpdatedEvent (final DialableLandLineNumber updatedLandLineNumber) {
+ // Set it here
+ this.updatedLandLineNumber = updatedLandLineNumber;
+ }
+
+ @Override
+ public DialableLandLineNumber getUpdatedLandLineNumber () {
+ return this.updatedLandLineNumber;
+ }
+
+}
--- /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.jphone.events.landline.updated;
+
+import java.io.Serializable;
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
+
+/**
+ * An interface for an event when a land-line number has been updated
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public interface AdminUpdatedLandLineNumberEvent extends Serializable {
+
+ /**
+ * Getter for updated land-line numbers
+ * <p>
+ * @return Updated land-line numbers
+ */
+ DialableLandLineNumber getUpdatedLandLineNumber ();
+
+}
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 deleted
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
public interface AdminDeletedMobileNumberEvent extends Serializable {
/**
- * Getter for deleted cell phone numbers
+ * Getter for deleted mobile numbers
* <p>
- * @return Deleted cell phone numbers
+ * @return Deleted mobile numbers
*/
- DialableMobileNumber getDeletedCellphoneNumber ();
+ DialableMobileNumber getDeletedMobileNumber ();
}
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 deleted
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
private static final long serialVersionUID = 18_521_758_718_691_064L;
/**
- * Added mobile provider instance
+ * Updated mobile number
*/
- private final DialableMobileNumber deletedCellphoneNumber;
+ private final DialableMobileNumber deletedMobileNumber;
/**
- * Constructor with deleted cell phone number
+ * Constructor with deleted mobile number
* <p>
- * @param deletedCellphoneNumber Updated cell phone number
+ * @param deletedCellphoneNumber Updated mobile number
*/
public AdminMobileNumberDeletedEvent (final DialableMobileNumber deletedCellphoneNumber) {
// Set it here
- this.deletedCellphoneNumber = deletedCellphoneNumber;
+ this.deletedMobileNumber = deletedCellphoneNumber;
}
@Override
- public DialableMobileNumber getDeletedCellphoneNumber () {
- return this.deletedCellphoneNumber;
+ public DialableMobileNumber getDeletedMobileNumber () {
+ return this.deletedMobileNumber;
}
}
import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
/**
- * An event when a cell phone number has been updated
+ * An event when a mobile number list needs been cleared
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
private static final long serialVersionUID = 18_521_758_718_691_064L;
/**
- * Updated mobile provider instance
+ * Mobile number list
*/
- private final List<DialableMobileNumber> cellphoneList;
+ private final List<DialableMobileNumber> mobileNumberList;
/**
- * Constructor with updated cell phone number
+ * Constructor with mobile number list
* <p>
- * @param cellphoneList Updated cell phone number
+ * @param mobileNumberList Mobile number list
*/
- public AdminMobileNumberRemovedFromListEvent (final List<DialableMobileNumber> cellphoneList) {
+ public AdminMobileNumberRemovedFromListEvent (final List<DialableMobileNumber> mobileNumberList) {
// Set it here
- this.cellphoneList = cellphoneList;
+ this.mobileNumberList = mobileNumberList;
}
@Override
@SuppressWarnings ("ReturnOfCollectionOrArrayField")
- public List<DialableMobileNumber> getCellphoneList () {
- return this.cellphoneList;
+ public List<DialableMobileNumber> getMobileNumberList () {
+ return this.mobileNumberList;
}
}
import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
/**
- * An interface for an event when a list needs to be cleared from cell phone
+ * An interface for an event when a list needs to be cleared from mobile
* numbers.
* <p>
* @author Roland Haeder<roland@mxchange.org>
public interface AdminRemoveMobileNumberFromListEvent extends Serializable {
/**
- * Getter for cell phone numer list
+ * Getter for mobile numer list
* <p>
- * @return Cell phone number list
+ * @return Mobile number list
*/
- List<DialableMobileNumber> getCellphoneList ();
+ List<DialableMobileNumber> getMobileNumberList ();
}
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 updated
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
/**
* Updated mobile provider instance
*/
- private final DialableMobileNumber updatedCellphoneNumber;
+ private final DialableMobileNumber updatedMobileNumber;
/**
- * Constructor with updated cell phone number
+ * Constructor with updated mobile number
* <p>
- * @param updatedCellphoneNumber Updated cell phone number
+ * @param updatedMobileNumber Updated mobile number
*/
- public AdminMobileNumberUpdatedEvent (final DialableMobileNumber updatedCellphoneNumber) {
+ public AdminMobileNumberUpdatedEvent (final DialableMobileNumber updatedMobileNumber) {
// Set it here
- this.updatedCellphoneNumber = updatedCellphoneNumber;
+ this.updatedMobileNumber = updatedMobileNumber;
}
@Override
- public DialableMobileNumber getUpdatedCellphoneNumber () {
- return this.updatedCellphoneNumber;
+ public DialableMobileNumber getUpdatedMobileNumber () {
+ return this.updatedMobileNumber;
}
}
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 updated
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
public interface AdminUpdatedMobileNumberEvent extends Serializable {
/**
- * Getter for updated cell phone numbers
+ * Getter for updated mobile numbers
* <p>
- * @return Updated cell phone numbers
+ * @return Updated mobile numbers
*/
- DialableMobileNumber getUpdatedCellphoneNumber ();
+ DialableMobileNumber getUpdatedMobileNumber ();
}