added more payload types and tests

This commit is contained in:
David Martin
2015-03-02 22:15:13 +00:00
parent 3490f86789
commit ecc3aeec62
15 changed files with 413 additions and 15 deletions
+14
View File
@@ -162,6 +162,20 @@ namespace Octokit.Internal
{
case "commit_comment":
return typeof(CommitCommentPayload);
case "fork":
return typeof(ForkEventPayload);
case "issue_comment":
return typeof(IssueCommentPayload);
case "issues":
return typeof(IssueEventPayload);
case "pull_request":
return typeof(PullRequestEventPayload);
case "pull_request_review_comment":
return typeof(PullRequestCommentPayload);
case "push":
return typeof(PushEventPayload);
case "watch":
return typeof(StarredEventPayload);
}
return typeof(ActivityPayload);
}