{"action":"created","comment":{"url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/pulls/comments/145885319","pull_request_review_id":70751594,"id":145885319,"diff_hunk":"@@ -88,6 +89,7 @@\n \n     private String rawType;\n     private String extraPayload;\n+    private JsonObject extras;","path":"chat/src/main/java/com/qiscus/sdk/data/model/QiscusComment.java","position":12,"original_position":12,"commit_id":"c45f4d138d4dd054ca3db7d660e9094968e1144d","original_commit_id":"c45f4d138d4dd054ca3db7d660e9094968e1144d","user":{"login":"zetbaitsu","id":10556814,"avatar_url":"https://avatars1.githubusercontent.com/u/10556814?v=4","gravatar_id":"","url":"https://api.github.com/users/zetbaitsu","html_url":"https://github.com/zetbaitsu","followers_url":"https://api.github.com/users/zetbaitsu/followers","following_url":"https://api.github.com/users/zetbaitsu/following{/other_user}","gists_url":"https://api.github.com/users/zetbaitsu/gists{/gist_id}","starred_url":"https://api.github.com/users/zetbaitsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zetbaitsu/subscriptions","organizations_url":"https://api.github.com/users/zetbaitsu/orgs","repos_url":"https://api.github.com/users/zetbaitsu/repos","events_url":"https://api.github.com/users/zetbaitsu/events{/privacy}","received_events_url":"https://api.github.com/users/zetbaitsu/received_events","type":"User","site_admin":false},"body":"ini pake org.json.JSONObject aja mas, sama di parcel mas jangan lupa, kalo ga nanti isinya ilang kalo di pass via intent","created_at":"2017-10-20T06:16:30Z","updated_at":"2017-10-20T06:20:44Z","html_url":"https://github.com/qiscus/qiscus-sdk-android/pull/23#discussion_r145885319","pull_request_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/pulls/23","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/qiscus/qiscus-sdk-android/pulls/comments/145885319"},"html":{"href":"https://github.com/qiscus/qiscus-sdk-android/pull/23#discussion_r145885319"},"pull_request":{"href":"https://api.github.com/repos/qiscus/qiscus-sdk-android/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/pulls/23","id":147723262,"html_url":"https://github.com/qiscus/qiscus-sdk-android/pull/23","diff_url":"https://github.com/qiscus/qiscus-sdk-android/pull/23.diff","patch_url":"https://github.com/qiscus/qiscus-sdk-android/pull/23.patch","issue_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/issues/23","number":23,"state":"open","locked":false,"title":"add extras in comment","user":{"login":"andhikayuana","id":10376354,"avatar_url":"https://avatars0.githubusercontent.com/u/10376354?v=4","gravatar_id":"","url":"https://api.github.com/users/andhikayuana","html_url":"https://github.com/andhikayuana","followers_url":"https://api.github.com/users/andhikayuana/followers","following_url":"https://api.github.com/users/andhikayuana/following{/other_user}","gists_url":"https://api.github.com/users/andhikayuana/gists{/gist_id}","starred_url":"https://api.github.com/users/andhikayuana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andhikayuana/subscriptions","organizations_url":"https://api.github.com/users/andhikayuana/orgs","repos_url":"https://api.github.com/users/andhikayuana/repos","events_url":"https://api.github.com/users/andhikayuana/events{/privacy}","received_events_url":"https://api.github.com/users/andhikayuana/received_events","type":"User","site_admin":false},"body":"you can intercept comment before send to server like this : \r\n\r\n```java\r\nimport com.google.gson.Gson;\r\nimport com.google.gson.JsonObject;\r\nimport com.qiscus.sdk.Qiscus;\r\n\r\n/** intercept **/\r\nQiscus.getChatConfig()\r\n                .setCommentSendingInterceptor(qiscusComment -> {\r\n                    qiscusComment.setExtras(extras());\r\n                    return qiscusComment;\r\n                });\r\n\r\n/** some extras method **/\r\nprivate JsonObject extras() {\r\n        return new Gson().fromJson(\"{\\\"id\\\":123, \\\"name\\\": \\\"yuana\\\"}\", JsonObject.class);\r\n    }\r\n```","created_at":"2017-10-20T05:47:38Z","updated_at":"2017-10-20T06:20:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"136731c30feee4974fbdb2fa6588ae2a905817c7","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/pulls/23/commits","review_comments_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/pulls/23/comments","review_comment_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/issues/23/comments","statuses_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/statuses/c45f4d138d4dd054ca3db7d660e9094968e1144d","head":{"label":"andhikayuana:feature/comment-extras-interceptor","ref":"feature/comment-extras-interceptor","sha":"c45f4d138d4dd054ca3db7d660e9094968e1144d","user":{"login":"andhikayuana","id":10376354,"avatar_url":"https://avatars0.githubusercontent.com/u/10376354?v=4","gravatar_id":"","url":"https://api.github.com/users/andhikayuana","html_url":"https://github.com/andhikayuana","followers_url":"https://api.github.com/users/andhikayuana/followers","following_url":"https://api.github.com/users/andhikayuana/following{/other_user}","gists_url":"https://api.github.com/users/andhikayuana/gists{/gist_id}","starred_url":"https://api.github.com/users/andhikayuana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andhikayuana/subscriptions","organizations_url":"https://api.github.com/users/andhikayuana/orgs","repos_url":"https://api.github.com/users/andhikayuana/repos","events_url":"https://api.github.com/users/andhikayuana/events{/privacy}","received_events_url":"https://api.github.com/users/andhikayuana/received_events","type":"User","site_admin":false},"repo":{"id":107074548,"name":"qiscus-sdk-android","full_name":"andhikayuana/qiscus-sdk-android","owner":{"login":"andhikayuana","id":10376354,"avatar_url":"https://avatars0.githubusercontent.com/u/10376354?v=4","gravatar_id":"","url":"https://api.github.com/users/andhikayuana","html_url":"https://github.com/andhikayuana","followers_url":"https://api.github.com/users/andhikayuana/followers","following_url":"https://api.github.com/users/andhikayuana/following{/other_user}","gists_url":"https://api.github.com/users/andhikayuana/gists{/gist_id}","starred_url":"https://api.github.com/users/andhikayuana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andhikayuana/subscriptions","organizations_url":"https://api.github.com/users/andhikayuana/orgs","repos_url":"https://api.github.com/users/andhikayuana/repos","events_url":"https://api.github.com/users/andhikayuana/events{/privacy}","received_events_url":"https://api.github.com/users/andhikayuana/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andhikayuana/qiscus-sdk-android","description":"Qiscus provide everything you need to power up your app with chats. And it's now made simple.","fork":true,"url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android","forks_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/forks","keys_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/teams","hooks_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/hooks","issue_events_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/issues/events{/number}","events_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/events","assignees_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/assignees{/user}","branches_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/branches{/branch}","tags_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/tags","blobs_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/statuses/{sha}","languages_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/languages","stargazers_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/stargazers","contributors_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/contributors","subscribers_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/subscribers","subscription_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/subscription","commits_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/contents/{+path}","compare_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/merges","archive_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/downloads","issues_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/issues{/number}","pulls_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/pulls{/number}","milestones_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/milestones{/number}","notifications_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/labels{/name}","releases_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/releases{/id}","deployments_url":"https://api.github.com/repos/andhikayuana/qiscus-sdk-android/deployments","created_at":"2017-10-16T03:36:38Z","updated_at":"2017-10-16T03:36:40Z","pushed_at":"2017-10-20T05:53:32Z","git_url":"git://github.com/andhikayuana/qiscus-sdk-android.git","ssh_url":"git@github.com:andhikayuana/qiscus-sdk-android.git","clone_url":"https://github.com/andhikayuana/qiscus-sdk-android.git","svn_url":"https://github.com/andhikayuana/qiscus-sdk-android","homepage":"https://www.qiscus.com","size":7515,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"qiscus:develop","ref":"develop","sha":"fbd7632151b563ee4ff0f48cf5fbdee062288447","user":{"login":"qiscus","id":4373073,"avatar_url":"https://avatars0.githubusercontent.com/u/4373073?v=4","gravatar_id":"","url":"https://api.github.com/users/qiscus","html_url":"https://github.com/qiscus","followers_url":"https://api.github.com/users/qiscus/followers","following_url":"https://api.github.com/users/qiscus/following{/other_user}","gists_url":"https://api.github.com/users/qiscus/gists{/gist_id}","starred_url":"https://api.github.com/users/qiscus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiscus/subscriptions","organizations_url":"https://api.github.com/users/qiscus/orgs","repos_url":"https://api.github.com/users/qiscus/repos","events_url":"https://api.github.com/users/qiscus/events{/privacy}","received_events_url":"https://api.github.com/users/qiscus/received_events","type":"Organization","site_admin":false},"repo":{"id":67098309,"name":"qiscus-sdk-android","full_name":"qiscus/qiscus-sdk-android","owner":{"login":"qiscus","id":4373073,"avatar_url":"https://avatars0.githubusercontent.com/u/4373073?v=4","gravatar_id":"","url":"https://api.github.com/users/qiscus","html_url":"https://github.com/qiscus","followers_url":"https://api.github.com/users/qiscus/followers","following_url":"https://api.github.com/users/qiscus/following{/other_user}","gists_url":"https://api.github.com/users/qiscus/gists{/gist_id}","starred_url":"https://api.github.com/users/qiscus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiscus/subscriptions","organizations_url":"https://api.github.com/users/qiscus/orgs","repos_url":"https://api.github.com/users/qiscus/repos","events_url":"https://api.github.com/users/qiscus/events{/privacy}","received_events_url":"https://api.github.com/users/qiscus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qiscus/qiscus-sdk-android","description":"Qiscus provide everything you need to power up your app with chats. And it's now made simple.","fork":false,"url":"https://api.github.com/repos/qiscus/qiscus-sdk-android","forks_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/forks","keys_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/teams","hooks_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/hooks","issue_events_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/issues/events{/number}","events_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/events","assignees_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/assignees{/user}","branches_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/branches{/branch}","tags_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/tags","blobs_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/statuses/{sha}","languages_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/languages","stargazers_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/stargazers","contributors_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/contributors","subscribers_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/subscribers","subscription_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/subscription","commits_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/contents/{+path}","compare_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/merges","archive_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/downloads","issues_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/issues{/number}","pulls_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/pulls{/number}","milestones_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/milestones{/number}","notifications_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/labels{/name}","releases_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/releases{/id}","deployments_url":"https://api.github.com/repos/qiscus/qiscus-sdk-android/deployments","created_at":"2016-09-01T04:35:28Z","updated_at":"2017-10-09T13:44:56Z","pushed_at":"2017-10-20T05:53:33Z","git_url":"git://github.com/qiscus/qiscus-sdk-android.git","ssh_url":"git@github.com:qiscus/qiscus-sdk-android.git","clone_url":"https://github.com/qiscus/qiscus-sdk-android.git","svn_url":"https://github.com/qiscus/qiscus-sdk-android","homepage":"https://www.qiscus.com","size":7520,"stargazers_count":112,"watchers_count":112,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":38,"mirror_url":null,"open_issues_count":1,"forks":38,"open_issues":1,"watchers":112,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qiscus/qiscus-sdk-android/pulls/23"},"html":{"href":"https://github.com/qiscus/qiscus-sdk-android/pull/23"},"issue":{"href":"https://api.github.com/repos/qiscus/qiscus-sdk-android/issues/23"},"comments":{"href":"https://api.github.com/repos/qiscus/qiscus-sdk-android/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/qiscus/qiscus-sdk-android/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/qiscus/qiscus-sdk-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qiscus/qiscus-sdk-android/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/qiscus/qiscus-sdk-android/statuses/c45f4d138d4dd054ca3db7d660e9094968e1144d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"zetbaitsu"}}