diff options
author | Chris Aniszczyk | 2011-04-14 16:07:41 +0000 |
---|---|---|
committer | Chris Aniszczyk | 2011-04-14 16:07:41 +0000 |
commit | 4431a4680dd638b94425cfc12fea77a752b00e52 (patch) | |
tree | 94f87525abe11329fa3800e09dc9605ac6395a29 | |
parent | fc988e45af4d043d3a545c6b9efbd961b1a3c378 (diff) | |
download | egit-github-4431a4680dd638b94425cfc12fea77a752b00e52.tar.gz egit-github-4431a4680dd638b94425cfc12fea77a752b00e52.tar.xz egit-github-4431a4680dd638b94425cfc12fea77a752b00e52.zip |
Remove old GitHubIssue related code
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
5 files changed, 0 insertions, 400 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubIssue.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubIssue.java deleted file mode 100644 index 05ac5a00..00000000 --- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubIssue.java +++ /dev/null @@ -1,227 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011 Red Hat and others. - * 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: - * David Green <david.green@tasktop.com> - initial contribution - * Christian Trutz <christian.trutz@gmail.com> - initial contribution - * Chris Aniszczyk <caniszczyk@gmail.com> - initial contribution - *******************************************************************************/ -package org.eclipse.mylyn.github.internal; - -import java.util.List; - - -/** - * GitHub Issue object to hold all the properties of an individual issue. - */ -public class GitHubIssue { - - private String number; - - private String user; - - private String title; - - private String body; - - private String comment_new; - - private int comments; - - private List<String> labels; - - /** - * open, closed - */ - private String state; - - private String created_at; - private String updated_at; - private String closed_at; - - /** - * Create a new GitHub Issue Object - * - * @param number - * - GitHub Issue number - * @param user - * - User who the posted issue belongs too. - * @param title - * - Issue title - * @param body - * - The text body of the issue; - */ - public GitHubIssue(final String number, final String user, - final String title, final String body) { - this.number = number; - this.user = user; - this.title = title; - this.body = body; - this.comment_new = null; - } - - /** - * Create a GitHub Issue with all parameters set to empty. - */ - public GitHubIssue() { - this.number = ""; - this.user = ""; - this.title = ""; - this.body = ""; - this.comment_new = null; - } - - /** - * Getter for the issue number - * - * @return The string representation of the issue number. - */ - public String getNumber() { - return number; - } - - /** - * Set the issues's number - * - * @param number - * - String representation of the number to set to. - */ - public void setNumber(final String number) { - this.number = number; - } - - /** - * Getter for the user name of the issue creator - * - * @return The user name of the person who created the issue - */ - public String getUser() { - return user; - } - - /** - * Set the issue user name to - * - * @param user - * - The user name to set the issue creator to. - */ - public void setUser(final String user) { - this.user = user; - } - - /** - * Getter for the issue Title - * - * @return The title text of this issue - */ - public String getTitle() { - return title; - } - - /** - * @param title - */ - public void setTitle(final String title) { - this.title = title; - } - - /** - * Getter of the body of an issue - * - * @return The text body of the issue - */ - public String getBody() { - return body; - } - - /** - * Setter for the body of an issue - * - * @param body - * - The text body to set for this issue - */ - public void setBody(final String body) { - this.body = body; - } - - public String getState() { - return state; - } - - public void setState(String state) { - this.state = state; - } - - public String getCreated_at() { - return created_at; - } - - public void setCreated_at(String created_at) { - this.created_at = created_at; - } - - public String getUpdated_at() { - return updated_at; - } - - public void setUpdated_at(String updated_at) { - this.updated_at = updated_at; - } - - public String getClosed_at() { - return closed_at; - } - - public void setClosed_at(String closed_at) { - this.closed_at = closed_at; - } - - public String getComment_new() { - return comment_new; - } - - public void setComment_new(String comment_new) { - this.comment_new = comment_new; - } - - /** - * Get number of comments issue has - * - * @return comments - */ - public int getComments() { - return this.comments; - } - - /** - * Set number of comments that issue has - * - * @param comments - */ - public void setComments(int comments) { - this.comments = comments; - } - - /** - * Get labels applied to issue - * - * @return labels - */ - public List<String> getLabels() { - return this.labels; - } - - /** - * Set labels applied to issue - * - * @param labels - */ - public void setLabels(List<String> labels) { - this.labels = labels; - } - -} diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubIssueComment.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubIssueComment.java deleted file mode 100644 index 9a5ddda0..00000000 --- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubIssueComment.java +++ /dev/null @@ -1,83 +0,0 @@ -/******************************************************************************* - * 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 GitHubIssueComment { - - private String gravatar_id; - private Date created_at; - private String body; - private Date updated_at; - private String id; - private String user; - - /** - * Get gravatar id - * - * @return gravatar id - */ - public String getGravatarId() { - return this.gravatar_id; - } - - /** - * Get created at date - * - * @return created date - */ - public Date getCreatedAt() { - return this.created_at; - } - - /** - * Get body - * - * @return body - */ - public String getBody() { - return this.body; - } - - /** - * Get updated at date - * - * @return date - */ - public Date getUpdatedAt() { - return this.updated_at; - } - - /** - * Get id - * - * @return id - */ - public String getId() { - return this.id; - } - - /** - * Get user - * - * @return user - */ - public String getUser() { - return this.user; - } - -} diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubIssueComments.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubIssueComments.java deleted file mode 100644 index 85079e80..00000000 --- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubIssueComments.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * 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.List; - -/** - * GitHub issue comments wrapper class. - * - * @author Kevin Sawicki (kevin@github.com) - */ -public class GitHubIssueComments { - - private List<GitHubIssueComment> comments; - - /** - * Get comments - * - * @return list of comments - */ - public List<GitHubIssueComment> getComments() { - return this.comments; - } - -} diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubIssues.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubIssues.java deleted file mode 100644 index 02100590..00000000 --- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubIssues.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011 Red Hat and others. - * 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: - * David Green <david.green@tasktop.com> - initial contribution - * Christian Trutz <christian.trutz@gmail.com> - initial contribution - * Chris Aniszczyk <caniszczyk@gmail.com> - initial contribution - *******************************************************************************/ -package org.eclipse.mylyn.github.internal; - -/** - * Container of multiple GitHub Issues, used when returning JSON objects - */ -public class GitHubIssues { - - private GitHubIssue[] issues; - - /** - * Getter for all issues inside this object - * - * @return The array of individual GitHub Issues - */ - public GitHubIssue[] getIssues() { - return issues; - } - -} diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubShowIssue.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubShowIssue.java deleted file mode 100644 index f249c53f..00000000 --- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubShowIssue.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011 Red Hat and others. - * 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: - * David Green <david.green@tasktop.com> - initial contribution - * Christian Trutz <christian.trutz@gmail.com> - initial contribution - * Chris Aniszczyk <caniszczyk@gmail.com> - initial contribution - *******************************************************************************/ -package org.eclipse.mylyn.github.internal; - -public class GitHubShowIssue { - private GitHubIssue issue; - - public GitHubIssue getIssue() { - return issue; - } - - public void setIssue(GitHubIssue issue) { - this.issue = issue; - } - -} |