diff --git a/src/main/java/com/messners/gitlab/api/event/EventObject.java b/src/main/java/com/messners/gitlab/api/event/EventObject.java deleted file mode 100644 index 27acf06ae273dde92aa1c7b1aec67efc8af772e8..0000000000000000000000000000000000000000 --- a/src/main/java/com/messners/gitlab/api/event/EventObject.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.messners.gitlab.api.event; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlRootElement; - -@XmlRootElement -@XmlAccessorType(XmlAccessType.FIELD) -public class EventObject { - - public enum ObjectKind { - MERGE_REQUEST, - ISSUE; - - public String toString () { - return (name().toLowerCase()); - } - } - - private EventObjectAttributes objectAttributes; - private ObjectKind objectKind; - - public EventObjectAttributes getObjectAttributes () { - return this.objectAttributes; - } - - public void setObjectAttributes (EventObjectAttributes objectAttributes) { - this.objectAttributes = objectAttributes; - } - - public ObjectKind getObjectKind () { - return this.objectKind; - } - - public void setObjectKind (ObjectKind objectKind) { - this.objectKind = objectKind; - } -} diff --git a/src/main/java/com/messners/gitlab/api/event/EventObjectAttributes.java b/src/main/java/com/messners/gitlab/api/event/EventObjectAttributes.java deleted file mode 100644 index 969f695a7681b5a64156c6fc4ad60806ab1f7199..0000000000000000000000000000000000000000 --- a/src/main/java/com/messners/gitlab/api/event/EventObjectAttributes.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.messners.gitlab.api.event; - -import java.util.Date; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlRootElement; - -@XmlRootElement(name = "object_attributes") -@XmlAccessorType (XmlAccessType.FIELD) -public class EventObjectAttributes { - - private Integer assigneeId; - private Integer authorId; - private String branchName; - private Date createdAt; - private String description; - private Integer id; - private Integer iid; - private String mergeStatus; - private String milestoneId; - private Integer position; - private Integer projectId; - private String sourceBranch; - private Integer sourceProjectId; - private String stCommits; - private String stDiffs; - private String state; - private String targetBranch; - private Integer targetProjectId; - private String title; - private Date updatedAt; - - public Integer getAssigneeId () { - return this.assigneeId; - } - - public void setAssigneeId (Integer assigneeId) { - this.assigneeId = assigneeId; - } - - public Integer getAuthorId () { - return this.authorId; - } - - public void setAuthorId (Integer authorId) { - this.authorId = authorId; - } - - public String getBranchName () { - return this.branchName; - } - - public void setBranchName (String branchName) { - this.branchName = branchName; - } - - public Date getCreatedAt () { - return this.createdAt; - } - - public void setCreatedAt (Date createdAt) { - this.createdAt = createdAt; - } - - public String getDescription () { - return this.description; - } - - public void setDescription (String description) { - this.description = description; - } - - public Integer getId () { - return this.id; - } - - public void setId (Integer id) { - this.id = id; - } - - public Integer getIid () { - return this.iid; - } - - public void setIid (Integer iid) { - this.iid = iid; - } - - public String getMergeStatus () { - return this.mergeStatus; - } - - public void setMergeStatus (String mergeStatus) { - this.mergeStatus = mergeStatus; - } - - public String getMilestoneId () { - return this.milestoneId; - } - - public void setMilestoneId (String milestoneId) { - this.milestoneId = milestoneId; - } - - public Integer getPosition () { - return this.position; - } - - public void setPosition (Integer position) { - this.position = position; - } - - public Integer getProjectId () { - return this.projectId; - } - - public void setProjectId (Integer projectId) { - this.projectId = projectId; - } - - public String getSourceBranch () { - return this.sourceBranch; - } - - public void setSourceBranch (String sourceBranch) { - this.sourceBranch = sourceBranch; - } - - public Integer getSourceProjectId () { - return this.sourceProjectId; - } - - public void setSourceProjectId (Integer sourceProjectId) { - this.sourceProjectId = sourceProjectId; - } - - public String getStCommits () { - return this.stCommits; - } - - public void setStCommits (String stCommits) { - this.stCommits = stCommits; - } - - public String getStDiffs () { - return this.stDiffs; - } - - public void setStDiffs (String stDiffs) { - this.stDiffs = stDiffs; - } - - public String getState () { - return this.state; - } - - public void setState (String state) { - this.state = state; - } - - public String getTargetBranch () { - return this.targetBranch; - } - - public void setTargetBranch (String targetBranch) { - this.targetBranch = targetBranch; - } - - public Integer getTargetProjectId () { - return this.targetProjectId; - } - - public void setTargetProjectId (Integer targetProjectId) { - this.targetProjectId = targetProjectId; - } - - public String getTitle () { - return this.title; - } - - public void setTitle (String title) { - this.title = title; - } - - public Date getUpdatedAt () { - return this.updatedAt; - } - - public void setUpdatedAt (Date updatedAt) { - this.updatedAt = updatedAt; - } -} diff --git a/src/main/java/com/messners/gitlab/api/event/PushEvent.java b/src/main/java/com/messners/gitlab/api/event/PushEvent.java deleted file mode 100644 index 197fde23e125eb7216c0198f2c27e78c1eb2238a..0000000000000000000000000000000000000000 --- a/src/main/java/com/messners/gitlab/api/event/PushEvent.java +++ /dev/null @@ -1,98 +0,0 @@ - -package com.messners.gitlab.api.event; - -import java.util.List; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlRootElement; - -import com.messners.gitlab.api.Commit; -import com.messners.gitlab.api.Repository; - -@XmlRootElement -@XmlAccessorType(XmlAccessType.FIELD) -public class PushEvent { - - private String after; - private String before; - private List commits; - private Number projectId; - private String ref; - private Repository repository; - private Number totalCommitsCount; - private Number userId; - private String userName; - - public String getAfter () { - return this.after; - } - - public void setAfter (String after) { - this.after = after; - } - - public String getBefore () { - return this.before; - } - - public void setBefore (String before) { - this.before = before; - } - - public List getCommits () { - return this.commits; - } - - public void setCommits (List commits) { - this.commits = commits; - } - - public Number getProjectId () { - return this.projectId; - } - - public void setProjectId (Number projectId) { - this.projectId = projectId; - } - - public String getRef () { - return this.ref; - } - - public void setRef (String ref) { - this.ref = ref; - } - - public Repository getRepository () { - return this.repository; - } - - public void setRepository (Repository repository) { - this.repository = repository; - } - - public Number getTotalCommitsCount () { - return this.totalCommitsCount; - } - - public void setTotalCommitsCount (Number totalCommitsCount) { - this.totalCommitsCount = totalCommitsCount; - } - - public Number getUserId () { - return this.userId; - } - - public void setUserId (Number userId) { - this.userId = userId; - } - - public String getUserName () { - return this.userName; - } - - public void setUserName (String userName) { - this.userName = userName; - } -} diff --git a/src/main/java/com/messners/gitlab/api/event/WebHookListener.java b/src/main/java/com/messners/gitlab/api/event/WebHookListener.java deleted file mode 100644 index 47d10b90ef9a63cac7cb92efa0b27a801769db06..0000000000000000000000000000000000000000 --- a/src/main/java/com/messners/gitlab/api/event/WebHookListener.java +++ /dev/null @@ -1,36 +0,0 @@ - -package com.messners.gitlab.api.event; - -/** - * This class defines an event listener for the event fired when - * a WebHook notification has been received from a GitLab server. - * - * @author Greg Messner - */ -public interface WebHookListener extends java.util.EventListener { - - /** - * This method is called when a WebHook issue notification has been received. - * - * @param event the EventObject instance containing info on the issue - */ - public void onIssue (EventObject event); - - - /**. - * This method is called when a WebHook merge request notification has been received - * - * @param event the EventObject instance containing info on the merge request - */ - public void onMergeRequest (EventObject event); - - - /** - * This method is called when a WebHook push notification has been received. - * - * @param pushEvent the PushEvent instance - */ - public void onPush (PushEvent pushEvent); -} - -