diff options
| author | Kevin Sawicki | 2011-04-10 18:04:29 +0000 |
|---|---|---|
| committer | Chris Aniszczyk | 2011-04-10 18:07:19 +0000 |
| commit | ca6bf1817ac5a15d998395ea28a19aa4fc1f07bd (patch) | |
| tree | b834e8ed6c719e0f20fdad59dc83ee115684c221 | |
| parent | dec33a839f902d712036073329f71722a3247e5b (diff) | |
| download | egit-github-ca6bf1817ac5a15d998395ea28a19aa4fc1f07bd.tar.gz egit-github-ca6bf1817ac5a15d998395ea28a19aa4fc1f07bd.tar.xz egit-github-ca6bf1817ac5a15d998395ea28a19aa4fc1f07bd.zip | |
Add comment and milestone model support
Change-Id: If336ef2527a58d89d83cd8949370005768e53b89
Signed-off-by: Kevin Sawicki <kevin@github.com>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
| -rw-r--r-- | org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/Comment.java | 67 | ||||
| -rw-r--r-- | org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/Milestone.java | 112 |
2 files changed, 179 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/Comment.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/Comment.java new file mode 100644 index 00000000..1a37ddca --- /dev/null +++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/Comment.java @@ -0,0 +1,67 @@ +/******************************************************************************* + * 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; + +/** + * GitHub issue comment class. + * + * @author Kevin Sawicki (kevin@github.com) + */ +public class Comment { + + private Date createdAt; + + private Date updatedAt; + + private String body; + + private String url; + + private User user; + + /** + * @return createdAt + */ + public Date getCreatedAt() { + return this.createdAt; + } + + /** + * @return updatedAt + */ + public Date getUpdatedAt() { + return this.updatedAt; + } + + /** + * @return body + */ + public String getBody() { + return this.body; + } + + /** + * @return url + */ + public String getUrl() { + return this.url; + } + + /** + * @return user + */ + public User getUser() { + return this.user; + } + +} diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/Milestone.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/Milestone.java new file mode 100644 index 00000000..fac305ee --- /dev/null +++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/Milestone.java @@ -0,0 +1,112 @@ +/******************************************************************************* + * 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; + +/** + * GitHub issue milestone class. + * + * @author Kevin Sawicki (kevin@github.com) + */ +public class Milestone { + + private Date createdAt; + + private Date dueOn; + + private int closedIssues; + + private int number; + + private int openIssues; + + private String description; + + private String state; + + private String title; + + private String url; + + private User creator; + + /** + * @return createdAt + */ + public Date getCreatedAt() { + return this.createdAt; + } + + /** + * @return dueOn + */ + public Date getDueOn() { + return this.dueOn; + } + + /** + * @return closedIssues + */ + public int getClosedIssues() { + return this.closedIssues; + } + + /** + * @return number + */ + public int getNumber() { + return this.number; + } + + /** + * @return openIssues + */ + public int getOpenIssues() { + return this.openIssues; + } + + /** + * @return description + */ + public String getDescription() { + return this.description; + } + + /** + * @return state + */ + public String getState() { + return this.state; + } + + /** + * @return title + */ + public String getTitle() { + return this.title; + } + + /** + * @return url + */ + public String getUrl() { + return this.url; + } + + /** + * @return creator + */ + public User getCreator() { + return this.creator; + } + +} |
