Skip to content

Commit

Permalink
Implement GHEventPayload.IssueComment
Browse files Browse the repository at this point in the history
  • Loading branch information
janinko committed Apr 13, 2013
1 parent ba416b1 commit e8a2a69
Showing 1 changed file with 43 additions and 1 deletion.
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);
}
}
}

0 comments on commit e8a2a69

Please sign in to comment.