{"action":"created","comment":{"url":"https://api.github.com/repos/xitu/gold-miner/pulls/comments/55930352","id":55930352,"diff_hunk":"@@ -132,12 +134,12 @@ Since this is just about the same as our original Listener example, we’ll go s\n     public boolean handleActivityResult(int requestCode, int resultCode, Intent data) {\n       return helper.handleActivityResult(requestCode, resultCode, data);\n     }\n+```\n+如你所见，`handleActivityResult()`方法只是简单地将结果传递给 IabHelper 来处理。如果那个 activity 的结果和我们的请求相匹配，我们创建的 Listener 会被调用，然后 Listener 再反过来调用我们的 subscriber 方法。\n \n-As you can see, our `handleActivityResult()` method simply passed the result through to the IabHelper to handle. If the activity result matches our request, the Listener we created will be called, which in turn calls our subscriber methods.\n-\n-Again, we need to be sure to check `subscriber.isUnsubscribed()` to ensure we still have someone who cares about the result.\n-\n-## Rx Everywhere\n+再次强调，我们需要检查`subscriber.isUnsubscribed()`来确保还有观察者需要我们的结果。\n \n-These are just a few examples showing how to wrap existing libraries in RxJava. That should help you consistently use Functional Reactive Programming throughout your Android apps, and take advantage of some of the many benefits.\n+## Rx全世界","path":"TODO/wrapping-existing-libraries-with-rxjava.md","position":150,"original_position":150,"commit_id":"ff493b18b56586dd52b65f8a467627b72f06df3e","original_commit_id":"ff493b18b56586dd52b65f8a467627b72f06df3e","user":{"login":"Sausure","id":9532423,"avatar_url":"https://avatars.githubusercontent.com/u/9532423?v=3","gravatar_id":"","url":"https://api.github.com/users/Sausure","html_url":"https://github.com/Sausure","followers_url":"https://api.github.com/users/Sausure/followers","following_url":"https://api.github.com/users/Sausure/following{/other_user}","gists_url":"https://api.github.com/users/Sausure/gists{/gist_id}","starred_url":"https://api.github.com/users/Sausure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sausure/subscriptions","organizations_url":"https://api.github.com/users/Sausure/orgs","repos_url":"https://api.github.com/users/Sausure/repos","events_url":"https://api.github.com/users/Sausure/events{/privacy}","received_events_url":"https://api.github.com/users/Sausure/received_events","type":"User","site_admin":false},"body":"Rx全世界->Rx无处不在","created_at":"2016-03-13T00:49:00Z","updated_at":"2016-03-13T00:49:00Z","html_url":"https://github.com/xitu/gold-miner/pull/201#discussion_r55930352","pull_request_url":"https://api.github.com/repos/xitu/gold-miner/pulls/201","_links":{"self":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/comments/55930352"},"html":{"href":"https://github.com/xitu/gold-miner/pull/201#discussion_r55930352"},"pull_request":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/201"}}},"pull_request":{"url":"https://api.github.com/repos/xitu/gold-miner/pulls/201","id":62502841,"html_url":"https://github.com/xitu/gold-miner/pull/201","diff_url":"https://github.com/xitu/gold-miner/pull/201.diff","patch_url":"https://github.com/xitu/gold-miner/pull/201.patch","issue_url":"https://api.github.com/repos/xitu/gold-miner/issues/201","number":201,"state":"open","locked":false,"title":"《wrapping-existing-libraries-with-rxjava》翻译初稿完成","user":{"login":"yinshudi","id":9293165,"avatar_url":"https://avatars.githubusercontent.com/u/9293165?v=3","gravatar_id":"","url":"https://api.github.com/users/yinshudi","html_url":"https://github.com/yinshudi","followers_url":"https://api.github.com/users/yinshudi/followers","following_url":"https://api.github.com/users/yinshudi/following{/other_user}","gists_url":"https://api.github.com/users/yinshudi/gists{/gist_id}","starred_url":"https://api.github.com/users/yinshudi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinshudi/subscriptions","organizations_url":"https://api.github.com/users/yinshudi/orgs","repos_url":"https://api.github.com/users/yinshudi/repos","events_url":"https://api.github.com/users/yinshudi/events{/privacy}","received_events_url":"https://api.github.com/users/yinshudi/received_events","type":"User","site_admin":false},"body":"rt","created_at":"2016-03-11T06:27:11Z","updated_at":"2016-03-13T00:49:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9b0999f7c47b4087a78df9bded964316b7811f42","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xitu/gold-miner/pulls/201/commits","review_comments_url":"https://api.github.com/repos/xitu/gold-miner/pulls/201/comments","review_comment_url":"https://api.github.com/repos/xitu/gold-miner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xitu/gold-miner/issues/201/comments","statuses_url":"https://api.github.com/repos/xitu/gold-miner/statuses/ff493b18b56586dd52b65f8a467627b72f06df3e","head":{"label":"yinshudi:master","ref":"master","sha":"ff493b18b56586dd52b65f8a467627b72f06df3e","user":{"login":"yinshudi","id":9293165,"avatar_url":"https://avatars.githubusercontent.com/u/9293165?v=3","gravatar_id":"","url":"https://api.github.com/users/yinshudi","html_url":"https://github.com/yinshudi","followers_url":"https://api.github.com/users/yinshudi/followers","following_url":"https://api.github.com/users/yinshudi/following{/other_user}","gists_url":"https://api.github.com/users/yinshudi/gists{/gist_id}","starred_url":"https://api.github.com/users/yinshudi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinshudi/subscriptions","organizations_url":"https://api.github.com/users/yinshudi/orgs","repos_url":"https://api.github.com/users/yinshudi/repos","events_url":"https://api.github.com/users/yinshudi/events{/privacy}","received_events_url":"https://api.github.com/users/yinshudi/received_events","type":"User","site_admin":false},"repo":{"id":48580420,"name":"gold-miner","full_name":"yinshudi/gold-miner","owner":{"login":"yinshudi","id":9293165,"avatar_url":"https://avatars.githubusercontent.com/u/9293165?v=3","gravatar_id":"","url":"https://api.github.com/users/yinshudi","html_url":"https://github.com/yinshudi","followers_url":"https://api.github.com/users/yinshudi/followers","following_url":"https://api.github.com/users/yinshudi/following{/other_user}","gists_url":"https://api.github.com/users/yinshudi/gists{/gist_id}","starred_url":"https://api.github.com/users/yinshudi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinshudi/subscriptions","organizations_url":"https://api.github.com/users/yinshudi/orgs","repos_url":"https://api.github.com/users/yinshudi/repos","events_url":"https://api.github.com/users/yinshudi/events{/privacy}","received_events_url":"https://api.github.com/users/yinshudi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yinshudi/gold-miner","description":"掘金翻译计划，翻译掘金上优质的英文文章","fork":true,"url":"https://api.github.com/repos/yinshudi/gold-miner","forks_url":"https://api.github.com/repos/yinshudi/gold-miner/forks","keys_url":"https://api.github.com/repos/yinshudi/gold-miner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yinshudi/gold-miner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yinshudi/gold-miner/teams","hooks_url":"https://api.github.com/repos/yinshudi/gold-miner/hooks","issue_events_url":"https://api.github.com/repos/yinshudi/gold-miner/issues/events{/number}","events_url":"https://api.github.com/repos/yinshudi/gold-miner/events","assignees_url":"https://api.github.com/repos/yinshudi/gold-miner/assignees{/user}","branches_url":"https://api.github.com/repos/yinshudi/gold-miner/branches{/branch}","tags_url":"https://api.github.com/repos/yinshudi/gold-miner/tags","blobs_url":"https://api.github.com/repos/yinshudi/gold-miner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yinshudi/gold-miner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yinshudi/gold-miner/git/refs{/sha}","trees_url":"https://api.github.com/repos/yinshudi/gold-miner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yinshudi/gold-miner/statuses/{sha}","languages_url":"https://api.github.com/repos/yinshudi/gold-miner/languages","stargazers_url":"https://api.github.com/repos/yinshudi/gold-miner/stargazers","contributors_url":"https://api.github.com/repos/yinshudi/gold-miner/contributors","subscribers_url":"https://api.github.com/repos/yinshudi/gold-miner/subscribers","subscription_url":"https://api.github.com/repos/yinshudi/gold-miner/subscription","commits_url":"https://api.github.com/repos/yinshudi/gold-miner/commits{/sha}","git_commits_url":"https://api.github.com/repos/yinshudi/gold-miner/git/commits{/sha}","comments_url":"https://api.github.com/repos/yinshudi/gold-miner/comments{/number}","issue_comment_url":"https://api.github.com/repos/yinshudi/gold-miner/issues/comments{/number}","contents_url":"https://api.github.com/repos/yinshudi/gold-miner/contents/{+path}","compare_url":"https://api.github.com/repos/yinshudi/gold-miner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yinshudi/gold-miner/merges","archive_url":"https://api.github.com/repos/yinshudi/gold-miner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yinshudi/gold-miner/downloads","issues_url":"https://api.github.com/repos/yinshudi/gold-miner/issues{/number}","pulls_url":"https://api.github.com/repos/yinshudi/gold-miner/pulls{/number}","milestones_url":"https://api.github.com/repos/yinshudi/gold-miner/milestones{/number}","notifications_url":"https://api.github.com/repos/yinshudi/gold-miner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yinshudi/gold-miner/labels{/name}","releases_url":"https://api.github.com/repos/yinshudi/gold-miner/releases{/id}","deployments_url":"https://api.github.com/repos/yinshudi/gold-miner/deployments","created_at":"2015-12-25T12:49:50Z","updated_at":"2016-01-19T09:12:59Z","pushed_at":"2016-03-11T13:31:46Z","git_url":"git://github.com/yinshudi/gold-miner.git","ssh_url":"git@github.com:yinshudi/gold-miner.git","clone_url":"https://github.com/yinshudi/gold-miner.git","svn_url":"https://github.com/yinshudi/gold-miner","homepage":"http://gold.xitu.io","size":8799,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"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":"xitu:master","ref":"master","sha":"b72a6735b15c3339c32c4c20b99a3bf2a5e9c287","user":{"login":"xitu","id":10482599,"avatar_url":"https://avatars.githubusercontent.com/u/10482599?v=3","gravatar_id":"","url":"https://api.github.com/users/xitu","html_url":"https://github.com/xitu","followers_url":"https://api.github.com/users/xitu/followers","following_url":"https://api.github.com/users/xitu/following{/other_user}","gists_url":"https://api.github.com/users/xitu/gists{/gist_id}","starred_url":"https://api.github.com/users/xitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xitu/subscriptions","organizations_url":"https://api.github.com/users/xitu/orgs","repos_url":"https://api.github.com/users/xitu/repos","events_url":"https://api.github.com/users/xitu/events{/privacy}","received_events_url":"https://api.github.com/users/xitu/received_events","type":"Organization","site_admin":false},"repo":{"id":45512989,"name":"gold-miner","full_name":"xitu/gold-miner","owner":{"login":"xitu","id":10482599,"avatar_url":"https://avatars.githubusercontent.com/u/10482599?v=3","gravatar_id":"","url":"https://api.github.com/users/xitu","html_url":"https://github.com/xitu","followers_url":"https://api.github.com/users/xitu/followers","following_url":"https://api.github.com/users/xitu/following{/other_user}","gists_url":"https://api.github.com/users/xitu/gists{/gist_id}","starred_url":"https://api.github.com/users/xitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xitu/subscriptions","organizations_url":"https://api.github.com/users/xitu/orgs","repos_url":"https://api.github.com/users/xitu/repos","events_url":"https://api.github.com/users/xitu/events{/privacy}","received_events_url":"https://api.github.com/users/xitu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xitu/gold-miner","description":"掘金翻译计划，翻译掘金上优质的英文文章","fork":false,"url":"https://api.github.com/repos/xitu/gold-miner","forks_url":"https://api.github.com/repos/xitu/gold-miner/forks","keys_url":"https://api.github.com/repos/xitu/gold-miner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xitu/gold-miner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xitu/gold-miner/teams","hooks_url":"https://api.github.com/repos/xitu/gold-miner/hooks","issue_events_url":"https://api.github.com/repos/xitu/gold-miner/issues/events{/number}","events_url":"https://api.github.com/repos/xitu/gold-miner/events","assignees_url":"https://api.github.com/repos/xitu/gold-miner/assignees{/user}","branches_url":"https://api.github.com/repos/xitu/gold-miner/branches{/branch}","tags_url":"https://api.github.com/repos/xitu/gold-miner/tags","blobs_url":"https://api.github.com/repos/xitu/gold-miner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xitu/gold-miner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xitu/gold-miner/git/refs{/sha}","trees_url":"https://api.github.com/repos/xitu/gold-miner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xitu/gold-miner/statuses/{sha}","languages_url":"https://api.github.com/repos/xitu/gold-miner/languages","stargazers_url":"https://api.github.com/repos/xitu/gold-miner/stargazers","contributors_url":"https://api.github.com/repos/xitu/gold-miner/contributors","subscribers_url":"https://api.github.com/repos/xitu/gold-miner/subscribers","subscription_url":"https://api.github.com/repos/xitu/gold-miner/subscription","commits_url":"https://api.github.com/repos/xitu/gold-miner/commits{/sha}","git_commits_url":"https://api.github.com/repos/xitu/gold-miner/git/commits{/sha}","comments_url":"https://api.github.com/repos/xitu/gold-miner/comments{/number}","issue_comment_url":"https://api.github.com/repos/xitu/gold-miner/issues/comments{/number}","contents_url":"https://api.github.com/repos/xitu/gold-miner/contents/{+path}","compare_url":"https://api.github.com/repos/xitu/gold-miner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xitu/gold-miner/merges","archive_url":"https://api.github.com/repos/xitu/gold-miner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xitu/gold-miner/downloads","issues_url":"https://api.github.com/repos/xitu/gold-miner/issues{/number}","pulls_url":"https://api.github.com/repos/xitu/gold-miner/pulls{/number}","milestones_url":"https://api.github.com/repos/xitu/gold-miner/milestones{/number}","notifications_url":"https://api.github.com/repos/xitu/gold-miner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xitu/gold-miner/labels{/name}","releases_url":"https://api.github.com/repos/xitu/gold-miner/releases{/id}","deployments_url":"https://api.github.com/repos/xitu/gold-miner/deployments","created_at":"2015-11-04T03:29:13Z","updated_at":"2016-03-12T12:48:07Z","pushed_at":"2016-03-12T13:18:01Z","git_url":"git://github.com/xitu/gold-miner.git","ssh_url":"git@github.com:xitu/gold-miner.git","clone_url":"https://github.com/xitu/gold-miner.git","svn_url":"https://github.com/xitu/gold-miner","homepage":"http://gold.xitu.io","size":8912,"stargazers_count":763,"watchers_count":763,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":156,"mirror_url":null,"open_issues_count":21,"forks":156,"open_issues":21,"watchers":763,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/201"},"html":{"href":"https://github.com/xitu/gold-miner/pull/201"},"issue":{"href":"https://api.github.com/repos/xitu/gold-miner/issues/201"},"comments":{"href":"https://api.github.com/repos/xitu/gold-miner/issues/201/comments"},"review_comments":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/201/comments"},"review_comment":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/201/commits"},"statuses":{"href":"https://api.github.com/repos/xitu/gold-miner/statuses/ff493b18b56586dd52b65f8a467627b72f06df3e"}}}}