Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement GHEventPayload.IssueComment #32

Merged
merged 1 commit into from
Apr 16, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 43 additions & 1 deletion src/main/java/org/kohsuke/github/GHEventPayload.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public abstract class GHEventPayload {
public static class PullRequest extends GHEventPayload {
private String action;
private int number;
GHPullRequest pull_request;
private GHPullRequest pull_request;

public String getAction() {
return action;
Expand All @@ -42,5 +42,47 @@ void wrapUp(GitHub root) {
pull_request.wrapUp(root);
}
}

public static class IssueComment extends GHEventPayload {
private String action;
private GHIssueComment comment;
private GHIssue issue;
private GHRepository repository;

public String getAction() {
return action;
}

public GHIssueComment getComment() {
return comment;
}

public void setComment(GHIssueComment comment) {
this.comment = comment;
}

public GHIssue getIssue() {
return issue;
}

public void setIssue(GHIssue issue) {
this.issue = issue;
}

public GHRepository getRepository() {
return repository;
}

public void setRepository(GHRepository repository) {
this.repository = repository;
}

@Override
void wrapUp(GitHub root) {
super.wrapUp(root);
repository.wrap(root);
issue.wrap(repository);
comment.wrapUp(issue);
}
}
}