{"action":"created","comment":{"url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/pulls/comments/36280713","id":36280713,"diff_hunk":"@@ -0,0 +1,43 @@\n+/******************************************************************************************\n+ *  class for TriggerHandler to Updating Cases that come in from the Web, Email or Chat\n+ *  Use Case – we would like to use the email address of the incoming case to see if we can \n+ *  associate the correct person account to populate the Account. When a new case is created \n+ *   and the Case.Origin field is set to “Chat” or “Email” or “Web” take \n+ *  the Case.SuppliedEmail field and look up to find a match in the following account fields \n+ *  Account.PersonEmail, Account.Email_Address__c\n+ ******************************************************************************************/\n+public with sharing class UpdateCaseHandler  \n+{\n+    /**\n+     *  Method to Update Cases that come in from the Web, Email or Chat\n+     *  Use Case – we would like to use the email address of the incoming case to see if we can \n+     *  associate the correct person account to populate the Account \n+     */\n+    public static List<Case> caseToUpdate(List<Case> listCase) {\n+        Id id;\n+        String supliedEmail;\n+        for(Case caseInstance : listCase) {","path":"classes/UpdateCaseHandler (2).cls","position":19,"original_position":19,"commit_id":"aacd10d719ab748d3b813dd14d366b246be78ad6","original_commit_id":"aacd10d719ab748d3b813dd14d366b246be78ad6","user":{"login":"KaushikRay","id":6602443,"avatar_url":"https://avatars.githubusercontent.com/u/6602443?v=3","gravatar_id":"","url":"https://api.github.com/users/KaushikRay","html_url":"https://github.com/KaushikRay","followers_url":"https://api.github.com/users/KaushikRay/followers","following_url":"https://api.github.com/users/KaushikRay/following{/other_user}","gists_url":"https://api.github.com/users/KaushikRay/gists{/gist_id}","starred_url":"https://api.github.com/users/KaushikRay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaushikRay/subscriptions","organizations_url":"https://api.github.com/users/KaushikRay/orgs","repos_url":"https://api.github.com/users/KaushikRay/repos","events_url":"https://api.github.com/users/KaushikRay/events{/privacy}","received_events_url":"https://api.github.com/users/KaushikRay/received_events","type":"User","site_admin":false},"body":"This is not correct and bulkified","created_at":"2015-08-05T08:47:32Z","updated_at":"2015-08-05T08:47:32Z","html_url":"https://github.com/NagpureMonali/SalesForceProject/pull/3#discussion_r36280713","pull_request_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/NagpureMonali/SalesForceProject/pulls/comments/36280713"},"html":{"href":"https://github.com/NagpureMonali/SalesForceProject/pull/3#discussion_r36280713"},"pull_request":{"href":"https://api.github.com/repos/NagpureMonali/SalesForceProject/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/pulls/3","id":41560410,"html_url":"https://github.com/NagpureMonali/SalesForceProject/pull/3","diff_url":"https://github.com/NagpureMonali/SalesForceProject/pull/3.diff","patch_url":"https://github.com/NagpureMonali/SalesForceProject/pull/3.patch","issue_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/issues/3","number":3,"state":"open","locked":false,"title":" Assignment No 11 (4/8) Trigger","user":{"login":"NagpureMonali","id":13236346,"avatar_url":"https://avatars.githubusercontent.com/u/13236346?v=3","gravatar_id":"","url":"https://api.github.com/users/NagpureMonali","html_url":"https://github.com/NagpureMonali","followers_url":"https://api.github.com/users/NagpureMonali/followers","following_url":"https://api.github.com/users/NagpureMonali/following{/other_user}","gists_url":"https://api.github.com/users/NagpureMonali/gists{/gist_id}","starred_url":"https://api.github.com/users/NagpureMonali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NagpureMonali/subscriptions","organizations_url":"https://api.github.com/users/NagpureMonali/orgs","repos_url":"https://api.github.com/users/NagpureMonali/repos","events_url":"https://api.github.com/users/NagpureMonali/events{/privacy}","received_events_url":"https://api.github.com/users/NagpureMonali/received_events","type":"User","site_admin":false},"body":"assignment No 11","created_at":"2015-08-04T11:40:10Z","updated_at":"2015-08-05T08:47:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e889b506eccd91b9a64098c0739363e53b515b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/pulls/3/commits","review_comments_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/pulls/3/comments","review_comment_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/issues/3/comments","statuses_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/statuses/aacd10d719ab748d3b813dd14d366b246be78ad6","head":{"label":"NagpureMonali:AssignmentNo11","ref":"AssignmentNo11","sha":"aacd10d719ab748d3b813dd14d366b246be78ad6","user":{"login":"NagpureMonali","id":13236346,"avatar_url":"https://avatars.githubusercontent.com/u/13236346?v=3","gravatar_id":"","url":"https://api.github.com/users/NagpureMonali","html_url":"https://github.com/NagpureMonali","followers_url":"https://api.github.com/users/NagpureMonali/followers","following_url":"https://api.github.com/users/NagpureMonali/following{/other_user}","gists_url":"https://api.github.com/users/NagpureMonali/gists{/gist_id}","starred_url":"https://api.github.com/users/NagpureMonali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NagpureMonali/subscriptions","organizations_url":"https://api.github.com/users/NagpureMonali/orgs","repos_url":"https://api.github.com/users/NagpureMonali/repos","events_url":"https://api.github.com/users/NagpureMonali/events{/privacy}","received_events_url":"https://api.github.com/users/NagpureMonali/received_events","type":"User","site_admin":false},"repo":{"id":40126748,"name":"SalesForceProject","full_name":"NagpureMonali/SalesForceProject","owner":{"login":"NagpureMonali","id":13236346,"avatar_url":"https://avatars.githubusercontent.com/u/13236346?v=3","gravatar_id":"","url":"https://api.github.com/users/NagpureMonali","html_url":"https://github.com/NagpureMonali","followers_url":"https://api.github.com/users/NagpureMonali/followers","following_url":"https://api.github.com/users/NagpureMonali/following{/other_user}","gists_url":"https://api.github.com/users/NagpureMonali/gists{/gist_id}","starred_url":"https://api.github.com/users/NagpureMonali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NagpureMonali/subscriptions","organizations_url":"https://api.github.com/users/NagpureMonali/orgs","repos_url":"https://api.github.com/users/NagpureMonali/repos","events_url":"https://api.github.com/users/NagpureMonali/events{/privacy}","received_events_url":"https://api.github.com/users/NagpureMonali/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NagpureMonali/SalesForceProject","description":"here is whole eclipse project of salesforce","fork":false,"url":"https://api.github.com/repos/NagpureMonali/SalesForceProject","forks_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/forks","keys_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/teams","hooks_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/hooks","issue_events_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/issues/events{/number}","events_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/events","assignees_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/assignees{/user}","branches_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/branches{/branch}","tags_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/tags","blobs_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/git/refs{/sha}","trees_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/statuses/{sha}","languages_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/languages","stargazers_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/stargazers","contributors_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/contributors","subscribers_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/subscribers","subscription_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/subscription","commits_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/commits{/sha}","git_commits_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/git/commits{/sha}","comments_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/comments{/number}","issue_comment_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/issues/comments{/number}","contents_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/contents/{+path}","compare_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/merges","archive_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/downloads","issues_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/issues{/number}","pulls_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/pulls{/number}","milestones_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/milestones{/number}","notifications_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/labels{/name}","releases_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/releases{/id}","created_at":"2015-08-03T13:38:25Z","updated_at":"2015-08-03T13:42:35Z","pushed_at":"2015-08-05T06:04:30Z","git_url":"git://github.com/NagpureMonali/SalesForceProject.git","ssh_url":"git@github.com:NagpureMonali/SalesForceProject.git","clone_url":"https://github.com/NagpureMonali/SalesForceProject.git","svn_url":"https://github.com/NagpureMonali/SalesForceProject","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Apex","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"NagpureMonali:master","ref":"master","sha":"ed17dd2b9ea3495fe759a036496c913067b54d4c","user":{"login":"NagpureMonali","id":13236346,"avatar_url":"https://avatars.githubusercontent.com/u/13236346?v=3","gravatar_id":"","url":"https://api.github.com/users/NagpureMonali","html_url":"https://github.com/NagpureMonali","followers_url":"https://api.github.com/users/NagpureMonali/followers","following_url":"https://api.github.com/users/NagpureMonali/following{/other_user}","gists_url":"https://api.github.com/users/NagpureMonali/gists{/gist_id}","starred_url":"https://api.github.com/users/NagpureMonali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NagpureMonali/subscriptions","organizations_url":"https://api.github.com/users/NagpureMonali/orgs","repos_url":"https://api.github.com/users/NagpureMonali/repos","events_url":"https://api.github.com/users/NagpureMonali/events{/privacy}","received_events_url":"https://api.github.com/users/NagpureMonali/received_events","type":"User","site_admin":false},"repo":{"id":40126748,"name":"SalesForceProject","full_name":"NagpureMonali/SalesForceProject","owner":{"login":"NagpureMonali","id":13236346,"avatar_url":"https://avatars.githubusercontent.com/u/13236346?v=3","gravatar_id":"","url":"https://api.github.com/users/NagpureMonali","html_url":"https://github.com/NagpureMonali","followers_url":"https://api.github.com/users/NagpureMonali/followers","following_url":"https://api.github.com/users/NagpureMonali/following{/other_user}","gists_url":"https://api.github.com/users/NagpureMonali/gists{/gist_id}","starred_url":"https://api.github.com/users/NagpureMonali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NagpureMonali/subscriptions","organizations_url":"https://api.github.com/users/NagpureMonali/orgs","repos_url":"https://api.github.com/users/NagpureMonali/repos","events_url":"https://api.github.com/users/NagpureMonali/events{/privacy}","received_events_url":"https://api.github.com/users/NagpureMonali/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NagpureMonali/SalesForceProject","description":"here is whole eclipse project of salesforce","fork":false,"url":"https://api.github.com/repos/NagpureMonali/SalesForceProject","forks_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/forks","keys_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/teams","hooks_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/hooks","issue_events_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/issues/events{/number}","events_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/events","assignees_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/assignees{/user}","branches_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/branches{/branch}","tags_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/tags","blobs_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/git/refs{/sha}","trees_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/statuses/{sha}","languages_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/languages","stargazers_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/stargazers","contributors_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/contributors","subscribers_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/subscribers","subscription_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/subscription","commits_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/commits{/sha}","git_commits_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/git/commits{/sha}","comments_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/comments{/number}","issue_comment_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/issues/comments{/number}","contents_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/contents/{+path}","compare_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/merges","archive_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/downloads","issues_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/issues{/number}","pulls_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/pulls{/number}","milestones_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/milestones{/number}","notifications_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/labels{/name}","releases_url":"https://api.github.com/repos/NagpureMonali/SalesForceProject/releases{/id}","created_at":"2015-08-03T13:38:25Z","updated_at":"2015-08-03T13:42:35Z","pushed_at":"2015-08-05T06:04:30Z","git_url":"git://github.com/NagpureMonali/SalesForceProject.git","ssh_url":"git@github.com:NagpureMonali/SalesForceProject.git","clone_url":"https://github.com/NagpureMonali/SalesForceProject.git","svn_url":"https://github.com/NagpureMonali/SalesForceProject","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Apex","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NagpureMonali/SalesForceProject/pulls/3"},"html":{"href":"https://github.com/NagpureMonali/SalesForceProject/pull/3"},"issue":{"href":"https://api.github.com/repos/NagpureMonali/SalesForceProject/issues/3"},"comments":{"href":"https://api.github.com/repos/NagpureMonali/SalesForceProject/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/NagpureMonali/SalesForceProject/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/NagpureMonali/SalesForceProject/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NagpureMonali/SalesForceProject/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/NagpureMonali/SalesForceProject/statuses/aacd10d719ab748d3b813dd14d366b246be78ad6"}}}}