{"action":"created","comment":{"url":"https://api.github.com/repos/linagora/jmap-client/pulls/comments/52572086","id":52572086,"diff_hunk":"@@ -536,6 +529,31 @@ export default class Client {\n     return this.updateMessage(id, { mailboxIds: mailboxIds });\n   }\n \n+  _createMessage(message, role, isDraft) {","path":"lib/client/Client.js","position":47,"original_position":47,"commit_id":"8c038357a11d493e6ccb524bdf760b7dd0409129","original_commit_id":"8c038357a11d493e6ccb524bdf760b7dd0409129","user":{"login":"ddolcimascolo","id":5468291,"avatar_url":"https://avatars.githubusercontent.com/u/5468291?v=3","gravatar_id":"","url":"https://api.github.com/users/ddolcimascolo","html_url":"https://github.com/ddolcimascolo","followers_url":"https://api.github.com/users/ddolcimascolo/followers","following_url":"https://api.github.com/users/ddolcimascolo/following{/other_user}","gists_url":"https://api.github.com/users/ddolcimascolo/gists{/gist_id}","starred_url":"https://api.github.com/users/ddolcimascolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddolcimascolo/subscriptions","organizations_url":"https://api.github.com/users/ddolcimascolo/orgs","repos_url":"https://api.github.com/users/ddolcimascolo/repos","events_url":"https://api.github.com/users/ddolcimascolo/events{/privacy}","received_events_url":"https://api.github.com/users/ddolcimascolo/received_events","type":"User","site_admin":false},"body":"Code factoring.I'm ding the `isDraft` assignation only here and the calling methods are onliners.","created_at":"2016-02-11T08:12:04Z","updated_at":"2016-02-11T08:12:04Z","html_url":"https://github.com/linagora/jmap-client/pull/29#discussion_r52572086","pull_request_url":"https://api.github.com/repos/linagora/jmap-client/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/linagora/jmap-client/pulls/comments/52572086"},"html":{"href":"https://github.com/linagora/jmap-client/pull/29#discussion_r52572086"},"pull_request":{"href":"https://api.github.com/repos/linagora/jmap-client/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/linagora/jmap-client/pulls/29","id":58896252,"html_url":"https://github.com/linagora/jmap-client/pull/29","diff_url":"https://github.com/linagora/jmap-client/pull/29.diff","patch_url":"https://github.com/linagora/jmap-client/pull/29.patch","issue_url":"https://api.github.com/repos/linagora/jmap-client/issues/29","number":29,"state":"open","locked":false,"title":"#28 Implemented Client.send","user":{"login":"ddolcimascolo","id":5468291,"avatar_url":"https://avatars.githubusercontent.com/u/5468291?v=3","gravatar_id":"","url":"https://api.github.com/users/ddolcimascolo","html_url":"https://github.com/ddolcimascolo","followers_url":"https://api.github.com/users/ddolcimascolo/followers","following_url":"https://api.github.com/users/ddolcimascolo/following{/other_user}","gists_url":"https://api.github.com/users/ddolcimascolo/gists{/gist_id}","starred_url":"https://api.github.com/users/ddolcimascolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddolcimascolo/subscriptions","organizations_url":"https://api.github.com/users/ddolcimascolo/orgs","repos_url":"https://api.github.com/users/ddolcimascolo/repos","events_url":"https://api.github.com/users/ddolcimascolo/events{/privacy}","received_events_url":"https://api.github.com/users/ddolcimascolo/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-10T14:21:09Z","updated_at":"2016-02-11T08:12:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"790a386e398c4a10a567a8f13dcdedf444d987d3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/linagora/jmap-client/pulls/29/commits","review_comments_url":"https://api.github.com/repos/linagora/jmap-client/pulls/29/comments","review_comment_url":"https://api.github.com/repos/linagora/jmap-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linagora/jmap-client/issues/29/comments","statuses_url":"https://api.github.com/repos/linagora/jmap-client/statuses/8c038357a11d493e6ccb524bdf760b7dd0409129","head":{"label":"ddolcimascolo:issue-28","ref":"issue-28","sha":"8c038357a11d493e6ccb524bdf760b7dd0409129","user":{"login":"ddolcimascolo","id":5468291,"avatar_url":"https://avatars.githubusercontent.com/u/5468291?v=3","gravatar_id":"","url":"https://api.github.com/users/ddolcimascolo","html_url":"https://github.com/ddolcimascolo","followers_url":"https://api.github.com/users/ddolcimascolo/followers","following_url":"https://api.github.com/users/ddolcimascolo/following{/other_user}","gists_url":"https://api.github.com/users/ddolcimascolo/gists{/gist_id}","starred_url":"https://api.github.com/users/ddolcimascolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddolcimascolo/subscriptions","organizations_url":"https://api.github.com/users/ddolcimascolo/orgs","repos_url":"https://api.github.com/users/ddolcimascolo/repos","events_url":"https://api.github.com/users/ddolcimascolo/events{/privacy}","received_events_url":"https://api.github.com/users/ddolcimascolo/received_events","type":"User","site_admin":false},"repo":{"id":49878868,"name":"jmap-client","full_name":"ddolcimascolo/jmap-client","owner":{"login":"ddolcimascolo","id":5468291,"avatar_url":"https://avatars.githubusercontent.com/u/5468291?v=3","gravatar_id":"","url":"https://api.github.com/users/ddolcimascolo","html_url":"https://github.com/ddolcimascolo","followers_url":"https://api.github.com/users/ddolcimascolo/followers","following_url":"https://api.github.com/users/ddolcimascolo/following{/other_user}","gists_url":"https://api.github.com/users/ddolcimascolo/gists{/gist_id}","starred_url":"https://api.github.com/users/ddolcimascolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddolcimascolo/subscriptions","organizations_url":"https://api.github.com/users/ddolcimascolo/orgs","repos_url":"https://api.github.com/users/ddolcimascolo/repos","events_url":"https://api.github.com/users/ddolcimascolo/events{/privacy}","received_events_url":"https://api.github.com/users/ddolcimascolo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ddolcimascolo/jmap-client","description":"This repository provides a javascript lib to make requests against a JMAP server.","fork":true,"url":"https://api.github.com/repos/ddolcimascolo/jmap-client","forks_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/forks","keys_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/teams","hooks_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/hooks","issue_events_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/issues/events{/number}","events_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/events","assignees_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/assignees{/user}","branches_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/branches{/branch}","tags_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/tags","blobs_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/statuses/{sha}","languages_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/languages","stargazers_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/stargazers","contributors_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/contributors","subscribers_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/subscribers","subscription_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/subscription","commits_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/contents/{+path}","compare_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/merges","archive_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/downloads","issues_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/issues{/number}","pulls_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/pulls{/number}","milestones_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/milestones{/number}","notifications_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/labels{/name}","releases_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/releases{/id}","deployments_url":"https://api.github.com/repos/ddolcimascolo/jmap-client/deployments","created_at":"2016-01-18T13:33:44Z","updated_at":"2016-01-18T13:33:45Z","pushed_at":"2016-02-10T14:20:16Z","git_url":"git://github.com/ddolcimascolo/jmap-client.git","ssh_url":"git@github.com:ddolcimascolo/jmap-client.git","clone_url":"https://github.com/ddolcimascolo/jmap-client.git","svn_url":"https://github.com/ddolcimascolo/jmap-client","homepage":null,"size":754,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"linagora:master","ref":"master","sha":"23ae75fc5bb3efa3bdd0d4cfe6f4fbb095ef46a0","user":{"login":"linagora","id":1230365,"avatar_url":"https://avatars.githubusercontent.com/u/1230365?v=3","gravatar_id":"","url":"https://api.github.com/users/linagora","html_url":"https://github.com/linagora","followers_url":"https://api.github.com/users/linagora/followers","following_url":"https://api.github.com/users/linagora/following{/other_user}","gists_url":"https://api.github.com/users/linagora/gists{/gist_id}","starred_url":"https://api.github.com/users/linagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linagora/subscriptions","organizations_url":"https://api.github.com/users/linagora/orgs","repos_url":"https://api.github.com/users/linagora/repos","events_url":"https://api.github.com/users/linagora/events{/privacy}","received_events_url":"https://api.github.com/users/linagora/received_events","type":"Organization","site_admin":false},"repo":{"id":38825084,"name":"jmap-client","full_name":"linagora/jmap-client","owner":{"login":"linagora","id":1230365,"avatar_url":"https://avatars.githubusercontent.com/u/1230365?v=3","gravatar_id":"","url":"https://api.github.com/users/linagora","html_url":"https://github.com/linagora","followers_url":"https://api.github.com/users/linagora/followers","following_url":"https://api.github.com/users/linagora/following{/other_user}","gists_url":"https://api.github.com/users/linagora/gists{/gist_id}","starred_url":"https://api.github.com/users/linagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linagora/subscriptions","organizations_url":"https://api.github.com/users/linagora/orgs","repos_url":"https://api.github.com/users/linagora/repos","events_url":"https://api.github.com/users/linagora/events{/privacy}","received_events_url":"https://api.github.com/users/linagora/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linagora/jmap-client","description":"This repository provides a javascript lib to make requests against a JMAP server.","fork":false,"url":"https://api.github.com/repos/linagora/jmap-client","forks_url":"https://api.github.com/repos/linagora/jmap-client/forks","keys_url":"https://api.github.com/repos/linagora/jmap-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linagora/jmap-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linagora/jmap-client/teams","hooks_url":"https://api.github.com/repos/linagora/jmap-client/hooks","issue_events_url":"https://api.github.com/repos/linagora/jmap-client/issues/events{/number}","events_url":"https://api.github.com/repos/linagora/jmap-client/events","assignees_url":"https://api.github.com/repos/linagora/jmap-client/assignees{/user}","branches_url":"https://api.github.com/repos/linagora/jmap-client/branches{/branch}","tags_url":"https://api.github.com/repos/linagora/jmap-client/tags","blobs_url":"https://api.github.com/repos/linagora/jmap-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linagora/jmap-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linagora/jmap-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/linagora/jmap-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linagora/jmap-client/statuses/{sha}","languages_url":"https://api.github.com/repos/linagora/jmap-client/languages","stargazers_url":"https://api.github.com/repos/linagora/jmap-client/stargazers","contributors_url":"https://api.github.com/repos/linagora/jmap-client/contributors","subscribers_url":"https://api.github.com/repos/linagora/jmap-client/subscribers","subscription_url":"https://api.github.com/repos/linagora/jmap-client/subscription","commits_url":"https://api.github.com/repos/linagora/jmap-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/linagora/jmap-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/linagora/jmap-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/linagora/jmap-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/linagora/jmap-client/contents/{+path}","compare_url":"https://api.github.com/repos/linagora/jmap-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linagora/jmap-client/merges","archive_url":"https://api.github.com/repos/linagora/jmap-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linagora/jmap-client/downloads","issues_url":"https://api.github.com/repos/linagora/jmap-client/issues{/number}","pulls_url":"https://api.github.com/repos/linagora/jmap-client/pulls{/number}","milestones_url":"https://api.github.com/repos/linagora/jmap-client/milestones{/number}","notifications_url":"https://api.github.com/repos/linagora/jmap-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linagora/jmap-client/labels{/name}","releases_url":"https://api.github.com/repos/linagora/jmap-client/releases{/id}","deployments_url":"https://api.github.com/repos/linagora/jmap-client/deployments","created_at":"2015-07-09T14:25:43Z","updated_at":"2016-02-05T13:02:53Z","pushed_at":"2016-02-10T14:21:09Z","git_url":"git://github.com/linagora/jmap-client.git","ssh_url":"git@github.com:linagora/jmap-client.git","clone_url":"https://github.com/linagora/jmap-client.git","svn_url":"https://github.com/linagora/jmap-client","homepage":null,"size":815,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":9,"mirror_url":null,"open_issues_count":5,"forks":9,"open_issues":5,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linagora/jmap-client/pulls/29"},"html":{"href":"https://github.com/linagora/jmap-client/pull/29"},"issue":{"href":"https://api.github.com/repos/linagora/jmap-client/issues/29"},"comments":{"href":"https://api.github.com/repos/linagora/jmap-client/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/linagora/jmap-client/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/linagora/jmap-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linagora/jmap-client/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/linagora/jmap-client/statuses/8c038357a11d493e6ccb524bdf760b7dd0409129"}}}}