{"action":"created","comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/comments/85105556","pull_request_review_id":5839536,"id":85105556,"diff_hunk":"@@ -44,8 +83,53 @@ public void onStop() {\n         mDispatcher.unregister(this);\n     }\n \n-    @Subscribe(threadMode = ThreadMode.MAIN)\n-    public void onSiteChanged(OnSiteChanged event) {\n+    private SiteModel getFirstSite() {\n+        return mSiteStore.getSites().get(0);\n+    }\n+\n+    private CommentModel getFirstComment() {\n+        return mCommentStore.getCommentsForSite(getFirstSite(), CommentStatus.ALL).get(0);\n+    }\n+\n+    private void fetchCommentsFirstSite() {\n+        mDispatcher.dispatch(CommentActionBuilder.newFetchCommentsAction(\n+                new FetchCommentsPayload(getFirstSite(), 5, 0)));\n+    }\n+\n+    private void replyToFirstComment() {\n+        InstantiateCommentPayload payload = new InstantiateCommentPayload(getFirstSite());\n+        mCountDownLatch = new CountDownLatch(1);\n+        mDispatcher.dispatch(CommentActionBuilder.newInstantiateCommentAction(payload));\n+        try {\n+            assertEquals(true, mCountDownLatch.await(2, TimeUnit.SECONDS));\n+            mNewComment.setContent(\"I'm a new comment from the FluxC example app.\");","path":"example/src/main/java/org/wordpress/android/fluxc/example/CommentsFragment.java","position":94,"original_position":94,"commit_id":"fb6f7faafff41997fb8008c6705cfd94b0e3c186","original_commit_id":"fb6f7faafff41997fb8008c6705cfd94b0e3c186","user":{"login":"oguzkocer","id":662023,"avatar_url":"https://avatars.githubusercontent.com/u/662023?v=3","gravatar_id":"","url":"https://api.github.com/users/oguzkocer","html_url":"https://github.com/oguzkocer","followers_url":"https://api.github.com/users/oguzkocer/followers","following_url":"https://api.github.com/users/oguzkocer/following{/other_user}","gists_url":"https://api.github.com/users/oguzkocer/gists{/gist_id}","starred_url":"https://api.github.com/users/oguzkocer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oguzkocer/subscriptions","organizations_url":"https://api.github.com/users/oguzkocer/orgs","repos_url":"https://api.github.com/users/oguzkocer/repos","events_url":"https://api.github.com/users/oguzkocer/events{/privacy}","received_events_url":"https://api.github.com/users/oguzkocer/received_events","type":"User","site_admin":false},"body":"It might be good to randomize this comment, so we don't get the `DUPLICATE_COMMENT` error while testing.","created_at":"2016-10-26T11:57:21Z","updated_at":"2016-10-26T11:57:21Z","html_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/202#discussion_r85105556","pull_request_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/202","_links":{"self":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/comments/85105556"},"html":{"href":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/202#discussion_r85105556"},"pull_request":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/202"}}},"pull_request":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/202","id":90791842,"html_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/202","diff_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/202.diff","patch_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/202.patch","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/202","number":202,"state":"open","locked":false,"title":"Example app: add some comment actions","user":{"login":"maxme","id":40213,"avatar_url":"https://avatars.githubusercontent.com/u/40213?v=3","gravatar_id":"","url":"https://api.github.com/users/maxme","html_url":"https://github.com/maxme","followers_url":"https://api.github.com/users/maxme/followers","following_url":"https://api.github.com/users/maxme/following{/other_user}","gists_url":"https://api.github.com/users/maxme/gists{/gist_id}","starred_url":"https://api.github.com/users/maxme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxme/subscriptions","organizations_url":"https://api.github.com/users/maxme/orgs","repos_url":"https://api.github.com/users/maxme/repos","events_url":"https://api.github.com/users/maxme/events{/privacy}","received_events_url":"https://api.github.com/users/maxme/received_events","type":"User","site_admin":false},"body":"Add comment actions to the example app.","created_at":"2016-10-25T11:51:03Z","updated_at":"2016-10-26T11:59:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40dcae22ffbed515fb53fda96f86c016fabd9304","assignee":{"login":"oguzkocer","id":662023,"avatar_url":"https://avatars.githubusercontent.com/u/662023?v=3","gravatar_id":"","url":"https://api.github.com/users/oguzkocer","html_url":"https://github.com/oguzkocer","followers_url":"https://api.github.com/users/oguzkocer/followers","following_url":"https://api.github.com/users/oguzkocer/following{/other_user}","gists_url":"https://api.github.com/users/oguzkocer/gists{/gist_id}","starred_url":"https://api.github.com/users/oguzkocer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oguzkocer/subscriptions","organizations_url":"https://api.github.com/users/oguzkocer/orgs","repos_url":"https://api.github.com/users/oguzkocer/repos","events_url":"https://api.github.com/users/oguzkocer/events{/privacy}","received_events_url":"https://api.github.com/users/oguzkocer/received_events","type":"User","site_admin":false},"assignees":[{"login":"oguzkocer","id":662023,"avatar_url":"https://avatars.githubusercontent.com/u/662023?v=3","gravatar_id":"","url":"https://api.github.com/users/oguzkocer","html_url":"https://github.com/oguzkocer","followers_url":"https://api.github.com/users/oguzkocer/followers","following_url":"https://api.github.com/users/oguzkocer/following{/other_user}","gists_url":"https://api.github.com/users/oguzkocer/gists{/gist_id}","starred_url":"https://api.github.com/users/oguzkocer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oguzkocer/subscriptions","organizations_url":"https://api.github.com/users/oguzkocer/orgs","repos_url":"https://api.github.com/users/oguzkocer/repos","events_url":"https://api.github.com/users/oguzkocer/events{/privacy}","received_events_url":"https://api.github.com/users/oguzkocer/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/202/commits","review_comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/202/comments","review_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/202/comments","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/statuses/fb6f7faafff41997fb8008c6705cfd94b0e3c186","head":{"label":"wordpress-mobile:issue/example-app-comments","ref":"issue/example-app-comments","sha":"fb6f7faafff41997fb8008c6705cfd94b0e3c186","user":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"repo":{"id":48792991,"name":"WordPress-FluxC-Android","full_name":"wordpress-mobile/WordPress-FluxC-Android","owner":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android","description":"WordPress Network and Persistence layer based on the Flux architecture","fork":false,"url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android","forks_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/forks","keys_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/teams","hooks_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/hooks","issue_events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/events{/number}","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/events","assignees_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/assignees{/user}","branches_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/branches{/branch}","tags_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/tags","blobs_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/languages","stargazers_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/stargazers","contributors_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/contributors","subscribers_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/subscribers","subscription_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/subscription","commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/contents/{+path}","compare_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/merges","archive_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/downloads","issues_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues{/number}","pulls_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/labels{/name}","releases_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/releases{/id}","deployments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/deployments","created_at":"2015-12-30T09:21:57Z","updated_at":"2016-08-02T08:44:22Z","pushed_at":"2016-10-25T14:56:15Z","git_url":"git://github.com/wordpress-mobile/WordPress-FluxC-Android.git","ssh_url":"git@github.com:wordpress-mobile/WordPress-FluxC-Android.git","clone_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android.git","svn_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android","homepage":null,"size":2004,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":30,"forks":2,"open_issues":30,"watchers":1,"default_branch":"develop"}},"base":{"label":"wordpress-mobile:develop","ref":"develop","sha":"0917968fd964bae4cf33f7be764f02dc5d4f3784","user":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"repo":{"id":48792991,"name":"WordPress-FluxC-Android","full_name":"wordpress-mobile/WordPress-FluxC-Android","owner":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android","description":"WordPress Network and Persistence layer based on the Flux architecture","fork":false,"url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android","forks_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/forks","keys_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/teams","hooks_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/hooks","issue_events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/events{/number}","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/events","assignees_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/assignees{/user}","branches_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/branches{/branch}","tags_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/tags","blobs_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/languages","stargazers_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/stargazers","contributors_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/contributors","subscribers_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/subscribers","subscription_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/subscription","commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/contents/{+path}","compare_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/merges","archive_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/downloads","issues_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues{/number}","pulls_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/labels{/name}","releases_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/releases{/id}","deployments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/deployments","created_at":"2015-12-30T09:21:57Z","updated_at":"2016-08-02T08:44:22Z","pushed_at":"2016-10-25T14:56:15Z","git_url":"git://github.com/wordpress-mobile/WordPress-FluxC-Android.git","ssh_url":"git@github.com:wordpress-mobile/WordPress-FluxC-Android.git","clone_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android.git","svn_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android","homepage":null,"size":2004,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":30,"forks":2,"open_issues":30,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/202"},"html":{"href":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/202"},"issue":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/202"},"comments":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/202/comments"},"review_comments":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/202/comments"},"review_comment":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/202/commits"},"statuses":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/statuses/fb6f7faafff41997fb8008c6705cfd94b0e3c186"}}}}
{"actor":{"display_login":"oguzkocer"}}