package org.kohsuke.github;

import java.io.Reader;

/**
 * Base type for types used in databinding of the event payload.
 * 
 * @see GitHub#parseEventPayload(Reader, Class)
 * @see GHEventInfo#getPayload(Class)
 */
public abstract class GHEventPayload {
    protected GitHub root;

    /*package*/ GHEventPayload() {
    }

    /*package*/ void wrapUp(GitHub root) {
        this.root = root;
    }

    public static class PullRequest extends GHEventPayload {
        private String action;
        private int number;
        GHPullRequest pull_request;

        public String getAction() {
            return action;
        }

        public int getNumber() {
            return number;
        }

        public GHPullRequest getPullRequest() {
            pull_request.root = root;
            return pull_request;
        }

        @Override
        void wrapUp(GitHub root) {
            super.wrapUp(root);
            pull_request.wrapUp(root);
        }
    }

}

@@ -522,16 +522,24 @@
         
+private 
 GHPullRe
@@ -974,11 +974,895 @@
 %7D%0A    %7D%0A
+%09%0A    public static class IssueComment extends GHEventPayload %7B%0A        private String action;%0A        private GHIssueComment comment;%0A%09%09private GHIssue issue;%0A%09%09private GHRepository repository;%0A%0A        public String getAction() %7B%0A            return action;%0A        %7D%0A%0A%09%09public GHIssueComment getComment() %7B%0A%09%09%09return comment;%0A%09%09%7D%0A%0A%09%09public void setComment(GHIssueComment comment) %7B%0A%09%09%09this.comment = comment;%0A%09%09%7D%0A%0A%09%09public GHIssue getIssue() %7B%0A%09%09%09return issue;%0A%09%09%7D%0A%0A%09%09public void setIssue(GHIssue issue) %7B%0A%09%09%09this.issue = issue;%0A%09%09%7D%0A%0A%09%09public GHRepository getRepository() %7B%0A%09%09%09return repository;%0A%09%09%7D%0A%0A%09%09public void setRepository(GHRepository repository) %7B%0A%09%09%09this.repository = repository;%0A%09%09%7D%0A%0A        @Override%0A        void wrapUp(GitHub root) %7B%0A            super.wrapUp(root);%0A%09%09%09repository.wrap(root);%0A            issue.wrap(repository);%0A%09%09%09comment.wrapUp(issue);%0A        %7D%0A    %7D
 %0A%7D%0A

Implement GHEventPayload.IssueComment