{"action":"created","comment":{"url":"https://api.github.com/repos/OnePageCRM/java-wrapper/pulls/comments/205492622","pull_request_review_id":140771936,"id":205492622,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTQ5MjYyMg==","diff_hunk":"@@ -0,0 +1,110 @@\n+package com.onepagecrm.models.serializers;\n+\n+import com.onepagecrm.exceptions.OnePageException;\n+import com.onepagecrm.models.Email;\n+import com.onepagecrm.models.EmailMessage;\n+import com.onepagecrm.models.EmailRecipients;\n+\n+import org.json.JSONArray;\n+import org.json.JSONException;\n+import org.json.JSONObject;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.logging.Logger;\n+\n+public class EmailMessageSerializer extends BaseSerializer {\n+\n+    private static final Logger LOG = Logger.getLogger(EmailMessageSerializer.class.getName());\n+\n+    public static List<EmailMessage> fromString(String responseBody) throws OnePageException {\n+        List<EmailMessage> result = new ArrayList<>();\n+        try {\n+            String parsedResponse = (String) BaseSerializer.fromString(responseBody);\n+            JSONObject responseObject = new JSONObject(parsedResponse);\n+            return fromJsonArray(responseObject.getJSONArray(\"email_messages\"));","path":"src/main/java/com/onepagecrm/models/serializers/EmailMessageSerializer.java","position":25,"original_position":25,"commit_id":"86d2d548a1fc9cc81f68717797ec09e8dd577c49","original_commit_id":"86d2d548a1fc9cc81f68717797ec09e8dd577c49","user":{"login":"fraggjkee","id":1222517,"node_id":"MDQ6VXNlcjEyMjI1MTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1222517?v=4","gravatar_id":"","url":"https://api.github.com/users/fraggjkee","html_url":"https://github.com/fraggjkee","followers_url":"https://api.github.com/users/fraggjkee/followers","following_url":"https://api.github.com/users/fraggjkee/following{/other_user}","gists_url":"https://api.github.com/users/fraggjkee/gists{/gist_id}","starred_url":"https://api.github.com/users/fraggjkee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraggjkee/subscriptions","organizations_url":"https://api.github.com/users/fraggjkee/orgs","repos_url":"https://api.github.com/users/fraggjkee/repos","events_url":"https://api.github.com/users/fraggjkee/events{/privacy}","received_events_url":"https://api.github.com/users/fraggjkee/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2018-07-26T15:04:32Z","updated_at":"2018-07-26T15:04:32Z","html_url":"https://github.com/OnePageCRM/java-wrapper/pull/132#discussion_r205492622","pull_request_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/pulls/132","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/OnePageCRM/java-wrapper/pulls/comments/205492622"},"html":{"href":"https://github.com/OnePageCRM/java-wrapper/pull/132#discussion_r205492622"},"pull_request":{"href":"https://api.github.com/repos/OnePageCRM/java-wrapper/pulls/132"}},"in_reply_to_id":204394555},"pull_request":{"url":"https://api.github.com/repos/OnePageCRM/java-wrapper/pulls/132","id":203209946,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzMjA5OTQ2","html_url":"https://github.com/OnePageCRM/java-wrapper/pull/132","diff_url":"https://github.com/OnePageCRM/java-wrapper/pull/132.diff","patch_url":"https://github.com/OnePageCRM/java-wrapper/pull/132.patch","issue_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/issues/132","number":132,"state":"open","locked":false,"title":"AND-911 [Emails] in ContactView","user":{"login":"CillianMyles","id":5852503,"node_id":"MDQ6VXNlcjU4NTI1MDM=","avatar_url":"https://avatars0.githubusercontent.com/u/5852503?v=4","gravatar_id":"","url":"https://api.github.com/users/CillianMyles","html_url":"https://github.com/CillianMyles","followers_url":"https://api.github.com/users/CillianMyles/followers","following_url":"https://api.github.com/users/CillianMyles/following{/other_user}","gists_url":"https://api.github.com/users/CillianMyles/gists{/gist_id}","starred_url":"https://api.github.com/users/CillianMyles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CillianMyles/subscriptions","organizations_url":"https://api.github.com/users/CillianMyles/orgs","repos_url":"https://api.github.com/users/CillianMyles/repos","events_url":"https://api.github.com/users/CillianMyles/events{/privacy}","received_events_url":"https://api.github.com/users/CillianMyles/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-23T12:55:36Z","updated_at":"2018-07-26T15:04:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"904a6eec3d567865e4c87e32a28c2a0429dc9738","assignee":{"login":"CillianMyles","id":5852503,"node_id":"MDQ6VXNlcjU4NTI1MDM=","avatar_url":"https://avatars0.githubusercontent.com/u/5852503?v=4","gravatar_id":"","url":"https://api.github.com/users/CillianMyles","html_url":"https://github.com/CillianMyles","followers_url":"https://api.github.com/users/CillianMyles/followers","following_url":"https://api.github.com/users/CillianMyles/following{/other_user}","gists_url":"https://api.github.com/users/CillianMyles/gists{/gist_id}","starred_url":"https://api.github.com/users/CillianMyles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CillianMyles/subscriptions","organizations_url":"https://api.github.com/users/CillianMyles/orgs","repos_url":"https://api.github.com/users/CillianMyles/repos","events_url":"https://api.github.com/users/CillianMyles/events{/privacy}","received_events_url":"https://api.github.com/users/CillianMyles/received_events","type":"User","site_admin":false},"assignees":[{"login":"CillianMyles","id":5852503,"node_id":"MDQ6VXNlcjU4NTI1MDM=","avatar_url":"https://avatars0.githubusercontent.com/u/5852503?v=4","gravatar_id":"","url":"https://api.github.com/users/CillianMyles","html_url":"https://github.com/CillianMyles","followers_url":"https://api.github.com/users/CillianMyles/followers","following_url":"https://api.github.com/users/CillianMyles/following{/other_user}","gists_url":"https://api.github.com/users/CillianMyles/gists{/gist_id}","starred_url":"https://api.github.com/users/CillianMyles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CillianMyles/subscriptions","organizations_url":"https://api.github.com/users/CillianMyles/orgs","repos_url":"https://api.github.com/users/CillianMyles/repos","events_url":"https://api.github.com/users/CillianMyles/events{/privacy}","received_events_url":"https://api.github.com/users/CillianMyles/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/pulls/132/commits","review_comments_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/pulls/132/comments","review_comment_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/issues/132/comments","statuses_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/statuses/86d2d548a1fc9cc81f68717797ec09e8dd577c49","head":{"label":"OnePageCRM:task/AND-911/related_emails","ref":"task/AND-911/related_emails","sha":"86d2d548a1fc9cc81f68717797ec09e8dd577c49","user":{"login":"OnePageCRM","id":6207069,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMDcwNjk=","avatar_url":"https://avatars0.githubusercontent.com/u/6207069?v=4","gravatar_id":"","url":"https://api.github.com/users/OnePageCRM","html_url":"https://github.com/OnePageCRM","followers_url":"https://api.github.com/users/OnePageCRM/followers","following_url":"https://api.github.com/users/OnePageCRM/following{/other_user}","gists_url":"https://api.github.com/users/OnePageCRM/gists{/gist_id}","starred_url":"https://api.github.com/users/OnePageCRM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnePageCRM/subscriptions","organizations_url":"https://api.github.com/users/OnePageCRM/orgs","repos_url":"https://api.github.com/users/OnePageCRM/repos","events_url":"https://api.github.com/users/OnePageCRM/events{/privacy}","received_events_url":"https://api.github.com/users/OnePageCRM/received_events","type":"Organization","site_admin":false},"repo":{"id":39438439,"node_id":"MDEwOlJlcG9zaXRvcnkzOTQzODQzOQ==","name":"java-wrapper","full_name":"OnePageCRM/java-wrapper","owner":{"login":"OnePageCRM","id":6207069,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMDcwNjk=","avatar_url":"https://avatars0.githubusercontent.com/u/6207069?v=4","gravatar_id":"","url":"https://api.github.com/users/OnePageCRM","html_url":"https://github.com/OnePageCRM","followers_url":"https://api.github.com/users/OnePageCRM/followers","following_url":"https://api.github.com/users/OnePageCRM/following{/other_user}","gists_url":"https://api.github.com/users/OnePageCRM/gists{/gist_id}","starred_url":"https://api.github.com/users/OnePageCRM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnePageCRM/subscriptions","organizations_url":"https://api.github.com/users/OnePageCRM/orgs","repos_url":"https://api.github.com/users/OnePageCRM/repos","events_url":"https://api.github.com/users/OnePageCRM/events{/privacy}","received_events_url":"https://api.github.com/users/OnePageCRM/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OnePageCRM/java-wrapper","description":"Helps interacting with the OPCRM API, providing you quick and easy access to API resources in useful formats.","fork":false,"url":"https://api.github.com/repos/OnePageCRM/java-wrapper","forks_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/forks","keys_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/teams","hooks_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/hooks","issue_events_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/issues/events{/number}","events_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/events","assignees_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/assignees{/user}","branches_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/branches{/branch}","tags_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/tags","blobs_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/statuses/{sha}","languages_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/languages","stargazers_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/stargazers","contributors_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/contributors","subscribers_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/subscribers","subscription_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/subscription","commits_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/contents/{+path}","compare_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/merges","archive_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/downloads","issues_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/issues{/number}","pulls_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/pulls{/number}","milestones_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/milestones{/number}","notifications_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/labels{/name}","releases_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/releases{/id}","deployments_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/deployments","created_at":"2015-07-21T10:09:22Z","updated_at":"2018-04-11T15:42:43Z","pushed_at":"2018-07-23T12:55:36Z","git_url":"git://github.com/OnePageCRM/java-wrapper.git","ssh_url":"git@github.com:OnePageCRM/java-wrapper.git","clone_url":"https://github.com/OnePageCRM/java-wrapper.git","svn_url":"https://github.com/OnePageCRM/java-wrapper","homepage":"","size":16184,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"OnePageCRM:develop","ref":"develop","sha":"c1b26121dbd49dc3bf41ab503d8643c2dc3d5eb8","user":{"login":"OnePageCRM","id":6207069,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMDcwNjk=","avatar_url":"https://avatars0.githubusercontent.com/u/6207069?v=4","gravatar_id":"","url":"https://api.github.com/users/OnePageCRM","html_url":"https://github.com/OnePageCRM","followers_url":"https://api.github.com/users/OnePageCRM/followers","following_url":"https://api.github.com/users/OnePageCRM/following{/other_user}","gists_url":"https://api.github.com/users/OnePageCRM/gists{/gist_id}","starred_url":"https://api.github.com/users/OnePageCRM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnePageCRM/subscriptions","organizations_url":"https://api.github.com/users/OnePageCRM/orgs","repos_url":"https://api.github.com/users/OnePageCRM/repos","events_url":"https://api.github.com/users/OnePageCRM/events{/privacy}","received_events_url":"https://api.github.com/users/OnePageCRM/received_events","type":"Organization","site_admin":false},"repo":{"id":39438439,"node_id":"MDEwOlJlcG9zaXRvcnkzOTQzODQzOQ==","name":"java-wrapper","full_name":"OnePageCRM/java-wrapper","owner":{"login":"OnePageCRM","id":6207069,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMDcwNjk=","avatar_url":"https://avatars0.githubusercontent.com/u/6207069?v=4","gravatar_id":"","url":"https://api.github.com/users/OnePageCRM","html_url":"https://github.com/OnePageCRM","followers_url":"https://api.github.com/users/OnePageCRM/followers","following_url":"https://api.github.com/users/OnePageCRM/following{/other_user}","gists_url":"https://api.github.com/users/OnePageCRM/gists{/gist_id}","starred_url":"https://api.github.com/users/OnePageCRM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnePageCRM/subscriptions","organizations_url":"https://api.github.com/users/OnePageCRM/orgs","repos_url":"https://api.github.com/users/OnePageCRM/repos","events_url":"https://api.github.com/users/OnePageCRM/events{/privacy}","received_events_url":"https://api.github.com/users/OnePageCRM/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OnePageCRM/java-wrapper","description":"Helps interacting with the OPCRM API, providing you quick and easy access to API resources in useful formats.","fork":false,"url":"https://api.github.com/repos/OnePageCRM/java-wrapper","forks_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/forks","keys_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/teams","hooks_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/hooks","issue_events_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/issues/events{/number}","events_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/events","assignees_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/assignees{/user}","branches_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/branches{/branch}","tags_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/tags","blobs_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/statuses/{sha}","languages_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/languages","stargazers_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/stargazers","contributors_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/contributors","subscribers_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/subscribers","subscription_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/subscription","commits_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/contents/{+path}","compare_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/merges","archive_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/downloads","issues_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/issues{/number}","pulls_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/pulls{/number}","milestones_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/milestones{/number}","notifications_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/labels{/name}","releases_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/releases{/id}","deployments_url":"https://api.github.com/repos/OnePageCRM/java-wrapper/deployments","created_at":"2015-07-21T10:09:22Z","updated_at":"2018-04-11T15:42:43Z","pushed_at":"2018-07-23T12:55:36Z","git_url":"git://github.com/OnePageCRM/java-wrapper.git","ssh_url":"git@github.com:OnePageCRM/java-wrapper.git","clone_url":"https://github.com/OnePageCRM/java-wrapper.git","svn_url":"https://github.com/OnePageCRM/java-wrapper","homepage":"","size":16184,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OnePageCRM/java-wrapper/pulls/132"},"html":{"href":"https://github.com/OnePageCRM/java-wrapper/pull/132"},"issue":{"href":"https://api.github.com/repos/OnePageCRM/java-wrapper/issues/132"},"comments":{"href":"https://api.github.com/repos/OnePageCRM/java-wrapper/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/OnePageCRM/java-wrapper/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/OnePageCRM/java-wrapper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OnePageCRM/java-wrapper/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/OnePageCRM/java-wrapper/statuses/86d2d548a1fc9cc81f68717797ec09e8dd577c49"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"fraggjkee"}}