summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-04-27 16:00:32 (EDT)
committer Kevin Sawicki2011-04-27 16:00:32 (EDT)
commitbf6eea85ba768c9951ff84767bb071a1c820dba5 (patch)
treef68e979060ae9f8a70bef12d41737bf5f5d1ce3e
parent90e025e60e54d9578e13289f2575d9d7b1876d9a (diff)
downloadegit-github-bf6eea85ba768c9951ff84767bb071a1c820dba5.zip
egit-github-bf6eea85ba768c9951ff84767bb071a1c820dba5.tar.gz
egit-github-bf6eea85ba768c9951ff84767bb071a1c820dba5.tar.bz2
Add pull request model class.refs/changes/70/3270/1
Change-Id: I9da5d6d83adf687724562a5fdfea559fea9bb537 Signed-off-by: Kevin Sawicki <kevin@github.com>
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/PullRequest.java204
1 files changed, 204 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/PullRequest.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/PullRequest.java
new file mode 100644
index 0000000..4a048a6
--- /dev/null
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/PullRequest.java
@@ -0,0 +1,204 @@
+/*******************************************************************************
+ * Copyright (c) 2011 GitHub Inc.
+ * 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:
+ * Kevin Sawicki (GitHub Inc.) - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.mylyn.github.internal;
+
+import java.util.Date;
+import java.util.List;
+
+/**
+ * Pull request model class.
+ */
+public class PullRequest {
+
+ private Date closedAt;
+ private Date createdAt;
+ private Date issueCreatedAt;
+ private Date issueUpdatedAt;
+ private Date mergedAt;
+ private Date updatedAt;
+
+ private double position;
+
+ private int comments;
+ private int number;
+ private int votes;
+
+ private List<PullRequestDiscussion> discussion;
+ private List<String> labels;
+
+ private PullRequestMarker base;
+ private PullRequestMarker head;
+
+ private String body;
+ private String diffUrl;
+ private String htmlUrl;
+ private String patchUrl;
+ private String state;
+ private String title;
+
+ private User issueUser;
+ private User user;
+
+ /**
+ * @return closedAt
+ */
+ public Date getClosedAt() {
+ return this.closedAt;
+ }
+
+ /**
+ * @return createdAt
+ */
+ public Date getCreatedAt() {
+ return this.createdAt;
+ }
+
+ /**
+ * @return issueCreatedAt
+ */
+ public Date getIssueCreatedAt() {
+ return this.issueCreatedAt;
+ }
+
+ /**
+ * @return issueUpdatedAt
+ */
+ public Date getIssueUpdatedAt() {
+ return this.issueUpdatedAt;
+ }
+
+ /**
+ * @return mergedAt
+ */
+ public Date getMergedAt() {
+ return this.mergedAt;
+ }
+
+ /**
+ * @return updatedAt
+ */
+ public Date getUpdatedAt() {
+ return this.updatedAt;
+ }
+
+ /**
+ * @return position
+ */
+ public double getPosition() {
+ return this.position;
+ }
+
+ /**
+ * @return comments
+ */
+ public int getComments() {
+ return this.comments;
+ }
+
+ /**
+ * @return number
+ */
+ public int getNumber() {
+ return this.number;
+ }
+
+ /**
+ * @return votes
+ */
+ public int getVotes() {
+ return this.votes;
+ }
+
+ /**
+ * @return discussion
+ */
+ public List<PullRequestDiscussion> getDiscussion() {
+ return this.discussion;
+ }
+
+ /**
+ * @return labels
+ */
+ public List<String> getLabels() {
+ return this.labels;
+ }
+
+ /**
+ * @return base
+ */
+ public PullRequestMarker getBase() {
+ return this.base;
+ }
+
+ /**
+ * @return head
+ */
+ public PullRequestMarker getHead() {
+ return this.head;
+ }
+
+ /**
+ * @return body
+ */
+ public String getBody() {
+ return this.body;
+ }
+
+ /**
+ * @return diffUrl
+ */
+ public String getDiffUrl() {
+ return this.diffUrl;
+ }
+
+ /**
+ * @return htmlUrl
+ */
+ public String getHtmlUrl() {
+ return this.htmlUrl;
+ }
+
+ /**
+ * @return patchUrl
+ */
+ public String getPatchUrl() {
+ return this.patchUrl;
+ }
+
+ /**
+ * @return state
+ */
+ public String getState() {
+ return this.state;
+ }
+
+ /**
+ * @return title
+ */
+ public String getTitle() {
+ return this.title;
+ }
+
+ /**
+ * @return issueUser
+ */
+ public User getIssueUser() {
+ return this.issueUser;
+ }
+
+ /**
+ * @return user
+ */
+ public User getUser() {
+ return this.user;
+ }
+
+}