{"action":"created","comment":{"url":"https://api.github.com/repos/apollostack/apollo-android/pulls/comments/93333239","pull_request_review_id":13858836,"id":93333239,"diff_hunk":"@@ -0,0 +1,59 @@\n+package com.example.input_object_type;\n+\n+import java.lang.Integer;\n+import java.lang.String;\n+import javax.annotation.Nonnull;\n+import javax.annotation.Nullable;\n+\n+public final class ReviewInput {","path":"apollo-compiler/src/test/graphql/com/example/input_object_type/ReviewInputExpected.java","position":8,"original_position":8,"commit_id":"c74f7b7338831b1decef600967ad3ba33eda114b","original_commit_id":"c74f7b7338831b1decef600967ad3ba33eda114b","user":{"login":"sav007","id":902816,"avatar_url":"https://avatars.githubusercontent.com/u/902816?v=3","gravatar_id":"","url":"https://api.github.com/users/sav007","html_url":"https://github.com/sav007","followers_url":"https://api.github.com/users/sav007/followers","following_url":"https://api.github.com/users/sav007/following{/other_user}","gists_url":"https://api.github.com/users/sav007/gists{/gist_id}","starred_url":"https://api.github.com/users/sav007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sav007/subscriptions","organizations_url":"https://api.github.com/users/sav007/orgs","repos_url":"https://api.github.com/users/sav007/repos","events_url":"https://api.github.com/users/sav007/events{/privacy}","received_events_url":"https://api.github.com/users/sav007/received_events","type":"User","site_admin":false},"body":"Why does user need to extend it?","created_at":"2016-12-20T21:52:55Z","updated_at":"2016-12-20T21:52:55Z","html_url":"https://github.com/apollostack/apollo-android/pull/56#discussion_r93333239","pull_request_url":"https://api.github.com/repos/apollostack/apollo-android/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/apollostack/apollo-android/pulls/comments/93333239"},"html":{"href":"https://github.com/apollostack/apollo-android/pull/56#discussion_r93333239"},"pull_request":{"href":"https://api.github.com/repos/apollostack/apollo-android/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/apollostack/apollo-android/pulls/56","id":98510710,"html_url":"https://github.com/apollostack/apollo-android/pull/56","diff_url":"https://github.com/apollostack/apollo-android/pull/56.diff","patch_url":"https://github.com/apollostack/apollo-android/pull/56.patch","issue_url":"https://api.github.com/repos/apollostack/apollo-android/issues/56","number":56,"state":"open","locked":false,"title":"Add support of input object types","user":{"login":"sav007","id":902816,"avatar_url":"https://avatars.githubusercontent.com/u/902816?v=3","gravatar_id":"","url":"https://api.github.com/users/sav007","html_url":"https://github.com/sav007","followers_url":"https://api.github.com/users/sav007/followers","following_url":"https://api.github.com/users/sav007/following{/other_user}","gists_url":"https://api.github.com/users/sav007/gists{/gist_id}","starred_url":"https://api.github.com/users/sav007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sav007/subscriptions","organizations_url":"https://api.github.com/users/sav007/orgs","repos_url":"https://api.github.com/users/sav007/repos","events_url":"https://api.github.com/users/sav007/events{/privacy}","received_events_url":"https://api.github.com/users/sav007/received_events","type":"User","site_admin":false},"body":"Closes #31 \r\n\r\nRefactoring query variables generation: remove map\r\n\r\nExample of generate input type: \r\n```\r\npackage com.example.input_object_type;\r\n\r\nimport java.lang.Integer;\r\nimport java.lang.String;\r\nimport javax.annotation.Nonnull;\r\nimport javax.annotation.Nullable;\r\n\r\npublic final class ReviewInput {\r\n  @Nullable Integer stars;\r\n\r\n  @Nonnull String commentary;\r\n\r\n  @Nonnull ColorInput favoriteColor;\r\n\r\n  ReviewInput() {\r\n  }\r\n\r\n  public @Nullable Integer stars() {\r\n    return this.stars;\r\n  }\r\n\r\n  public @Nonnull String commentary() {\r\n    return this.commentary;\r\n  }\r\n\r\n  public @Nonnull ColorInput favoriteColor() {\r\n    return this.favoriteColor;\r\n  }\r\n\r\n  public static Builder builder() {\r\n    return new Builder();\r\n  }\r\n\r\n  public static final class Builder {\r\n    private final ReviewInput reviewInput = new ReviewInput();\r\n\r\n    Builder() {\r\n    }\r\n\r\n    public Builder stars(@Nullable Integer stars) {\r\n      reviewInput.stars = stars;\r\n      return this;\r\n    }\r\n\r\n    public Builder commentary(@Nonnull String commentary) {\r\n      reviewInput.commentary = commentary;\r\n      return this;\r\n    }\r\n\r\n    public Builder favoriteColor(@Nonnull ColorInput favoriteColor) {\r\n      reviewInput.favoriteColor = favoriteColor;\r\n      return this;\r\n    }\r\n\r\n    public ReviewInput build() {\r\n      return reviewInput;\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nExample of usage:\r\n```\r\nReviewInput.builder()\r\n        .commentary(\"test\")\r\n        .stars(5)\r\n        .favoriteColor(ColorInput.builder()\r\n            .red(255)\r\n            .green(255)\r\n            .blue(255)\r\n            .build()\r\n        ).build();\r\n```\r\n\r\n@felipecsl @martijnwalraven @marwanad pls take a look","created_at":"2016-12-19T05:53:01Z","updated_at":"2016-12-20T21:52:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b2fac1261349b28ff510622f0adebc21c7ec12a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apollostack/apollo-android/pulls/56/commits","review_comments_url":"https://api.github.com/repos/apollostack/apollo-android/pulls/56/comments","review_comment_url":"https://api.github.com/repos/apollostack/apollo-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apollostack/apollo-android/issues/56/comments","statuses_url":"https://api.github.com/repos/apollostack/apollo-android/statuses/c74f7b7338831b1decef600967ad3ba33eda114b","head":{"label":"sav007:feature-31/input-object-type","ref":"feature-31/input-object-type","sha":"c74f7b7338831b1decef600967ad3ba33eda114b","user":{"login":"sav007","id":902816,"avatar_url":"https://avatars.githubusercontent.com/u/902816?v=3","gravatar_id":"","url":"https://api.github.com/users/sav007","html_url":"https://github.com/sav007","followers_url":"https://api.github.com/users/sav007/followers","following_url":"https://api.github.com/users/sav007/following{/other_user}","gists_url":"https://api.github.com/users/sav007/gists{/gist_id}","starred_url":"https://api.github.com/users/sav007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sav007/subscriptions","organizations_url":"https://api.github.com/users/sav007/orgs","repos_url":"https://api.github.com/users/sav007/repos","events_url":"https://api.github.com/users/sav007/events{/privacy}","received_events_url":"https://api.github.com/users/sav007/received_events","type":"User","site_admin":false},"repo":{"id":75508760,"name":"apollo-android","full_name":"sav007/apollo-android","owner":{"login":"sav007","id":902816,"avatar_url":"https://avatars.githubusercontent.com/u/902816?v=3","gravatar_id":"","url":"https://api.github.com/users/sav007","html_url":"https://github.com/sav007","followers_url":"https://api.github.com/users/sav007/followers","following_url":"https://api.github.com/users/sav007/following{/other_user}","gists_url":"https://api.github.com/users/sav007/gists{/gist_id}","starred_url":"https://api.github.com/users/sav007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sav007/subscriptions","organizations_url":"https://api.github.com/users/sav007/orgs","repos_url":"https://api.github.com/users/sav007/repos","events_url":"https://api.github.com/users/sav007/events{/privacy}","received_events_url":"https://api.github.com/users/sav007/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sav007/apollo-android","description":":pager: A GraphQL client for Android (WIP)","fork":true,"url":"https://api.github.com/repos/sav007/apollo-android","forks_url":"https://api.github.com/repos/sav007/apollo-android/forks","keys_url":"https://api.github.com/repos/sav007/apollo-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sav007/apollo-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sav007/apollo-android/teams","hooks_url":"https://api.github.com/repos/sav007/apollo-android/hooks","issue_events_url":"https://api.github.com/repos/sav007/apollo-android/issues/events{/number}","events_url":"https://api.github.com/repos/sav007/apollo-android/events","assignees_url":"https://api.github.com/repos/sav007/apollo-android/assignees{/user}","branches_url":"https://api.github.com/repos/sav007/apollo-android/branches{/branch}","tags_url":"https://api.github.com/repos/sav007/apollo-android/tags","blobs_url":"https://api.github.com/repos/sav007/apollo-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sav007/apollo-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sav007/apollo-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/sav007/apollo-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sav007/apollo-android/statuses/{sha}","languages_url":"https://api.github.com/repos/sav007/apollo-android/languages","stargazers_url":"https://api.github.com/repos/sav007/apollo-android/stargazers","contributors_url":"https://api.github.com/repos/sav007/apollo-android/contributors","subscribers_url":"https://api.github.com/repos/sav007/apollo-android/subscribers","subscription_url":"https://api.github.com/repos/sav007/apollo-android/subscription","commits_url":"https://api.github.com/repos/sav007/apollo-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/sav007/apollo-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/sav007/apollo-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/sav007/apollo-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/sav007/apollo-android/contents/{+path}","compare_url":"https://api.github.com/repos/sav007/apollo-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sav007/apollo-android/merges","archive_url":"https://api.github.com/repos/sav007/apollo-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sav007/apollo-android/downloads","issues_url":"https://api.github.com/repos/sav007/apollo-android/issues{/number}","pulls_url":"https://api.github.com/repos/sav007/apollo-android/pulls{/number}","milestones_url":"https://api.github.com/repos/sav007/apollo-android/milestones{/number}","notifications_url":"https://api.github.com/repos/sav007/apollo-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sav007/apollo-android/labels{/name}","releases_url":"https://api.github.com/repos/sav007/apollo-android/releases{/id}","deployments_url":"https://api.github.com/repos/sav007/apollo-android/deployments","created_at":"2016-12-04T00:33:01Z","updated_at":"2016-12-04T00:33:02Z","pushed_at":"2016-12-20T15:06:30Z","git_url":"git://github.com/sav007/apollo-android.git","ssh_url":"git@github.com:sav007/apollo-android.git","clone_url":"https://github.com/sav007/apollo-android.git","svn_url":"https://github.com/sav007/apollo-android","homepage":"","size":218,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","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":"apollostack:master","ref":"master","sha":"30d67e1266c91032f17a4672f04843f3a438d54c","user":{"login":"apollostack","id":17189275,"avatar_url":"https://avatars.githubusercontent.com/u/17189275?v=3","gravatar_id":"","url":"https://api.github.com/users/apollostack","html_url":"https://github.com/apollostack","followers_url":"https://api.github.com/users/apollostack/followers","following_url":"https://api.github.com/users/apollostack/following{/other_user}","gists_url":"https://api.github.com/users/apollostack/gists{/gist_id}","starred_url":"https://api.github.com/users/apollostack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apollostack/subscriptions","organizations_url":"https://api.github.com/users/apollostack/orgs","repos_url":"https://api.github.com/users/apollostack/repos","events_url":"https://api.github.com/users/apollostack/events{/privacy}","received_events_url":"https://api.github.com/users/apollostack/received_events","type":"Organization","site_admin":false},"repo":{"id":69469299,"name":"apollo-android","full_name":"apollostack/apollo-android","owner":{"login":"apollostack","id":17189275,"avatar_url":"https://avatars.githubusercontent.com/u/17189275?v=3","gravatar_id":"","url":"https://api.github.com/users/apollostack","html_url":"https://github.com/apollostack","followers_url":"https://api.github.com/users/apollostack/followers","following_url":"https://api.github.com/users/apollostack/following{/other_user}","gists_url":"https://api.github.com/users/apollostack/gists{/gist_id}","starred_url":"https://api.github.com/users/apollostack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apollostack/subscriptions","organizations_url":"https://api.github.com/users/apollostack/orgs","repos_url":"https://api.github.com/users/apollostack/repos","events_url":"https://api.github.com/users/apollostack/events{/privacy}","received_events_url":"https://api.github.com/users/apollostack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apollostack/apollo-android","description":":pager: A GraphQL client for Android (WIP)","fork":false,"url":"https://api.github.com/repos/apollostack/apollo-android","forks_url":"https://api.github.com/repos/apollostack/apollo-android/forks","keys_url":"https://api.github.com/repos/apollostack/apollo-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apollostack/apollo-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apollostack/apollo-android/teams","hooks_url":"https://api.github.com/repos/apollostack/apollo-android/hooks","issue_events_url":"https://api.github.com/repos/apollostack/apollo-android/issues/events{/number}","events_url":"https://api.github.com/repos/apollostack/apollo-android/events","assignees_url":"https://api.github.com/repos/apollostack/apollo-android/assignees{/user}","branches_url":"https://api.github.com/repos/apollostack/apollo-android/branches{/branch}","tags_url":"https://api.github.com/repos/apollostack/apollo-android/tags","blobs_url":"https://api.github.com/repos/apollostack/apollo-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apollostack/apollo-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apollostack/apollo-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/apollostack/apollo-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apollostack/apollo-android/statuses/{sha}","languages_url":"https://api.github.com/repos/apollostack/apollo-android/languages","stargazers_url":"https://api.github.com/repos/apollostack/apollo-android/stargazers","contributors_url":"https://api.github.com/repos/apollostack/apollo-android/contributors","subscribers_url":"https://api.github.com/repos/apollostack/apollo-android/subscribers","subscription_url":"https://api.github.com/repos/apollostack/apollo-android/subscription","commits_url":"https://api.github.com/repos/apollostack/apollo-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/apollostack/apollo-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/apollostack/apollo-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/apollostack/apollo-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/apollostack/apollo-android/contents/{+path}","compare_url":"https://api.github.com/repos/apollostack/apollo-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apollostack/apollo-android/merges","archive_url":"https://api.github.com/repos/apollostack/apollo-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apollostack/apollo-android/downloads","issues_url":"https://api.github.com/repos/apollostack/apollo-android/issues{/number}","pulls_url":"https://api.github.com/repos/apollostack/apollo-android/pulls{/number}","milestones_url":"https://api.github.com/repos/apollostack/apollo-android/milestones{/number}","notifications_url":"https://api.github.com/repos/apollostack/apollo-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apollostack/apollo-android/labels{/name}","releases_url":"https://api.github.com/repos/apollostack/apollo-android/releases{/id}","deployments_url":"https://api.github.com/repos/apollostack/apollo-android/deployments","created_at":"2016-09-28T14:03:30Z","updated_at":"2016-12-17T07:34:19Z","pushed_at":"2016-12-20T15:06:31Z","git_url":"git://github.com/apollostack/apollo-android.git","ssh_url":"git@github.com:apollostack/apollo-android.git","clone_url":"https://github.com/apollostack/apollo-android.git","svn_url":"https://github.com/apollostack/apollo-android","homepage":"","size":205,"stargazers_count":44,"watchers_count":44,"language":"Kotlin","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":11,"forks":5,"open_issues":11,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apollostack/apollo-android/pulls/56"},"html":{"href":"https://github.com/apollostack/apollo-android/pull/56"},"issue":{"href":"https://api.github.com/repos/apollostack/apollo-android/issues/56"},"comments":{"href":"https://api.github.com/repos/apollostack/apollo-android/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/apollostack/apollo-android/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/apollostack/apollo-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apollostack/apollo-android/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/apollostack/apollo-android/statuses/c74f7b7338831b1decef600967ad3ba33eda114b"}}}}
{"actor":{"display_login":"sav007"}}