payload: {"action":"created","comment":{"url":"https://api.github.com/repos/alenantonova/smart-home-2019/pulls/comments/268393982","pull_request_review_id":218038245,"id":268393982,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2ODM5Mzk4Mg==","diff_hunk":"@@ -25,10 +25,11 @@ public static void main(String... args) throws IOException {\n     }\n \n \n-    private static Collection<EventHandler> createEventHandler() {\n-        Collection<EventHandler> eventTypes = new ArrayList<>();\n-        eventTypes.add(new LightEventHandler());\n-        eventTypes.add(new DoorEventHandler());\n+    private static Collection<EventHandlerDecorator> createEventHandler() {\n+        Collection<EventHandlerDecorator> eventTypes = new ArrayList<>();\n+        eventTypes.add(new EventHandlerDecorator(new LightEventHandler()));\n+        eventTypes.add(new EventHandlerDecorator(new DoorEventHandler()));\n+        eventTypes.add(new EventHandlerDecorator(new AlarmEventHandler()));","path":"src/main/java/ru/sbt/mipt/oop/Application.java","position":21,"original_position":21,"commit_id":"4b000afc3ff774feb4c1062cbcd3be4917bae711","original_commit_id":"4b000afc3ff774feb4c1062cbcd3be4917bae711","user":{"login":"sbt-agoshkov","id":9216865,"node_id":"MDQ6VXNlcjkyMTY4NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/9216865?v=4","gravatar_id":"","url":"https://api.github.com/users/sbt-agoshkov","html_url":"https://github.com/sbt-agoshkov","followers_url":"https://api.github.com/users/sbt-agoshkov/followers","following_url":"https://api.github.com/users/sbt-agoshkov/following{/other_user}","gists_url":"https://api.github.com/users/sbt-agoshkov/gists{/gist_id}","starred_url":"https://api.github.com/users/sbt-agoshkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbt-agoshkov/subscriptions","organizations_url":"https://api.github.com/users/sbt-agoshkov/orgs","repos_url":"https://api.github.com/users/sbt-agoshkov/repos","events_url":"https://api.github.com/users/sbt-agoshkov/events{/privacy}","received_events_url":"https://api.github.com/users/sbt-agoshkov/received_events","type":"User","site_admin":false},"body":"А вот AlarmEventHandler не нужно как раз декорировать и тогда можно из декоратора убрать условия на eventType != ALARM_ACTIVATE/ALARM_DEACTIVATE","created_at":"2019-03-23T13:05:31Z","updated_at":"2019-03-23T13:06:33Z","html_url":"https://github.com/alenantonova/smart-home-2019/pull/5#discussion_r268393982","pull_request_url":"https://api.github.com/repos/alenantonova/smart-home-2019/pulls/5","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/alenantonova/smart-home-2019/pulls/comments/268393982"},"html":{"href":"https://github.com/alenantonova/smart-home-2019/pull/5#discussion_r268393982"},"pull_request":{"href":"https://api.github.com/repos/alenantonova/smart-home-2019/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/alenantonova/smart-home-2019/pulls/5","id":262902860,"node_id":"MDExOlB1bGxSZXF1ZXN0MjYyOTAyODYw","html_url":"https://github.com/alenantonova/smart-home-2019/pull/5","diff_url":"https://github.com/alenantonova/smart-home-2019/pull/5.diff","patch_url":"https://github.com/alenantonova/smart-home-2019/pull/5.patch","issue_url":"https://api.github.com/repos/alenantonova/smart-home-2019/issues/5","number":5,"state":"open","locked":false,"title":"ДЗ 3 + исправления по ДЗ 2","user":{"login":"alenantonova","id":32340888,"node_id":"MDQ6VXNlcjMyMzQwODg4","avatar_url":"https://avatars1.githubusercontent.com/u/32340888?v=4","gravatar_id":"","url":"https://api.github.com/users/alenantonova","html_url":"https://github.com/alenantonova","followers_url":"https://api.github.com/users/alenantonova/followers","following_url":"https://api.github.com/users/alenantonova/following{/other_user}","gists_url":"https://api.github.com/users/alenantonova/gists{/gist_id}","starred_url":"https://api.github.com/users/alenantonova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alenantonova/subscriptions","organizations_url":"https://api.github.com/users/alenantonova/orgs","repos_url":"https://api.github.com/users/alenantonova/repos","events_url":"https://api.github.com/users/alenantonova/events{/privacy}","received_events_url":"https://api.github.com/users/alenantonova/received_events","type":"User","site_admin":false},"body":"Изменения по дз 2 пока удалила, потом , насколько я поняла, просто смогу из закоммитить, и они добавятся в этот пулл реквест","created_at":"2019-03-20T14:58:58Z","updated_at":"2019-03-23T13:06:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"205e3e735bf85f0177ee9e2171bf889a5caccc37","assignee":{"login":"sbt-agoshkov","id":9216865,"node_id":"MDQ6VXNlcjkyMTY4NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/9216865?v=4","gravatar_id":"","url":"https://api.github.com/users/sbt-agoshkov","html_url":"https://github.com/sbt-agoshkov","followers_url":"https://api.github.com/users/sbt-agoshkov/followers","following_url":"https://api.github.com/users/sbt-agoshkov/following{/other_user}","gists_url":"https://api.github.com/users/sbt-agoshkov/gists{/gist_id}","starred_url":"https://api.github.com/users/sbt-agoshkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbt-agoshkov/subscriptions","organizations_url":"https://api.github.com/users/sbt-agoshkov/orgs","repos_url":"https://api.github.com/users/sbt-agoshkov/repos","events_url":"https://api.github.com/users/sbt-agoshkov/events{/privacy}","received_events_url":"https://api.github.com/users/sbt-agoshkov/received_events","type":"User","site_admin":false},"assignees":[{"login":"sbt-agoshkov","id":9216865,"node_id":"MDQ6VXNlcjkyMTY4NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/9216865?v=4","gravatar_id":"","url":"https://api.github.com/users/sbt-agoshkov","html_url":"https://github.com/sbt-agoshkov","followers_url":"https://api.github.com/users/sbt-agoshkov/followers","following_url":"https://api.github.com/users/sbt-agoshkov/following{/other_user}","gists_url":"https://api.github.com/users/sbt-agoshkov/gists{/gist_id}","starred_url":"https://api.github.com/users/sbt-agoshkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbt-agoshkov/subscriptions","organizations_url":"https://api.github.com/users/sbt-agoshkov/orgs","repos_url":"https://api.github.com/users/sbt-agoshkov/repos","events_url":"https://api.github.com/users/sbt-agoshkov/events{/privacy}","received_events_url":"https://api.github.com/users/sbt-agoshkov/received_events","type":"User","site_admin":false},{"login":"alenantonova","id":32340888,"node_id":"MDQ6VXNlcjMyMzQwODg4","avatar_url":"https://avatars1.githubusercontent.com/u/32340888?v=4","gravatar_id":"","url":"https://api.github.com/users/alenantonova","html_url":"https://github.com/alenantonova","followers_url":"https://api.github.com/users/alenantonova/followers","following_url":"https://api.github.com/users/alenantonova/following{/other_user}","gists_url":"https://api.github.com/users/alenantonova/gists{/gist_id}","starred_url":"https://api.github.com/users/alenantonova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alenantonova/subscriptions","organizations_url":"https://api.github.com/users/alenantonova/orgs","repos_url":"https://api.github.com/users/alenantonova/repos","events_url":"https://api.github.com/users/alenantonova/events{/privacy}","received_events_url":"https://api.github.com/users/alenantonova/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alenantonova/smart-home-2019/pulls/5/commits","review_comments_url":"https://api.github.com/repos/alenantonova/smart-home-2019/pulls/5/comments","review_comment_url":"https://api.github.com/repos/alenantonova/smart-home-2019/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alenantonova/smart-home-2019/issues/5/comments","statuses_url":"https://api.github.com/repos/alenantonova/smart-home-2019/statuses/4b000afc3ff774feb4c1062cbcd3be4917bae711","head":{"label":"alenantonova:solid","ref":"solid","sha":"4b000afc3ff774feb4c1062cbcd3be4917bae711","user":{"login":"alenantonova","id":32340888,"node_id":"MDQ6VXNlcjMyMzQwODg4","avatar_url":"https://avatars1.githubusercontent.com/u/32340888?v=4","gravatar_id":"","url":"https://api.github.com/users/alenantonova","html_url":"https://github.com/alenantonova","followers_url":"https://api.github.com/users/alenantonova/followers","following_url":"https://api.github.com/users/alenantonova/following{/other_user}","gists_url":"https://api.github.com/users/alenantonova/gists{/gist_id}","starred_url":"https://api.github.com/users/alenantonova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alenantonova/subscriptions","organizations_url":"https://api.github.com/users/alenantonova/orgs","repos_url":"https://api.github.com/users/alenantonova/repos","events_url":"https://api.github.com/users/alenantonova/events{/privacy}","received_events_url":"https://api.github.com/users/alenantonova/received_events","type":"User","site_admin":false},"repo":{"id":175316677,"node_id":"MDEwOlJlcG9zaXRvcnkxNzUzMTY2Nzc=","name":"smart-home-2019","full_name":"alenantonova/smart-home-2019","private":false,"owner":{"login":"alenantonova","id":32340888,"node_id":"MDQ6VXNlcjMyMzQwODg4","avatar_url":"https://avatars1.githubusercontent.com/u/32340888?v=4","gravatar_id":"","url":"https://api.github.com/users/alenantonova","html_url":"https://github.com/alenantonova","followers_url":"https://api.github.com/users/alenantonova/followers","following_url":"https://api.github.com/users/alenantonova/following{/other_user}","gists_url":"https://api.github.com/users/alenantonova/gists{/gist_id}","starred_url":"https://api.github.com/users/alenantonova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alenantonova/subscriptions","organizations_url":"https://api.github.com/users/alenantonova/orgs","repos_url":"https://api.github.com/users/alenantonova/repos","events_url":"https://api.github.com/users/alenantonova/events{/privacy}","received_events_url":"https://api.github.com/users/alenantonova/received_events","type":"User","site_admin":false},"html_url":"https://github.com/alenantonova/smart-home-2019","description":null,"fork":true,"url":"https://api.github.com/repos/alenantonova/smart-home-2019","forks_url":"https://api.github.com/repos/alenantonova/smart-home-2019/forks","keys_url":"https://api.github.com/repos/alenantonova/smart-home-2019/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alenantonova/smart-home-2019/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alenantonova/smart-home-2019/teams","hooks_url":"https://api.github.com/repos/alenantonova/smart-home-2019/hooks","issue_events_url":"https://api.github.com/repos/alenantonova/smart-home-2019/issues/events{/number}","events_url":"https://api.github.com/repos/alenantonova/smart-home-2019/events","assignees_url":"https://api.github.com/repos/alenantonova/smart-home-2019/assignees{/user}","branches_url":"https://api.github.com/repos/alenantonova/smart-home-2019/branches{/branch}","tags_url":"https://api.github.com/repos/alenantonova/smart-home-2019/tags","blobs_url":"https://api.github.com/repos/alenantonova/smart-home-2019/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alenantonova/smart-home-2019/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alenantonova/smart-home-2019/git/refs{/sha}","trees_url":"https://api.github.com/repos/alenantonova/smart-home-2019/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alenantonova/smart-home-2019/statuses/{sha}","languages_url":"https://api.github.com/repos/alenantonova/smart-home-2019/languages","stargazers_url":"https://api.github.com/repos/alenantonova/smart-home-2019/stargazers","contributors_url":"https://api.github.com/repos/alenantonova/smart-home-2019/contributors","subscribers_url":"https://api.github.com/repos/alenantonova/smart-home-2019/subscribers","subscription_url":"https://api.github.com/repos/alenantonova/smart-home-2019/subscription","commits_url":"https://api.github.com/repos/alenantonova/smart-home-2019/commits{/sha}","git_commits_url":"https://api.github.com/repos/alenantonova/smart-home-2019/git/commits{/sha}","comments_url":"https://api.github.com/repos/alenantonova/smart-home-2019/comments{/number}","issue_comment_url":"https://api.github.com/repos/alenantonova/smart-home-2019/issues/comments{/number}","contents_url":"https://api.github.com/repos/alenantonova/smart-home-2019/contents/{+path}","compare_url":"https://api.github.com/repos/alenantonova/smart-home-2019/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alenantonova/smart-home-2019/merges","archive_url":"https://api.github.com/repos/alenantonova/smart-home-2019/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alenantonova/smart-home-2019/downloads","issues_url":"https://api.github.com/repos/alenantonova/smart-home-2019/issues{/number}","pulls_url":"https://api.github.com/repos/alenantonova/smart-home-2019/pulls{/number}","milestones_url":"https://api.github.com/repos/alenantonova/smart-home-2019/milestones{/number}","notifications_url":"https://api.github.com/repos/alenantonova/smart-home-2019/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alenantonova/smart-home-2019/labels{/name}","releases_url":"https://api.github.com/repos/alenantonova/smart-home-2019/releases{/id}","deployments_url":"https://api.github.com/repos/alenantonova/smart-home-2019/deployments","created_at":"2019-03-13T00:25:26Z","updated_at":"2019-03-20T14:35:36Z","pushed_at":"2019-03-20T22:15:44Z","git_url":"git://github.com/alenantonova/smart-home-2019.git","ssh_url":"git@github.com:alenantonova/smart-home-2019.git","clone_url":"https://github.com/alenantonova/smart-home-2019.git","svn_url":"https://github.com/alenantonova/smart-home-2019","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"alenantonova:master","ref":"master","sha":"534e986e3576c5a5a3dc097e25727fae7cbea1d6","user":{"login":"alenantonova","id":32340888,"node_id":"MDQ6VXNlcjMyMzQwODg4","avatar_url":"https://avatars1.githubusercontent.com/u/32340888?v=4","gravatar_id":"","url":"https://api.github.com/users/alenantonova","html_url":"https://github.com/alenantonova","followers_url":"https://api.github.com/users/alenantonova/followers","following_url":"https://api.github.com/users/alenantonova/following{/other_user}","gists_url":"https://api.github.com/users/alenantonova/gists{/gist_id}","starred_url":"https://api.github.com/users/alenantonova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alenantonova/subscriptions","organizations_url":"https://api.github.com/users/alenantonova/orgs","repos_url":"https://api.github.com/users/alenantonova/repos","events_url":"https://api.github.com/users/alenantonova/events{/privacy}","received_events_url":"https://api.github.com/users/alenantonova/received_events","type":"User","site_admin":false},"repo":{"id":175316677,"node_id":"MDEwOlJlcG9zaXRvcnkxNzUzMTY2Nzc=","name":"smart-home-2019","full_name":"alenantonova/smart-home-2019","private":false,"owner":{"login":"alenantonova","id":32340888,"node_id":"MDQ6VXNlcjMyMzQwODg4","avatar_url":"https://avatars1.githubusercontent.com/u/32340888?v=4","gravatar_id":"","url":"https://api.github.com/users/alenantonova","html_url":"https://github.com/alenantonova","followers_url":"https://api.github.com/users/alenantonova/followers","following_url":"https://api.github.com/users/alenantonova/following{/other_user}","gists_url":"https://api.github.com/users/alenantonova/gists{/gist_id}","starred_url":"https://api.github.com/users/alenantonova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alenantonova/subscriptions","organizations_url":"https://api.github.com/users/alenantonova/orgs","repos_url":"https://api.github.com/users/alenantonova/repos","events_url":"https://api.github.com/users/alenantonova/events{/privacy}","received_events_url":"https://api.github.com/users/alenantonova/received_events","type":"User","site_admin":false},"html_url":"https://github.com/alenantonova/smart-home-2019","description":null,"fork":true,"url":"https://api.github.com/repos/alenantonova/smart-home-2019","forks_url":"https://api.github.com/repos/alenantonova/smart-home-2019/forks","keys_url":"https://api.github.com/repos/alenantonova/smart-home-2019/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alenantonova/smart-home-2019/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alenantonova/smart-home-2019/teams","hooks_url":"https://api.github.com/repos/alenantonova/smart-home-2019/hooks","issue_events_url":"https://api.github.com/repos/alenantonova/smart-home-2019/issues/events{/number}","events_url":"https://api.github.com/repos/alenantonova/smart-home-2019/events","assignees_url":"https://api.github.com/repos/alenantonova/smart-home-2019/assignees{/user}","branches_url":"https://api.github.com/repos/alenantonova/smart-home-2019/branches{/branch}","tags_url":"https://api.github.com/repos/alenantonova/smart-home-2019/tags","blobs_url":"https://api.github.com/repos/alenantonova/smart-home-2019/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alenantonova/smart-home-2019/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alenantonova/smart-home-2019/git/refs{/sha}","trees_url":"https://api.github.com/repos/alenantonova/smart-home-2019/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alenantonova/smart-home-2019/statuses/{sha}","languages_url":"https://api.github.com/repos/alenantonova/smart-home-2019/languages","stargazers_url":"https://api.github.com/repos/alenantonova/smart-home-2019/stargazers","contributors_url":"https://api.github.com/repos/alenantonova/smart-home-2019/contributors","subscribers_url":"https://api.github.com/repos/alenantonova/smart-home-2019/subscribers","subscription_url":"https://api.github.com/repos/alenantonova/smart-home-2019/subscription","commits_url":"https://api.github.com/repos/alenantonova/smart-home-2019/commits{/sha}","git_commits_url":"https://api.github.com/repos/alenantonova/smart-home-2019/git/commits{/sha}","comments_url":"https://api.github.com/repos/alenantonova/smart-home-2019/comments{/number}","issue_comment_url":"https://api.github.com/repos/alenantonova/smart-home-2019/issues/comments{/number}","contents_url":"https://api.github.com/repos/alenantonova/smart-home-2019/contents/{+path}","compare_url":"https://api.github.com/repos/alenantonova/smart-home-2019/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alenantonova/smart-home-2019/merges","archive_url":"https://api.github.com/repos/alenantonova/smart-home-2019/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alenantonova/smart-home-2019/downloads","issues_url":"https://api.github.com/repos/alenantonova/smart-home-2019/issues{/number}","pulls_url":"https://api.github.com/repos/alenantonova/smart-home-2019/pulls{/number}","milestones_url":"https://api.github.com/repos/alenantonova/smart-home-2019/milestones{/number}","notifications_url":"https://api.github.com/repos/alenantonova/smart-home-2019/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alenantonova/smart-home-2019/labels{/name}","releases_url":"https://api.github.com/repos/alenantonova/smart-home-2019/releases{/id}","deployments_url":"https://api.github.com/repos/alenantonova/smart-home-2019/deployments","created_at":"2019-03-13T00:25:26Z","updated_at":"2019-03-20T14:35:36Z","pushed_at":"2019-03-20T22:15:44Z","git_url":"git://github.com/alenantonova/smart-home-2019.git","ssh_url":"git@github.com:alenantonova/smart-home-2019.git","clone_url":"https://github.com/alenantonova/smart-home-2019.git","svn_url":"https://github.com/alenantonova/smart-home-2019","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alenantonova/smart-home-2019/pulls/5"},"html":{"href":"https://github.com/alenantonova/smart-home-2019/pull/5"},"issue":{"href":"https://api.github.com/repos/alenantonova/smart-home-2019/issues/5"},"comments":{"href":"https://api.github.com/repos/alenantonova/smart-home-2019/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/alenantonova/smart-home-2019/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/alenantonova/smart-home-2019/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alenantonova/smart-home-2019/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/alenantonova/smart-home-2019/statuses/4b000afc3ff774feb4c1062cbcd3be4917bae711"}},"author_association":"OWNER"}}
other: {"actor":{"display_login":"sbt-agoshkov"}}