{"action":"created","comment":{"url":"https://api.github.com/repos/Chepik/SpaceInvaders/pulls/comments/87176182","pull_request_review_id":7797474,"id":87176182,"diff_hunk":"@@ -0,0 +1,40 @@\n+#include \"event_source.h\"\n+\n+\n+void EventSource::RegisterListener(\n+    std::shared_ptr<EventListenerInterface> listener)\n+{\n+  if (std::find(begin(m_listeners),\n+                end(m_listeners),\n+                listener) == end(m_listeners))\n+  {\n+    m_listeners.push_back(listener);\n+  }\n+}\n+\n+void EventSource::UnregisterListener(\n+    std::shared_ptr<EventListenerInterface> listener)\n+{\n+  if (std::find(begin(m_listeners),\n+                end(m_listeners),\n+                listener) != end(m_listeners))\n+  {\n+    m_listeners.remove(listener);\n+  }\n+}\n+\n+void EventSource::NotifyListeners()\n+{\n+  for (auto listener : m_listeners)","path":"src/event_source.cpp","position":28,"original_position":28,"commit_id":"d78af38684bc6fbf4b8e2b3e630df49f9b00a808","original_commit_id":"d78af38684bc6fbf4b8e2b3e630df49f9b00a808","user":{"login":"rokuz","id":5437220,"avatar_url":"https://avatars.githubusercontent.com/u/5437220?v=3","gravatar_id":"","url":"https://api.github.com/users/rokuz","html_url":"https://github.com/rokuz","followers_url":"https://api.github.com/users/rokuz/followers","following_url":"https://api.github.com/users/rokuz/following{/other_user}","gists_url":"https://api.github.com/users/rokuz/gists{/gist_id}","starred_url":"https://api.github.com/users/rokuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rokuz/subscriptions","organizations_url":"https://api.github.com/users/rokuz/orgs","repos_url":"https://api.github.com/users/rokuz/repos","events_url":"https://api.github.com/users/rokuz/events{/privacy}","received_events_url":"https://api.github.com/users/rokuz/received_events","type":"User","site_admin":false},"body":"auto const &","created_at":"2016-11-09T11:35:32Z","updated_at":"2016-11-09T11:35:32Z","html_url":"https://github.com/Chepik/SpaceInvaders/pull/10#discussion_r87176182","pull_request_url":"https://api.github.com/repos/Chepik/SpaceInvaders/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/Chepik/SpaceInvaders/pulls/comments/87176182"},"html":{"href":"https://github.com/Chepik/SpaceInvaders/pull/10#discussion_r87176182"},"pull_request":{"href":"https://api.github.com/repos/Chepik/SpaceInvaders/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/Chepik/SpaceInvaders/pulls/10","id":92942255,"html_url":"https://github.com/Chepik/SpaceInvaders/pull/10","diff_url":"https://github.com/Chepik/SpaceInvaders/pull/10.diff","patch_url":"https://github.com/Chepik/SpaceInvaders/pull/10.patch","issue_url":"https://api.github.com/repos/Chepik/SpaceInvaders/issues/10","number":10,"state":"open","locked":false,"title":"Task7","user":{"login":"vmaks","id":5461317,"avatar_url":"https://avatars.githubusercontent.com/u/5461317?v=3","gravatar_id":"","url":"https://api.github.com/users/vmaks","html_url":"https://github.com/vmaks","followers_url":"https://api.github.com/users/vmaks/followers","following_url":"https://api.github.com/users/vmaks/following{/other_user}","gists_url":"https://api.github.com/users/vmaks/gists{/gist_id}","starred_url":"https://api.github.com/users/vmaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmaks/subscriptions","organizations_url":"https://api.github.com/users/vmaks/orgs","repos_url":"https://api.github.com/users/vmaks/repos","events_url":"https://api.github.com/users/vmaks/events{/privacy}","received_events_url":"https://api.github.com/users/vmaks/received_events","type":"User","site_admin":false},"body":"Add Observer, Singleton template and Factory patterns.","created_at":"2016-11-09T10:57:46Z","updated_at":"2016-11-09T11:35:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de7c67753be4866b5c7a7fb572d6d060a9b7d416","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Chepik/SpaceInvaders/pulls/10/commits","review_comments_url":"https://api.github.com/repos/Chepik/SpaceInvaders/pulls/10/comments","review_comment_url":"https://api.github.com/repos/Chepik/SpaceInvaders/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Chepik/SpaceInvaders/issues/10/comments","statuses_url":"https://api.github.com/repos/Chepik/SpaceInvaders/statuses/d78af38684bc6fbf4b8e2b3e630df49f9b00a808","head":{"label":"Chepik:task7","ref":"task7","sha":"d78af38684bc6fbf4b8e2b3e630df49f9b00a808","user":{"login":"Chepik","id":22317093,"avatar_url":"https://avatars.githubusercontent.com/u/22317093?v=3","gravatar_id":"","url":"https://api.github.com/users/Chepik","html_url":"https://github.com/Chepik","followers_url":"https://api.github.com/users/Chepik/followers","following_url":"https://api.github.com/users/Chepik/following{/other_user}","gists_url":"https://api.github.com/users/Chepik/gists{/gist_id}","starred_url":"https://api.github.com/users/Chepik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chepik/subscriptions","organizations_url":"https://api.github.com/users/Chepik/orgs","repos_url":"https://api.github.com/users/Chepik/repos","events_url":"https://api.github.com/users/Chepik/events{/privacy}","received_events_url":"https://api.github.com/users/Chepik/received_events","type":"User","site_admin":false},"repo":{"id":68699769,"name":"SpaceInvaders","full_name":"Chepik/SpaceInvaders","owner":{"login":"Chepik","id":22317093,"avatar_url":"https://avatars.githubusercontent.com/u/22317093?v=3","gravatar_id":"","url":"https://api.github.com/users/Chepik","html_url":"https://github.com/Chepik","followers_url":"https://api.github.com/users/Chepik/followers","following_url":"https://api.github.com/users/Chepik/following{/other_user}","gists_url":"https://api.github.com/users/Chepik/gists{/gist_id}","starred_url":"https://api.github.com/users/Chepik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chepik/subscriptions","organizations_url":"https://api.github.com/users/Chepik/orgs","repos_url":"https://api.github.com/users/Chepik/repos","events_url":"https://api.github.com/users/Chepik/events{/privacy}","received_events_url":"https://api.github.com/users/Chepik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Chepik/SpaceInvaders","description":"course project, developers: Chepik Nadya and Vlasov Maksim, https://github.com/vmaks","fork":false,"url":"https://api.github.com/repos/Chepik/SpaceInvaders","forks_url":"https://api.github.com/repos/Chepik/SpaceInvaders/forks","keys_url":"https://api.github.com/repos/Chepik/SpaceInvaders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chepik/SpaceInvaders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chepik/SpaceInvaders/teams","hooks_url":"https://api.github.com/repos/Chepik/SpaceInvaders/hooks","issue_events_url":"https://api.github.com/repos/Chepik/SpaceInvaders/issues/events{/number}","events_url":"https://api.github.com/repos/Chepik/SpaceInvaders/events","assignees_url":"https://api.github.com/repos/Chepik/SpaceInvaders/assignees{/user}","branches_url":"https://api.github.com/repos/Chepik/SpaceInvaders/branches{/branch}","tags_url":"https://api.github.com/repos/Chepik/SpaceInvaders/tags","blobs_url":"https://api.github.com/repos/Chepik/SpaceInvaders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chepik/SpaceInvaders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chepik/SpaceInvaders/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chepik/SpaceInvaders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chepik/SpaceInvaders/statuses/{sha}","languages_url":"https://api.github.com/repos/Chepik/SpaceInvaders/languages","stargazers_url":"https://api.github.com/repos/Chepik/SpaceInvaders/stargazers","contributors_url":"https://api.github.com/repos/Chepik/SpaceInvaders/contributors","subscribers_url":"https://api.github.com/repos/Chepik/SpaceInvaders/subscribers","subscription_url":"https://api.github.com/repos/Chepik/SpaceInvaders/subscription","commits_url":"https://api.github.com/repos/Chepik/SpaceInvaders/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chepik/SpaceInvaders/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chepik/SpaceInvaders/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chepik/SpaceInvaders/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chepik/SpaceInvaders/contents/{+path}","compare_url":"https://api.github.com/repos/Chepik/SpaceInvaders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chepik/SpaceInvaders/merges","archive_url":"https://api.github.com/repos/Chepik/SpaceInvaders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chepik/SpaceInvaders/downloads","issues_url":"https://api.github.com/repos/Chepik/SpaceInvaders/issues{/number}","pulls_url":"https://api.github.com/repos/Chepik/SpaceInvaders/pulls{/number}","milestones_url":"https://api.github.com/repos/Chepik/SpaceInvaders/milestones{/number}","notifications_url":"https://api.github.com/repos/Chepik/SpaceInvaders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chepik/SpaceInvaders/labels{/name}","releases_url":"https://api.github.com/repos/Chepik/SpaceInvaders/releases{/id}","deployments_url":"https://api.github.com/repos/Chepik/SpaceInvaders/deployments","created_at":"2016-09-20T10:10:31Z","updated_at":"2016-10-24T10:59:39Z","pushed_at":"2016-11-09T10:57:46Z","git_url":"git://github.com/Chepik/SpaceInvaders.git","ssh_url":"git@github.com:Chepik/SpaceInvaders.git","clone_url":"https://github.com/Chepik/SpaceInvaders.git","svn_url":"https://github.com/Chepik/SpaceInvaders","homepage":"","size":93,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"Chepik:master","ref":"master","sha":"24f0a9e3e8a72f2a681abcc0dd66e853adac1780","user":{"login":"Chepik","id":22317093,"avatar_url":"https://avatars.githubusercontent.com/u/22317093?v=3","gravatar_id":"","url":"https://api.github.com/users/Chepik","html_url":"https://github.com/Chepik","followers_url":"https://api.github.com/users/Chepik/followers","following_url":"https://api.github.com/users/Chepik/following{/other_user}","gists_url":"https://api.github.com/users/Chepik/gists{/gist_id}","starred_url":"https://api.github.com/users/Chepik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chepik/subscriptions","organizations_url":"https://api.github.com/users/Chepik/orgs","repos_url":"https://api.github.com/users/Chepik/repos","events_url":"https://api.github.com/users/Chepik/events{/privacy}","received_events_url":"https://api.github.com/users/Chepik/received_events","type":"User","site_admin":false},"repo":{"id":68699769,"name":"SpaceInvaders","full_name":"Chepik/SpaceInvaders","owner":{"login":"Chepik","id":22317093,"avatar_url":"https://avatars.githubusercontent.com/u/22317093?v=3","gravatar_id":"","url":"https://api.github.com/users/Chepik","html_url":"https://github.com/Chepik","followers_url":"https://api.github.com/users/Chepik/followers","following_url":"https://api.github.com/users/Chepik/following{/other_user}","gists_url":"https://api.github.com/users/Chepik/gists{/gist_id}","starred_url":"https://api.github.com/users/Chepik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chepik/subscriptions","organizations_url":"https://api.github.com/users/Chepik/orgs","repos_url":"https://api.github.com/users/Chepik/repos","events_url":"https://api.github.com/users/Chepik/events{/privacy}","received_events_url":"https://api.github.com/users/Chepik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Chepik/SpaceInvaders","description":"course project, developers: Chepik Nadya and Vlasov Maksim, https://github.com/vmaks","fork":false,"url":"https://api.github.com/repos/Chepik/SpaceInvaders","forks_url":"https://api.github.com/repos/Chepik/SpaceInvaders/forks","keys_url":"https://api.github.com/repos/Chepik/SpaceInvaders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chepik/SpaceInvaders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chepik/SpaceInvaders/teams","hooks_url":"https://api.github.com/repos/Chepik/SpaceInvaders/hooks","issue_events_url":"https://api.github.com/repos/Chepik/SpaceInvaders/issues/events{/number}","events_url":"https://api.github.com/repos/Chepik/SpaceInvaders/events","assignees_url":"https://api.github.com/repos/Chepik/SpaceInvaders/assignees{/user}","branches_url":"https://api.github.com/repos/Chepik/SpaceInvaders/branches{/branch}","tags_url":"https://api.github.com/repos/Chepik/SpaceInvaders/tags","blobs_url":"https://api.github.com/repos/Chepik/SpaceInvaders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chepik/SpaceInvaders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chepik/SpaceInvaders/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chepik/SpaceInvaders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chepik/SpaceInvaders/statuses/{sha}","languages_url":"https://api.github.com/repos/Chepik/SpaceInvaders/languages","stargazers_url":"https://api.github.com/repos/Chepik/SpaceInvaders/stargazers","contributors_url":"https://api.github.com/repos/Chepik/SpaceInvaders/contributors","subscribers_url":"https://api.github.com/repos/Chepik/SpaceInvaders/subscribers","subscription_url":"https://api.github.com/repos/Chepik/SpaceInvaders/subscription","commits_url":"https://api.github.com/repos/Chepik/SpaceInvaders/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chepik/SpaceInvaders/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chepik/SpaceInvaders/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chepik/SpaceInvaders/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chepik/SpaceInvaders/contents/{+path}","compare_url":"https://api.github.com/repos/Chepik/SpaceInvaders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chepik/SpaceInvaders/merges","archive_url":"https://api.github.com/repos/Chepik/SpaceInvaders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chepik/SpaceInvaders/downloads","issues_url":"https://api.github.com/repos/Chepik/SpaceInvaders/issues{/number}","pulls_url":"https://api.github.com/repos/Chepik/SpaceInvaders/pulls{/number}","milestones_url":"https://api.github.com/repos/Chepik/SpaceInvaders/milestones{/number}","notifications_url":"https://api.github.com/repos/Chepik/SpaceInvaders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chepik/SpaceInvaders/labels{/name}","releases_url":"https://api.github.com/repos/Chepik/SpaceInvaders/releases{/id}","deployments_url":"https://api.github.com/repos/Chepik/SpaceInvaders/deployments","created_at":"2016-09-20T10:10:31Z","updated_at":"2016-10-24T10:59:39Z","pushed_at":"2016-11-09T10:57:46Z","git_url":"git://github.com/Chepik/SpaceInvaders.git","ssh_url":"git@github.com:Chepik/SpaceInvaders.git","clone_url":"https://github.com/Chepik/SpaceInvaders.git","svn_url":"https://github.com/Chepik/SpaceInvaders","homepage":"","size":93,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Chepik/SpaceInvaders/pulls/10"},"html":{"href":"https://github.com/Chepik/SpaceInvaders/pull/10"},"issue":{"href":"https://api.github.com/repos/Chepik/SpaceInvaders/issues/10"},"comments":{"href":"https://api.github.com/repos/Chepik/SpaceInvaders/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/Chepik/SpaceInvaders/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/Chepik/SpaceInvaders/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Chepik/SpaceInvaders/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/Chepik/SpaceInvaders/statuses/d78af38684bc6fbf4b8e2b3e630df49f9b00a808"}}}}
{"actor":{"display_login":"rokuz"}}