]> git.mxchange.org Git - jphone-core.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Tue, 9 Aug 2016 13:49:40 +0000 (15:49 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 9 Aug 2016 13:49:40 +0000 (15:49 +0200)
- moved added mobile provider into proper package
- added event for updated cell phone number

src/org/mxchange/jphone/events/AdminAddedMobileProviderEvent.java [deleted file]
src/org/mxchange/jphone/events/AdminMobileProviderAddedEvent.java [deleted file]
src/org/mxchange/jphone/events/cellphone/updated/AdminCellphoneNumberUpdatedEvent.java [new file with mode: 0644]
src/org/mxchange/jphone/events/cellphone/updated/AdminUpdatedCellphoneNumberEvent.java [new file with mode: 0644]
src/org/mxchange/jphone/events/mobileprovider/added/AdminAddedMobileProviderEvent.java [new file with mode: 0644]
src/org/mxchange/jphone/events/mobileprovider/added/AdminMobileProviderAddedEvent.java [new file with mode: 0644]

diff --git a/src/org/mxchange/jphone/events/AdminAddedMobileProviderEvent.java b/src/org/mxchange/jphone/events/AdminAddedMobileProviderEvent.java
deleted file mode 100644 (file)
index 760f64d..0000000
+++ /dev/null
@@ -1,35 +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 <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jphone.events;
-
-import java.io.Serializable;
-import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
-
-/**
- * An interface for an event when a new mobile provider has been added.
- * <p>
- * @author Roland Haeder<roland@mxchange.org>
- */
-public interface AdminAddedMobileProviderEvent extends Serializable {
-
-       /**
-        * Getter for added mobile provider
-        * <p>
-        * @return Added mobile provider
-        */
-       MobileProvider getAddedMobileProvider ();
-}
diff --git a/src/org/mxchange/jphone/events/AdminMobileProviderAddedEvent.java b/src/org/mxchange/jphone/events/AdminMobileProviderAddedEvent.java
deleted file mode 100644 (file)
index 97bd5e9..0000000
+++ /dev/null
@@ -1,53 +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 <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jphone.events;
-
-import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
-
-/**
- * An event when a new mobile provider has been added
- * <p>
- * @author Roland Haeder<roland@mxchange.org>
- */
-public class AdminMobileProviderAddedEvent implements AdminAddedMobileProviderEvent {
-
-       /**
-        * Serial number
-        */
-       private static final long serialVersionUID = 18_521_758_718_691_064L;
-
-       /**
-        * Added mobile provider instance
-        */
-       private final MobileProvider addedMobileProvider;
-
-       /**
-        * Constructor with added mobile provider instance
-        * <p>
-        * @param addedMobileProvider Added mobile provider instance
-        */
-       public AdminMobileProviderAddedEvent (final MobileProvider addedMobileProvider) {
-               // Set it here
-               this.addedMobileProvider = addedMobileProvider;
-       }
-
-       @Override
-       public MobileProvider getAddedMobileProvider () {
-               return this.addedMobileProvider;
-       }
-
-}
diff --git a/src/org/mxchange/jphone/events/cellphone/updated/AdminCellphoneNumberUpdatedEvent.java b/src/org/mxchange/jphone/events/cellphone/updated/AdminCellphoneNumberUpdatedEvent.java
new file mode 100644 (file)
index 0000000..e336c57
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+ * 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.cellphone.updated;
+
+import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
+
+/**
+ * An event when a cell phone number has been updated
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class AdminCellphoneNumberUpdatedEvent implements AdminUpdatedCellphoneNumberEvent {
+
+       /**
+        * Serial number
+        */
+       private static final long serialVersionUID = 18_521_758_718_691_064L;
+
+       /**
+        * Added mobile provider instance
+        */
+       private final DialableCellphoneNumber updatedCellphoneNumber;
+
+       /**
+        * Constructor with updated cell phone number
+        * <p>
+        * @param updatedCellphoneNumber Updated cell phone number
+        */
+       public AdminCellphoneNumberUpdatedEvent (final DialableCellphoneNumber updatedCellphoneNumber) {
+               // Set it here
+               this.updatedCellphoneNumber = updatedCellphoneNumber;
+       }
+
+       @Override
+       public DialableCellphoneNumber getUpdatedCellphoneNumber () {
+               return this.updatedCellphoneNumber;
+       }
+
+}
diff --git a/src/org/mxchange/jphone/events/cellphone/updated/AdminUpdatedCellphoneNumberEvent.java b/src/org/mxchange/jphone/events/cellphone/updated/AdminUpdatedCellphoneNumberEvent.java
new file mode 100644 (file)
index 0000000..43a4ddc
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * 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.cellphone.updated;
+
+import java.io.Serializable;
+import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
+
+/**
+ * An interface for an event when a cell phone number has been updated
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public interface AdminUpdatedCellphoneNumberEvent extends Serializable {
+
+       /**
+        * Getter for updated cell phone numbers
+        * <p>
+        * @return Updated cell phone numbers
+        */
+       DialableCellphoneNumber getUpdatedCellphoneNumber ();
+
+}
diff --git a/src/org/mxchange/jphone/events/mobileprovider/added/AdminAddedMobileProviderEvent.java b/src/org/mxchange/jphone/events/mobileprovider/added/AdminAddedMobileProviderEvent.java
new file mode 100644 (file)
index 0000000..c3776d7
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * 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.mobileprovider.added;
+
+import java.io.Serializable;
+import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
+
+/**
+ * An interface for an event when a new mobile provider has been added.
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public interface AdminAddedMobileProviderEvent extends Serializable {
+
+       /**
+        * Getter for added mobile provider
+        * <p>
+        * @return Added mobile provider
+        */
+       MobileProvider getAddedMobileProvider ();
+}
diff --git a/src/org/mxchange/jphone/events/mobileprovider/added/AdminMobileProviderAddedEvent.java b/src/org/mxchange/jphone/events/mobileprovider/added/AdminMobileProviderAddedEvent.java
new file mode 100644 (file)
index 0000000..bf8854a
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+ * 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.mobileprovider.added;
+
+import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
+
+/**
+ * An event when a new mobile provider has been added
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class AdminMobileProviderAddedEvent implements AdminAddedMobileProviderEvent {
+
+       /**
+        * Serial number
+        */
+       private static final long serialVersionUID = 18_521_758_718_691_064L;
+
+       /**
+        * Added mobile provider instance
+        */
+       private final MobileProvider addedMobileProvider;
+
+       /**
+        * Constructor with added mobile provider instance
+        * <p>
+        * @param addedMobileProvider Added mobile provider instance
+        */
+       public AdminMobileProviderAddedEvent (final MobileProvider addedMobileProvider) {
+               // Set it here
+               this.addedMobileProvider = addedMobileProvider;
+       }
+
+       @Override
+       public MobileProvider getAddedMobileProvider () {
+               return this.addedMobileProvider;
+       }
+
+}