{"action":"created","comment":{"url":"https://api.github.com/repos/gengo/gengo-java/pulls/comments/33221096","id":33221096,"diff_hunk":"@@ -140,6 +140,34 @@ public JSONObject postTranslationJobs(List<TranslationJob> jobs, boolean process\n             throw new GengoException(x.getMessage(), x);\n         }\n     }\n+    \n+    /**\n+     * Submit multiple file jobs for translation.\n+     * @param jobs FileJob payload objects\n+     * @param processAsGroup true iff the jobs should be processed as a group\n+     * @return the response from the server\n+     * @throws GengoException\n+     */\n+    public JSONObject postFileJobs(List<FileJob> jobs, boolean processAsGroup)\n+    \t    throws GengoException\n+    \t    {\n+    \t        try\n+    \t        {\n+    \t            String url = baseUrl + \"translate/jobs\";\n+    \t            JSONObject data = new JSONObject();\n+    \t            /* We can safely cast our list of jobs into a list of the payload base type */\n+    \t            @SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n+    \t            List<Payload> p = (List)jobs;\n+    \t            data.put(\"jobs\", (new Payloads(p)).toJSONArray());\n+    \t            data.put(\"as_group\", processAsGroup ? MYGENGO_TRUE : MYGENGO_FALSE);","path":"src/main/java/com/gengo/client/GengoClient.java","position":23,"original_position":23,"commit_id":"5a57a6ecdc883e6b264cbf1e2641bb0b6c870ca4","original_commit_id":"5a57a6ecdc883e6b264cbf1e2641bb0b6c870ca4","user":{"login":"seikoudoku2000","id":749198,"avatar_url":"https://avatars.githubusercontent.com/u/749198?v=3","gravatar_id":"","url":"https://api.github.com/users/seikoudoku2000","html_url":"https://github.com/seikoudoku2000","followers_url":"https://api.github.com/users/seikoudoku2000/followers","following_url":"https://api.github.com/users/seikoudoku2000/following{/other_user}","gists_url":"https://api.github.com/users/seikoudoku2000/gists{/gist_id}","starred_url":"https://api.github.com/users/seikoudoku2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seikoudoku2000/subscriptions","organizations_url":"https://api.github.com/users/seikoudoku2000/orgs","repos_url":"https://api.github.com/users/seikoudoku2000/repos","events_url":"https://api.github.com/users/seikoudoku2000/events{/privacy}","received_events_url":"https://api.github.com/users/seikoudoku2000/received_events","type":"User","site_admin":false},"body":"I think file job can't be a group job.   @hayate ?","created_at":"2015-06-25T04:14:02Z","updated_at":"2015-06-25T04:14:02Z","html_url":"https://github.com/gengo/gengo-java/pull/23#discussion_r33221096","pull_request_url":"https://api.github.com/repos/gengo/gengo-java/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/gengo/gengo-java/pulls/comments/33221096"},"html":{"href":"https://github.com/gengo/gengo-java/pull/23#discussion_r33221096"},"pull_request":{"href":"https://api.github.com/repos/gengo/gengo-java/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/gengo/gengo-java/pulls/23","id":38451915,"html_url":"https://github.com/gengo/gengo-java/pull/23","diff_url":"https://github.com/gengo/gengo-java/pull/23.diff","patch_url":"https://github.com/gengo/gengo-java/pull/23.patch","issue_url":"https://api.github.com/repos/gengo/gengo-java/issues/23","number":23,"state":"open","locked":false,"title":"fix for file job creation on gengo","user":{"login":"deepak-adobe","id":10462473,"avatar_url":"https://avatars.githubusercontent.com/u/10462473?v=3","gravatar_id":"","url":"https://api.github.com/users/deepak-adobe","html_url":"https://github.com/deepak-adobe","followers_url":"https://api.github.com/users/deepak-adobe/followers","following_url":"https://api.github.com/users/deepak-adobe/following{/other_user}","gists_url":"https://api.github.com/users/deepak-adobe/gists{/gist_id}","starred_url":"https://api.github.com/users/deepak-adobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepak-adobe/subscriptions","organizations_url":"https://api.github.com/users/deepak-adobe/orgs","repos_url":"https://api.github.com/users/deepak-adobe/repos","events_url":"https://api.github.com/users/deepak-adobe/events{/privacy}","received_events_url":"https://api.github.com/users/deepak-adobe/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-24T15:05:36Z","updated_at":"2015-06-25T04:14:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f18d3f7e30285287e690aa8e4fcd4397c69705f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gengo/gengo-java/pulls/23/commits","review_comments_url":"https://api.github.com/repos/gengo/gengo-java/pulls/23/comments","review_comment_url":"https://api.github.com/repos/gengo/gengo-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gengo/gengo-java/issues/23/comments","statuses_url":"https://api.github.com/repos/gengo/gengo-java/statuses/5a57a6ecdc883e6b264cbf1e2641bb0b6c870ca4","head":{"label":"deepak-adobe:master","ref":"master","sha":"5a57a6ecdc883e6b264cbf1e2641bb0b6c870ca4","user":{"login":"deepak-adobe","id":10462473,"avatar_url":"https://avatars.githubusercontent.com/u/10462473?v=3","gravatar_id":"","url":"https://api.github.com/users/deepak-adobe","html_url":"https://github.com/deepak-adobe","followers_url":"https://api.github.com/users/deepak-adobe/followers","following_url":"https://api.github.com/users/deepak-adobe/following{/other_user}","gists_url":"https://api.github.com/users/deepak-adobe/gists{/gist_id}","starred_url":"https://api.github.com/users/deepak-adobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepak-adobe/subscriptions","organizations_url":"https://api.github.com/users/deepak-adobe/orgs","repos_url":"https://api.github.com/users/deepak-adobe/repos","events_url":"https://api.github.com/users/deepak-adobe/events{/privacy}","received_events_url":"https://api.github.com/users/deepak-adobe/received_events","type":"User","site_admin":false},"repo":{"id":37979981,"name":"gengo-java","full_name":"deepak-adobe/gengo-java","owner":{"login":"deepak-adobe","id":10462473,"avatar_url":"https://avatars.githubusercontent.com/u/10462473?v=3","gravatar_id":"","url":"https://api.github.com/users/deepak-adobe","html_url":"https://github.com/deepak-adobe","followers_url":"https://api.github.com/users/deepak-adobe/followers","following_url":"https://api.github.com/users/deepak-adobe/following{/other_user}","gists_url":"https://api.github.com/users/deepak-adobe/gists{/gist_id}","starred_url":"https://api.github.com/users/deepak-adobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepak-adobe/subscriptions","organizations_url":"https://api.github.com/users/deepak-adobe/orgs","repos_url":"https://api.github.com/users/deepak-adobe/repos","events_url":"https://api.github.com/users/deepak-adobe/events{/privacy}","received_events_url":"https://api.github.com/users/deepak-adobe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deepak-adobe/gengo-java","description":"A Java library to interface with the Gengo API for translation.","fork":true,"url":"https://api.github.com/repos/deepak-adobe/gengo-java","forks_url":"https://api.github.com/repos/deepak-adobe/gengo-java/forks","keys_url":"https://api.github.com/repos/deepak-adobe/gengo-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deepak-adobe/gengo-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deepak-adobe/gengo-java/teams","hooks_url":"https://api.github.com/repos/deepak-adobe/gengo-java/hooks","issue_events_url":"https://api.github.com/repos/deepak-adobe/gengo-java/issues/events{/number}","events_url":"https://api.github.com/repos/deepak-adobe/gengo-java/events","assignees_url":"https://api.github.com/repos/deepak-adobe/gengo-java/assignees{/user}","branches_url":"https://api.github.com/repos/deepak-adobe/gengo-java/branches{/branch}","tags_url":"https://api.github.com/repos/deepak-adobe/gengo-java/tags","blobs_url":"https://api.github.com/repos/deepak-adobe/gengo-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deepak-adobe/gengo-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deepak-adobe/gengo-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/deepak-adobe/gengo-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deepak-adobe/gengo-java/statuses/{sha}","languages_url":"https://api.github.com/repos/deepak-adobe/gengo-java/languages","stargazers_url":"https://api.github.com/repos/deepak-adobe/gengo-java/stargazers","contributors_url":"https://api.github.com/repos/deepak-adobe/gengo-java/contributors","subscribers_url":"https://api.github.com/repos/deepak-adobe/gengo-java/subscribers","subscription_url":"https://api.github.com/repos/deepak-adobe/gengo-java/subscription","commits_url":"https://api.github.com/repos/deepak-adobe/gengo-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/deepak-adobe/gengo-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/deepak-adobe/gengo-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/deepak-adobe/gengo-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/deepak-adobe/gengo-java/contents/{+path}","compare_url":"https://api.github.com/repos/deepak-adobe/gengo-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deepak-adobe/gengo-java/merges","archive_url":"https://api.github.com/repos/deepak-adobe/gengo-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deepak-adobe/gengo-java/downloads","issues_url":"https://api.github.com/repos/deepak-adobe/gengo-java/issues{/number}","pulls_url":"https://api.github.com/repos/deepak-adobe/gengo-java/pulls{/number}","milestones_url":"https://api.github.com/repos/deepak-adobe/gengo-java/milestones{/number}","notifications_url":"https://api.github.com/repos/deepak-adobe/gengo-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deepak-adobe/gengo-java/labels{/name}","releases_url":"https://api.github.com/repos/deepak-adobe/gengo-java/releases{/id}","created_at":"2015-06-24T11:15:21Z","updated_at":"2015-06-24T11:15:22Z","pushed_at":"2015-06-24T15:03:17Z","git_url":"git://github.com/deepak-adobe/gengo-java.git","ssh_url":"git@github.com:deepak-adobe/gengo-java.git","clone_url":"https://github.com/deepak-adobe/gengo-java.git","svn_url":"https://github.com/deepak-adobe/gengo-java","homepage":null,"size":157,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"gengo:master","ref":"master","sha":"da2aa86d0eec8211ab5a5fa344a999baadaa70fe","user":{"login":"gengo","id":1681251,"avatar_url":"https://avatars.githubusercontent.com/u/1681251?v=3","gravatar_id":"","url":"https://api.github.com/users/gengo","html_url":"https://github.com/gengo","followers_url":"https://api.github.com/users/gengo/followers","following_url":"https://api.github.com/users/gengo/following{/other_user}","gists_url":"https://api.github.com/users/gengo/gists{/gist_id}","starred_url":"https://api.github.com/users/gengo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gengo/subscriptions","organizations_url":"https://api.github.com/users/gengo/orgs","repos_url":"https://api.github.com/users/gengo/repos","events_url":"https://api.github.com/users/gengo/events{/privacy}","received_events_url":"https://api.github.com/users/gengo/received_events","type":"Organization","site_admin":false},"repo":{"id":6792663,"name":"gengo-java","full_name":"gengo/gengo-java","owner":{"login":"gengo","id":1681251,"avatar_url":"https://avatars.githubusercontent.com/u/1681251?v=3","gravatar_id":"","url":"https://api.github.com/users/gengo","html_url":"https://github.com/gengo","followers_url":"https://api.github.com/users/gengo/followers","following_url":"https://api.github.com/users/gengo/following{/other_user}","gists_url":"https://api.github.com/users/gengo/gists{/gist_id}","starred_url":"https://api.github.com/users/gengo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gengo/subscriptions","organizations_url":"https://api.github.com/users/gengo/orgs","repos_url":"https://api.github.com/users/gengo/repos","events_url":"https://api.github.com/users/gengo/events{/privacy}","received_events_url":"https://api.github.com/users/gengo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gengo/gengo-java","description":"A Java library to interface with the Gengo API for translation.","fork":false,"url":"https://api.github.com/repos/gengo/gengo-java","forks_url":"https://api.github.com/repos/gengo/gengo-java/forks","keys_url":"https://api.github.com/repos/gengo/gengo-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gengo/gengo-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gengo/gengo-java/teams","hooks_url":"https://api.github.com/repos/gengo/gengo-java/hooks","issue_events_url":"https://api.github.com/repos/gengo/gengo-java/issues/events{/number}","events_url":"https://api.github.com/repos/gengo/gengo-java/events","assignees_url":"https://api.github.com/repos/gengo/gengo-java/assignees{/user}","branches_url":"https://api.github.com/repos/gengo/gengo-java/branches{/branch}","tags_url":"https://api.github.com/repos/gengo/gengo-java/tags","blobs_url":"https://api.github.com/repos/gengo/gengo-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gengo/gengo-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gengo/gengo-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/gengo/gengo-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gengo/gengo-java/statuses/{sha}","languages_url":"https://api.github.com/repos/gengo/gengo-java/languages","stargazers_url":"https://api.github.com/repos/gengo/gengo-java/stargazers","contributors_url":"https://api.github.com/repos/gengo/gengo-java/contributors","subscribers_url":"https://api.github.com/repos/gengo/gengo-java/subscribers","subscription_url":"https://api.github.com/repos/gengo/gengo-java/subscription","commits_url":"https://api.github.com/repos/gengo/gengo-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/gengo/gengo-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/gengo/gengo-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/gengo/gengo-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/gengo/gengo-java/contents/{+path}","compare_url":"https://api.github.com/repos/gengo/gengo-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gengo/gengo-java/merges","archive_url":"https://api.github.com/repos/gengo/gengo-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gengo/gengo-java/downloads","issues_url":"https://api.github.com/repos/gengo/gengo-java/issues{/number}","pulls_url":"https://api.github.com/repos/gengo/gengo-java/pulls{/number}","milestones_url":"https://api.github.com/repos/gengo/gengo-java/milestones{/number}","notifications_url":"https://api.github.com/repos/gengo/gengo-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gengo/gengo-java/labels{/name}","releases_url":"https://api.github.com/repos/gengo/gengo-java/releases{/id}","created_at":"2012-11-21T08:52:48Z","updated_at":"2015-04-28T05:13:07Z","pushed_at":"2015-06-24T15:05:37Z","git_url":"git://github.com/gengo/gengo-java.git","ssh_url":"git@github.com:gengo/gengo-java.git","clone_url":"https://github.com/gengo/gengo-java.git","svn_url":"https://github.com/gengo/gengo-java","homepage":null,"size":497,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":4,"forks":10,"open_issues":4,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gengo/gengo-java/pulls/23"},"html":{"href":"https://github.com/gengo/gengo-java/pull/23"},"issue":{"href":"https://api.github.com/repos/gengo/gengo-java/issues/23"},"comments":{"href":"https://api.github.com/repos/gengo/gengo-java/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/gengo/gengo-java/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/gengo/gengo-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gengo/gengo-java/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/gengo/gengo-java/statuses/5a57a6ecdc883e6b264cbf1e2641bb0b6c870ca4"}}}}