{"action":"created","comment":{"url":"https://api.github.com/repos/pusher/pusher-http-java/pulls/comments/27407795","id":27407795,"diff_hunk":"@@ -0,0 +1,58 @@\n+package com.pusher.rest.data;\n+\n+import java.util.Map;\n+\n+import com.google.gson.Gson;\n+\n+public class TriggerResult {\n+    static class Data {\n+        public final Map<String, String> event_ids;\n+\n+        public Data(final Map<String, String> event_ids) {\n+            this.event_ids = event_ids;\n+        }\n+    }\n+\n+    private static final Gson GSON = new Gson();\n+\n+    private final Result.Status status;\n+    private final Integer httpStatus;\n+    private final String message;\n+\n+    public TriggerResult(final Result result) {\n+        this.status = result.getStatus();\n+        this.httpStatus = result.getHttpStatus();\n+        this.message = result.getMessage();\n+    }\n+\n+    /**\n+     * Get the enum classifying the result of the call\n+     */\n+    public Result.Status getStatus() {\n+        return status;\n+    }\n+\n+    /**\n+     * Get the HTTP status code of the call, useful for debugging instances of UNKNOWN_ERROR\n+     */\n+    public Integer getHttpStatus() {\n+        return httpStatus;\n+    }\n+\n+    /**\n+     * Get the data response (success) or descriptive message (error) returned from the call\n+     */\n+    public String getMessage() {\n+        return message;","path":"src/main/java/com/pusher/rest/data/TriggerResult.java","position":49,"original_position":46,"commit_id":"2689514d0ad1e5e309be6eb2fa6914f9dfb5a7fd","original_commit_id":"acccd55279d7da50501e0d447edd08e94fec4ef1","user":{"login":"zimbatm","id":3248,"avatar_url":"https://avatars.githubusercontent.com/u/3248?v=3","gravatar_id":"","url":"https://api.github.com/users/zimbatm","html_url":"https://github.com/zimbatm","followers_url":"https://api.github.com/users/zimbatm/followers","following_url":"https://api.github.com/users/zimbatm/following{/other_user}","gists_url":"https://api.github.com/users/zimbatm/gists{/gist_id}","starred_url":"https://api.github.com/users/zimbatm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zimbatm/subscriptions","organizations_url":"https://api.github.com/users/zimbatm/orgs","repos_url":"https://api.github.com/users/zimbatm/repos","events_url":"https://api.github.com/users/zimbatm/events{/privacy}","received_events_url":"https://api.github.com/users/zimbatm/received_events","type":"User","site_admin":false},"body":"I'm not sure about that one. I would like to keep API compatibility with the Result (should I introduce an IResult ?) object which is using getMessage() to return the body.","created_at":"2015-03-30T16:47:01Z","updated_at":"2015-03-30T16:47:01Z","html_url":"https://github.com/pusher/pusher-http-java/pull/4#discussion_r27407795","pull_request_url":"https://api.github.com/repos/pusher/pusher-http-java/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/pusher/pusher-http-java/pulls/comments/27407795"},"html":{"href":"https://github.com/pusher/pusher-http-java/pull/4#discussion_r27407795"},"pull_request":{"href":"https://api.github.com/repos/pusher/pusher-http-java/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/pusher/pusher-http-java/pulls/4","id":32124119,"html_url":"https://github.com/pusher/pusher-http-java/pull/4","diff_url":"https://github.com/pusher/pusher-http-java/pull/4.diff","patch_url":"https://github.com/pusher/pusher-http-java/pull/4.patch","issue_url":"https://api.github.com/repos/pusher/pusher-http-java/issues/4","number":4,"state":"open","locked":false,"title":"Event buffer","user":{"login":"zimbatm","id":3248,"avatar_url":"https://avatars.githubusercontent.com/u/3248?v=3","gravatar_id":"","url":"https://api.github.com/users/zimbatm","html_url":"https://github.com/zimbatm","followers_url":"https://api.github.com/users/zimbatm/followers","following_url":"https://api.github.com/users/zimbatm/following{/other_user}","gists_url":"https://api.github.com/users/zimbatm/gists{/gist_id}","starred_url":"https://api.github.com/users/zimbatm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zimbatm/subscriptions","organizations_url":"https://api.github.com/users/zimbatm/orgs","repos_url":"https://api.github.com/users/zimbatm/repos","events_url":"https://api.github.com/users/zimbatm/events{/privacy}","received_events_url":"https://api.github.com/users/zimbatm/received_events","type":"User","site_admin":false},"body":"WIP:\r\n* [x] TriggerData\r\n* [x] Unit test","created_at":"2015-03-27T16:44:47Z","updated_at":"2015-03-30T16:47:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"746e73a33458355458cd0261eb1e9d180e815299","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pusher/pusher-http-java/pulls/4/commits","review_comments_url":"https://api.github.com/repos/pusher/pusher-http-java/pulls/4/comments","review_comment_url":"https://api.github.com/repos/pusher/pusher-http-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pusher/pusher-http-java/issues/4/comments","statuses_url":"https://api.github.com/repos/pusher/pusher-http-java/statuses/2689514d0ad1e5e309be6eb2fa6914f9dfb5a7fd","head":{"label":"pusher:event-buffer","ref":"event-buffer","sha":"2689514d0ad1e5e309be6eb2fa6914f9dfb5a7fd","user":{"login":"pusher","id":739550,"avatar_url":"https://avatars.githubusercontent.com/u/739550?v=3","gravatar_id":"","url":"https://api.github.com/users/pusher","html_url":"https://github.com/pusher","followers_url":"https://api.github.com/users/pusher/followers","following_url":"https://api.github.com/users/pusher/following{/other_user}","gists_url":"https://api.github.com/users/pusher/gists{/gist_id}","starred_url":"https://api.github.com/users/pusher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pusher/subscriptions","organizations_url":"https://api.github.com/users/pusher/orgs","repos_url":"https://api.github.com/users/pusher/repos","events_url":"https://api.github.com/users/pusher/events{/privacy}","received_events_url":"https://api.github.com/users/pusher/received_events","type":"Organization","site_admin":false},"repo":{"id":20939822,"name":"pusher-http-java","full_name":"pusher/pusher-http-java","owner":{"login":"pusher","id":739550,"avatar_url":"https://avatars.githubusercontent.com/u/739550?v=3","gravatar_id":"","url":"https://api.github.com/users/pusher","html_url":"https://github.com/pusher","followers_url":"https://api.github.com/users/pusher/followers","following_url":"https://api.github.com/users/pusher/following{/other_user}","gists_url":"https://api.github.com/users/pusher/gists{/gist_id}","starred_url":"https://api.github.com/users/pusher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pusher/subscriptions","organizations_url":"https://api.github.com/users/pusher/orgs","repos_url":"https://api.github.com/users/pusher/repos","events_url":"https://api.github.com/users/pusher/events{/privacy}","received_events_url":"https://api.github.com/users/pusher/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pusher/pusher-http-java","description":"Java client to interact with the Pusher HTTP API","fork":false,"url":"https://api.github.com/repos/pusher/pusher-http-java","forks_url":"https://api.github.com/repos/pusher/pusher-http-java/forks","keys_url":"https://api.github.com/repos/pusher/pusher-http-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pusher/pusher-http-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pusher/pusher-http-java/teams","hooks_url":"https://api.github.com/repos/pusher/pusher-http-java/hooks","issue_events_url":"https://api.github.com/repos/pusher/pusher-http-java/issues/events{/number}","events_url":"https://api.github.com/repos/pusher/pusher-http-java/events","assignees_url":"https://api.github.com/repos/pusher/pusher-http-java/assignees{/user}","branches_url":"https://api.github.com/repos/pusher/pusher-http-java/branches{/branch}","tags_url":"https://api.github.com/repos/pusher/pusher-http-java/tags","blobs_url":"https://api.github.com/repos/pusher/pusher-http-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pusher/pusher-http-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pusher/pusher-http-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/pusher/pusher-http-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pusher/pusher-http-java/statuses/{sha}","languages_url":"https://api.github.com/repos/pusher/pusher-http-java/languages","stargazers_url":"https://api.github.com/repos/pusher/pusher-http-java/stargazers","contributors_url":"https://api.github.com/repos/pusher/pusher-http-java/contributors","subscribers_url":"https://api.github.com/repos/pusher/pusher-http-java/subscribers","subscription_url":"https://api.github.com/repos/pusher/pusher-http-java/subscription","commits_url":"https://api.github.com/repos/pusher/pusher-http-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/pusher/pusher-http-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/pusher/pusher-http-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/pusher/pusher-http-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/pusher/pusher-http-java/contents/{+path}","compare_url":"https://api.github.com/repos/pusher/pusher-http-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pusher/pusher-http-java/merges","archive_url":"https://api.github.com/repos/pusher/pusher-http-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pusher/pusher-http-java/downloads","issues_url":"https://api.github.com/repos/pusher/pusher-http-java/issues{/number}","pulls_url":"https://api.github.com/repos/pusher/pusher-http-java/pulls{/number}","milestones_url":"https://api.github.com/repos/pusher/pusher-http-java/milestones{/number}","notifications_url":"https://api.github.com/repos/pusher/pusher-http-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pusher/pusher-http-java/labels{/name}","releases_url":"https://api.github.com/repos/pusher/pusher-http-java/releases{/id}","created_at":"2014-06-17T21:15:08Z","updated_at":"2015-03-27T16:30:09Z","pushed_at":"2015-03-30T16:34:44Z","git_url":"git://github.com/pusher/pusher-http-java.git","ssh_url":"git@github.com:pusher/pusher-http-java.git","clone_url":"https://github.com/pusher/pusher-http-java.git","svn_url":"https://github.com/pusher/pusher-http-java","homepage":"","size":468,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":5,"default_branch":"master"}},"base":{"label":"pusher:master","ref":"master","sha":"46e9ae1f49b3b7ef9cd30cb86797f2a5d2f29998","user":{"login":"pusher","id":739550,"avatar_url":"https://avatars.githubusercontent.com/u/739550?v=3","gravatar_id":"","url":"https://api.github.com/users/pusher","html_url":"https://github.com/pusher","followers_url":"https://api.github.com/users/pusher/followers","following_url":"https://api.github.com/users/pusher/following{/other_user}","gists_url":"https://api.github.com/users/pusher/gists{/gist_id}","starred_url":"https://api.github.com/users/pusher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pusher/subscriptions","organizations_url":"https://api.github.com/users/pusher/orgs","repos_url":"https://api.github.com/users/pusher/repos","events_url":"https://api.github.com/users/pusher/events{/privacy}","received_events_url":"https://api.github.com/users/pusher/received_events","type":"Organization","site_admin":false},"repo":{"id":20939822,"name":"pusher-http-java","full_name":"pusher/pusher-http-java","owner":{"login":"pusher","id":739550,"avatar_url":"https://avatars.githubusercontent.com/u/739550?v=3","gravatar_id":"","url":"https://api.github.com/users/pusher","html_url":"https://github.com/pusher","followers_url":"https://api.github.com/users/pusher/followers","following_url":"https://api.github.com/users/pusher/following{/other_user}","gists_url":"https://api.github.com/users/pusher/gists{/gist_id}","starred_url":"https://api.github.com/users/pusher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pusher/subscriptions","organizations_url":"https://api.github.com/users/pusher/orgs","repos_url":"https://api.github.com/users/pusher/repos","events_url":"https://api.github.com/users/pusher/events{/privacy}","received_events_url":"https://api.github.com/users/pusher/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pusher/pusher-http-java","description":"Java client to interact with the Pusher HTTP API","fork":false,"url":"https://api.github.com/repos/pusher/pusher-http-java","forks_url":"https://api.github.com/repos/pusher/pusher-http-java/forks","keys_url":"https://api.github.com/repos/pusher/pusher-http-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pusher/pusher-http-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pusher/pusher-http-java/teams","hooks_url":"https://api.github.com/repos/pusher/pusher-http-java/hooks","issue_events_url":"https://api.github.com/repos/pusher/pusher-http-java/issues/events{/number}","events_url":"https://api.github.com/repos/pusher/pusher-http-java/events","assignees_url":"https://api.github.com/repos/pusher/pusher-http-java/assignees{/user}","branches_url":"https://api.github.com/repos/pusher/pusher-http-java/branches{/branch}","tags_url":"https://api.github.com/repos/pusher/pusher-http-java/tags","blobs_url":"https://api.github.com/repos/pusher/pusher-http-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pusher/pusher-http-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pusher/pusher-http-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/pusher/pusher-http-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pusher/pusher-http-java/statuses/{sha}","languages_url":"https://api.github.com/repos/pusher/pusher-http-java/languages","stargazers_url":"https://api.github.com/repos/pusher/pusher-http-java/stargazers","contributors_url":"https://api.github.com/repos/pusher/pusher-http-java/contributors","subscribers_url":"https://api.github.com/repos/pusher/pusher-http-java/subscribers","subscription_url":"https://api.github.com/repos/pusher/pusher-http-java/subscription","commits_url":"https://api.github.com/repos/pusher/pusher-http-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/pusher/pusher-http-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/pusher/pusher-http-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/pusher/pusher-http-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/pusher/pusher-http-java/contents/{+path}","compare_url":"https://api.github.com/repos/pusher/pusher-http-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pusher/pusher-http-java/merges","archive_url":"https://api.github.com/repos/pusher/pusher-http-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pusher/pusher-http-java/downloads","issues_url":"https://api.github.com/repos/pusher/pusher-http-java/issues{/number}","pulls_url":"https://api.github.com/repos/pusher/pusher-http-java/pulls{/number}","milestones_url":"https://api.github.com/repos/pusher/pusher-http-java/milestones{/number}","notifications_url":"https://api.github.com/repos/pusher/pusher-http-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pusher/pusher-http-java/labels{/name}","releases_url":"https://api.github.com/repos/pusher/pusher-http-java/releases{/id}","created_at":"2014-06-17T21:15:08Z","updated_at":"2015-03-27T16:30:09Z","pushed_at":"2015-03-30T16:34:44Z","git_url":"git://github.com/pusher/pusher-http-java.git","ssh_url":"git@github.com:pusher/pusher-http-java.git","clone_url":"https://github.com/pusher/pusher-http-java.git","svn_url":"https://github.com/pusher/pusher-http-java","homepage":"","size":468,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pusher/pusher-http-java/pulls/4"},"html":{"href":"https://github.com/pusher/pusher-http-java/pull/4"},"issue":{"href":"https://api.github.com/repos/pusher/pusher-http-java/issues/4"},"comments":{"href":"https://api.github.com/repos/pusher/pusher-http-java/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/pusher/pusher-http-java/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/pusher/pusher-http-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pusher/pusher-http-java/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/pusher/pusher-http-java/statuses/2689514d0ad1e5e309be6eb2fa6914f9dfb5a7fd"}}}}