Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Comment.java')
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Comment.java69
1 files changed, 69 insertions, 0 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Comment.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Comment.java
new file mode 100644
index 00000000..3f1d109d
--- /dev/null
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Comment.java
@@ -0,0 +1,69 @@
+/*******************************************************************************
+ * 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.egit.github.core;
+
+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 != null ? new Date(this.createdAt.getTime())
+ : null;
+ }
+
+ /**
+ * @return updatedAt
+ */
+ public Date getUpdatedAt() {
+ return this.updatedAt != null ? new Date(this.updatedAt.getTime())
+ : null;
+ }
+
+ /**
+ * @return body
+ */
+ public String getBody() {
+ return this.body;
+ }
+
+ /**
+ * @return url
+ */
+ public String getUrl() {
+ return this.url;
+ }
+
+ /**
+ * @return user
+ */
+ public User getUser() {
+ return this.user;
+ }
+
+}

Back to the top