Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event/ReleasePayload.java')
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event/ReleasePayload.java60
1 files changed, 60 insertions, 0 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event/ReleasePayload.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event/ReleasePayload.java
new file mode 100644
index 00000000..b08778d8
--- /dev/null
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event/ReleasePayload.java
@@ -0,0 +1,60 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Jon Ander Peñalba <jonander.penalba@gmail.com>.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Jon Ander Peñalba - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.egit.github.core.event;
+
+import java.io.Serializable;
+
+import org.eclipse.egit.github.core.Release;
+
+/**
+ * ReleaseEvent payload model class.
+ * @since 4.2
+ */
+public class ReleasePayload extends EventPayload implements Serializable {
+
+ private static final long serialVersionUID = 3309944674574815351L;
+
+ private String action;
+
+ private Release release;
+
+ /**
+ * @return action
+ */
+ public String getAction() {
+ return action;
+ }
+
+ /**
+ * @param action
+ * @return this ReleasePayload
+ */
+ public ReleasePayload setAction(String action) {
+ this.action = action;
+ return this;
+ }
+
+ /**
+ * @return release
+ */
+ public Release getRelease() {
+ return release;
+ }
+
+ /**
+ * @param release
+ * @return this ReleasePayload
+ */
+ public ReleasePayload setRelease(Release release) {
+ this.release = release;
+ return this;
+ }
+}

Back to the top