X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2Fevent%2FPostEvent.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2Fevent%2FPostEvent.java;h=aa47170dbce6921a0d3cccc7ffb643fc330eb522;hb=125579d8d82b591e6338c1fd5199c30b3d1937f7;hp=0000000000000000000000000000000000000000;hpb=68eb3683d2dda01e06c03d7e77d38b99be2b748f;p=Sone.git
diff --git a/src/main/java/net/pterodactylus/sone/core/event/PostEvent.java b/src/main/java/net/pterodactylus/sone/core/event/PostEvent.java
new file mode 100644
index 0000000..aa47170
--- /dev/null
+++ b/src/main/java/net/pterodactylus/sone/core/event/PostEvent.java
@@ -0,0 +1,55 @@
+/*
+ * Sone - PostEvent.java - Copyright © 2013 David Roden
+ *
+ * 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 net.pterodactylus.sone.core.event;
+
+import net.pterodactylus.sone.data.Post;
+
+/**
+ * Base class for post events.
+ *
+ * @author David âBombeâ Roden
+ */
+public class PostEvent {
+
+ /** The post the event is about. */
+ private final Post post;
+
+ /**
+ * Creates a new post event.
+ *
+ * @param post
+ * The post the event is about
+ */
+ protected PostEvent(Post post) {
+ this.post = post;
+ }
+
+ //
+ // ACCESSORS
+ //
+
+ /**
+ * Returns the post the event is about.
+ *
+ * @return The post the event is about
+ */
+ public Post post() {
+ return post;
+ }
+
+}