{"action":"created","comment":{"url":"https://api.github.com/repos/Monnoroch/blerpc-android/pulls/comments/183383379","pull_request_review_id":114369212,"id":183383379,"diff_hunk":"@@ -0,0 +1,65 @@\n+{{#packageName}}\n+package {{packageName}};\n+{{/packageName}}\n+\n+import com.aura.device.proto.GetBatteryLevelRequest;\n+import com.aura.device.proto.GetBatteryLevelResponse;\n+import com.blerpc.BleRpcController;\n+import io.reactivex.Observable;\n+import io.reactivex.Single;\n+import java.util.logging.Logger;\n+\n+{{#javaDoc}}\n+{{{javaDoc}}}\n+{{/javaDoc}}\n+{{#deprecated}}\n+@java.lang.Deprecated\n+{{/deprecated}}\n+public class {{className}} {\n+\n+  private final {{packageName}}.{{serviceName}} service;\n+  private final Logger logger;\n+\n+  public {{className}}({{packageName}}.{{serviceName}} service, Logger logger) {\n+    this.service = service;\n+    this.logger = logger;\n+  }\n+\n+  {{#methods}}\n+  {{#isManyOutput}}\n+      {{#javaDoc}}\n+    {{{javaDoc}}}\n+      {{/javaDoc}}\n+      {{#deprecated}}\n+    @java.lang.Deprecated\n+      {{/deprecated}}\n+    public Observable<{{outputType}}> {{methodName}}({{inputType}} request) {\n+      return {{methodName}}(request, new BleRpcController());\n+    }\n+  {{/isManyOutput}}\n+\n+    {{#javaDoc}}\n+  {{{javaDoc}}}\n+    {{/javaDoc}}\n+    {{#deprecated}}\n+  @java.lang.Deprecated\n+    {{/deprecated}}\n+  public {{#isManyOutput}}Observable{{/isManyOutput}}{{^isManyOutput}}Single{{/isManyOutput}}<{{outputType}}> {{methodName}}({{inputType}} request{{#isManyOutput}}, BleRpcController controller{{/isManyOutput}}) {\n+      return {{#isManyOutput}}Observable{{/isManyOutput}}{{^isManyOutput}}Single{{/isManyOutput}}.create(\n+          subscriber -> {\n+            {{^isManyOutput}}BleRpcController controller = new BleRpcController();{{/isManyOutput}}\n+            service.{{methodName}}(\n+                controller,\n+                request,\n+                response -> {\n+                  if (!controller.failed()) {\n+                    subscriber.{{#isManyOutput}}onNext{{/isManyOutput}}{{^isManyOutput}}onSuccess{{/isManyOutput}}(response);\n+                  } else {","path":"reactive-blerpc/src/main/resources/RxStub.mustache","position":57,"original_position":57,"commit_id":"91404a8827df507b0e64b33c619bfff5dd57906b","original_commit_id":"91404a8827df507b0e64b33c619bfff5dd57906b","user":{"login":"Monnoroch","id":1500400,"avatar_url":"https://avatars0.githubusercontent.com/u/1500400?v=4","gravatar_id":"","url":"https://api.github.com/users/Monnoroch","html_url":"https://github.com/Monnoroch","followers_url":"https://api.github.com/users/Monnoroch/followers","following_url":"https://api.github.com/users/Monnoroch/following{/other_user}","gists_url":"https://api.github.com/users/Monnoroch/gists{/gist_id}","starred_url":"https://api.github.com/users/Monnoroch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Monnoroch/subscriptions","organizations_url":"https://api.github.com/users/Monnoroch/orgs","repos_url":"https://api.github.com/users/Monnoroch/repos","events_url":"https://api.github.com/users/Monnoroch/events{/privacy}","received_events_url":"https://api.github.com/users/Monnoroch/received_events","type":"User","site_admin":false},"body":"?","created_at":"2018-04-23T12:55:12Z","updated_at":"2018-04-23T12:55:18Z","html_url":"https://github.com/Monnoroch/blerpc-android/pull/35#discussion_r183383379","pull_request_url":"https://api.github.com/repos/Monnoroch/blerpc-android/pulls/35","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Monnoroch/blerpc-android/pulls/comments/183383379"},"html":{"href":"https://github.com/Monnoroch/blerpc-android/pull/35#discussion_r183383379"},"pull_request":{"href":"https://api.github.com/repos/Monnoroch/blerpc-android/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/Monnoroch/blerpc-android/pulls/35","id":183419563,"html_url":"https://github.com/Monnoroch/blerpc-android/pull/35","diff_url":"https://github.com/Monnoroch/blerpc-android/pull/35.diff","patch_url":"https://github.com/Monnoroch/blerpc-android/pull/35.patch","issue_url":"https://api.github.com/repos/Monnoroch/blerpc-android/issues/35","number":35,"state":"open","locked":false,"title":"Create RxJava wrappers generator for BleRpc services.","user":{"login":"AseevEIDev","id":16954642,"avatar_url":"https://avatars3.githubusercontent.com/u/16954642?v=4","gravatar_id":"","url":"https://api.github.com/users/AseevEIDev","html_url":"https://github.com/AseevEIDev","followers_url":"https://api.github.com/users/AseevEIDev/followers","following_url":"https://api.github.com/users/AseevEIDev/following{/other_user}","gists_url":"https://api.github.com/users/AseevEIDev/gists{/gist_id}","starred_url":"https://api.github.com/users/AseevEIDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AseevEIDev/subscriptions","organizations_url":"https://api.github.com/users/AseevEIDev/orgs","repos_url":"https://api.github.com/users/AseevEIDev/repos","events_url":"https://api.github.com/users/AseevEIDev/events{/privacy}","received_events_url":"https://api.github.com/users/AseevEIDev/received_events","type":"User","site_admin":false},"body":"Related to #34.","created_at":"2018-04-23T12:34:32Z","updated_at":"2018-04-23T12:55:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f2001391863e0dcc8218ac8652ecbd645795e73","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Monnoroch/blerpc-android/pulls/35/commits","review_comments_url":"https://api.github.com/repos/Monnoroch/blerpc-android/pulls/35/comments","review_comment_url":"https://api.github.com/repos/Monnoroch/blerpc-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Monnoroch/blerpc-android/issues/35/comments","statuses_url":"https://api.github.com/repos/Monnoroch/blerpc-android/statuses/91404a8827df507b0e64b33c619bfff5dd57906b","head":{"label":"Monnoroch:reactive_generator","ref":"reactive_generator","sha":"91404a8827df507b0e64b33c619bfff5dd57906b","user":{"login":"Monnoroch","id":1500400,"avatar_url":"https://avatars0.githubusercontent.com/u/1500400?v=4","gravatar_id":"","url":"https://api.github.com/users/Monnoroch","html_url":"https://github.com/Monnoroch","followers_url":"https://api.github.com/users/Monnoroch/followers","following_url":"https://api.github.com/users/Monnoroch/following{/other_user}","gists_url":"https://api.github.com/users/Monnoroch/gists{/gist_id}","starred_url":"https://api.github.com/users/Monnoroch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Monnoroch/subscriptions","organizations_url":"https://api.github.com/users/Monnoroch/orgs","repos_url":"https://api.github.com/users/Monnoroch/repos","events_url":"https://api.github.com/users/Monnoroch/events{/privacy}","received_events_url":"https://api.github.com/users/Monnoroch/received_events","type":"User","site_admin":false},"repo":{"id":115001774,"name":"blerpc-android","full_name":"Monnoroch/blerpc-android","owner":{"login":"Monnoroch","id":1500400,"avatar_url":"https://avatars0.githubusercontent.com/u/1500400?v=4","gravatar_id":"","url":"https://api.github.com/users/Monnoroch","html_url":"https://github.com/Monnoroch","followers_url":"https://api.github.com/users/Monnoroch/followers","following_url":"https://api.github.com/users/Monnoroch/following{/other_user}","gists_url":"https://api.github.com/users/Monnoroch/gists{/gist_id}","starred_url":"https://api.github.com/users/Monnoroch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Monnoroch/subscriptions","organizations_url":"https://api.github.com/users/Monnoroch/orgs","repos_url":"https://api.github.com/users/Monnoroch/repos","events_url":"https://api.github.com/users/Monnoroch/events{/privacy}","received_events_url":"https://api.github.com/users/Monnoroch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Monnoroch/blerpc-android","description":null,"fork":false,"url":"https://api.github.com/repos/Monnoroch/blerpc-android","forks_url":"https://api.github.com/repos/Monnoroch/blerpc-android/forks","keys_url":"https://api.github.com/repos/Monnoroch/blerpc-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Monnoroch/blerpc-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Monnoroch/blerpc-android/teams","hooks_url":"https://api.github.com/repos/Monnoroch/blerpc-android/hooks","issue_events_url":"https://api.github.com/repos/Monnoroch/blerpc-android/issues/events{/number}","events_url":"https://api.github.com/repos/Monnoroch/blerpc-android/events","assignees_url":"https://api.github.com/repos/Monnoroch/blerpc-android/assignees{/user}","branches_url":"https://api.github.com/repos/Monnoroch/blerpc-android/branches{/branch}","tags_url":"https://api.github.com/repos/Monnoroch/blerpc-android/tags","blobs_url":"https://api.github.com/repos/Monnoroch/blerpc-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Monnoroch/blerpc-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Monnoroch/blerpc-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/Monnoroch/blerpc-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Monnoroch/blerpc-android/statuses/{sha}","languages_url":"https://api.github.com/repos/Monnoroch/blerpc-android/languages","stargazers_url":"https://api.github.com/repos/Monnoroch/blerpc-android/stargazers","contributors_url":"https://api.github.com/repos/Monnoroch/blerpc-android/contributors","subscribers_url":"https://api.github.com/repos/Monnoroch/blerpc-android/subscribers","subscription_url":"https://api.github.com/repos/Monnoroch/blerpc-android/subscription","commits_url":"https://api.github.com/repos/Monnoroch/blerpc-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/Monnoroch/blerpc-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/Monnoroch/blerpc-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/Monnoroch/blerpc-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/Monnoroch/blerpc-android/contents/{+path}","compare_url":"https://api.github.com/repos/Monnoroch/blerpc-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Monnoroch/blerpc-android/merges","archive_url":"https://api.github.com/repos/Monnoroch/blerpc-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Monnoroch/blerpc-android/downloads","issues_url":"https://api.github.com/repos/Monnoroch/blerpc-android/issues{/number}","pulls_url":"https://api.github.com/repos/Monnoroch/blerpc-android/pulls{/number}","milestones_url":"https://api.github.com/repos/Monnoroch/blerpc-android/milestones{/number}","notifications_url":"https://api.github.com/repos/Monnoroch/blerpc-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Monnoroch/blerpc-android/labels{/name}","releases_url":"https://api.github.com/repos/Monnoroch/blerpc-android/releases{/id}","deployments_url":"https://api.github.com/repos/Monnoroch/blerpc-android/deployments","created_at":"2017-12-21T12:07:48Z","updated_at":"2018-04-21T20:15:58Z","pushed_at":"2018-04-23T12:34:33Z","git_url":"git://github.com/Monnoroch/blerpc-android.git","ssh_url":"git@github.com:Monnoroch/blerpc-android.git","clone_url":"https://github.com/Monnoroch/blerpc-android.git","svn_url":"https://github.com/Monnoroch/blerpc-android","homepage":null,"size":1292,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"base":{"label":"Monnoroch:master","ref":"master","sha":"6e18fb9d150e69051e0135227ac0d36924be5871","user":{"login":"Monnoroch","id":1500400,"avatar_url":"https://avatars0.githubusercontent.com/u/1500400?v=4","gravatar_id":"","url":"https://api.github.com/users/Monnoroch","html_url":"https://github.com/Monnoroch","followers_url":"https://api.github.com/users/Monnoroch/followers","following_url":"https://api.github.com/users/Monnoroch/following{/other_user}","gists_url":"https://api.github.com/users/Monnoroch/gists{/gist_id}","starred_url":"https://api.github.com/users/Monnoroch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Monnoroch/subscriptions","organizations_url":"https://api.github.com/users/Monnoroch/orgs","repos_url":"https://api.github.com/users/Monnoroch/repos","events_url":"https://api.github.com/users/Monnoroch/events{/privacy}","received_events_url":"https://api.github.com/users/Monnoroch/received_events","type":"User","site_admin":false},"repo":{"id":115001774,"name":"blerpc-android","full_name":"Monnoroch/blerpc-android","owner":{"login":"Monnoroch","id":1500400,"avatar_url":"https://avatars0.githubusercontent.com/u/1500400?v=4","gravatar_id":"","url":"https://api.github.com/users/Monnoroch","html_url":"https://github.com/Monnoroch","followers_url":"https://api.github.com/users/Monnoroch/followers","following_url":"https://api.github.com/users/Monnoroch/following{/other_user}","gists_url":"https://api.github.com/users/Monnoroch/gists{/gist_id}","starred_url":"https://api.github.com/users/Monnoroch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Monnoroch/subscriptions","organizations_url":"https://api.github.com/users/Monnoroch/orgs","repos_url":"https://api.github.com/users/Monnoroch/repos","events_url":"https://api.github.com/users/Monnoroch/events{/privacy}","received_events_url":"https://api.github.com/users/Monnoroch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Monnoroch/blerpc-android","description":null,"fork":false,"url":"https://api.github.com/repos/Monnoroch/blerpc-android","forks_url":"https://api.github.com/repos/Monnoroch/blerpc-android/forks","keys_url":"https://api.github.com/repos/Monnoroch/blerpc-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Monnoroch/blerpc-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Monnoroch/blerpc-android/teams","hooks_url":"https://api.github.com/repos/Monnoroch/blerpc-android/hooks","issue_events_url":"https://api.github.com/repos/Monnoroch/blerpc-android/issues/events{/number}","events_url":"https://api.github.com/repos/Monnoroch/blerpc-android/events","assignees_url":"https://api.github.com/repos/Monnoroch/blerpc-android/assignees{/user}","branches_url":"https://api.github.com/repos/Monnoroch/blerpc-android/branches{/branch}","tags_url":"https://api.github.com/repos/Monnoroch/blerpc-android/tags","blobs_url":"https://api.github.com/repos/Monnoroch/blerpc-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Monnoroch/blerpc-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Monnoroch/blerpc-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/Monnoroch/blerpc-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Monnoroch/blerpc-android/statuses/{sha}","languages_url":"https://api.github.com/repos/Monnoroch/blerpc-android/languages","stargazers_url":"https://api.github.com/repos/Monnoroch/blerpc-android/stargazers","contributors_url":"https://api.github.com/repos/Monnoroch/blerpc-android/contributors","subscribers_url":"https://api.github.com/repos/Monnoroch/blerpc-android/subscribers","subscription_url":"https://api.github.com/repos/Monnoroch/blerpc-android/subscription","commits_url":"https://api.github.com/repos/Monnoroch/blerpc-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/Monnoroch/blerpc-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/Monnoroch/blerpc-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/Monnoroch/blerpc-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/Monnoroch/blerpc-android/contents/{+path}","compare_url":"https://api.github.com/repos/Monnoroch/blerpc-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Monnoroch/blerpc-android/merges","archive_url":"https://api.github.com/repos/Monnoroch/blerpc-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Monnoroch/blerpc-android/downloads","issues_url":"https://api.github.com/repos/Monnoroch/blerpc-android/issues{/number}","pulls_url":"https://api.github.com/repos/Monnoroch/blerpc-android/pulls{/number}","milestones_url":"https://api.github.com/repos/Monnoroch/blerpc-android/milestones{/number}","notifications_url":"https://api.github.com/repos/Monnoroch/blerpc-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Monnoroch/blerpc-android/labels{/name}","releases_url":"https://api.github.com/repos/Monnoroch/blerpc-android/releases{/id}","deployments_url":"https://api.github.com/repos/Monnoroch/blerpc-android/deployments","created_at":"2017-12-21T12:07:48Z","updated_at":"2018-04-21T20:15:58Z","pushed_at":"2018-04-23T12:34:33Z","git_url":"git://github.com/Monnoroch/blerpc-android.git","ssh_url":"git@github.com:Monnoroch/blerpc-android.git","clone_url":"https://github.com/Monnoroch/blerpc-android.git","svn_url":"https://github.com/Monnoroch/blerpc-android","homepage":null,"size":1292,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Monnoroch/blerpc-android/pulls/35"},"html":{"href":"https://github.com/Monnoroch/blerpc-android/pull/35"},"issue":{"href":"https://api.github.com/repos/Monnoroch/blerpc-android/issues/35"},"comments":{"href":"https://api.github.com/repos/Monnoroch/blerpc-android/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/Monnoroch/blerpc-android/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/Monnoroch/blerpc-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Monnoroch/blerpc-android/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/Monnoroch/blerpc-android/statuses/91404a8827df507b0e64b33c619bfff5dd57906b"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Monnoroch"}}