{"action":"created","comment":{"url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/pulls/comments/49205082","id":49205082,"diff_hunk":"@@ -0,0 +1,24 @@\n+package com.spg.chapter3.owner;\r\n+\r\n+import com.spg.chapter3.House;\r\n+import com.spg.chapter3.PriceImpactor;\r\n+\r\n+/**\r\n+ * Someone who is really into DIY really improves the overall quality, but \r\n+ * there are a couple of places where things didn't quite go to plan...\r\n+ * \r\n+ * @author E043175\r\n+ *\r\n+ */\r\n+public class DIYGuy extends PriceImpactor {\r\n+\r\n+\tpublic DIYGuy( House pricedHouse ) {\r\n+\t\tthis.pricedHouse = pricedHouse;\r\n+\t}\r\n+\t\r\n+\t@Override\r\n+\tpublic double getPrice() {\r\n+\t\treturn pricedHouse.getPrice() * 1.5 - 10000;\r","path":"spg/src/com/spg/chapter3/owner/DIYGuy.java","position":21,"original_position":21,"commit_id":"cb5e7b7bf43e2a647d12f551d84fdca61e889d34","original_commit_id":"cb5e7b7bf43e2a647d12f551d84fdca61e889d34","user":{"login":"a-panayotopoulos","id":9415893,"avatar_url":"https://avatars.githubusercontent.com/u/9415893?v=3","gravatar_id":"","url":"https://api.github.com/users/a-panayotopoulos","html_url":"https://github.com/a-panayotopoulos","followers_url":"https://api.github.com/users/a-panayotopoulos/followers","following_url":"https://api.github.com/users/a-panayotopoulos/following{/other_user}","gists_url":"https://api.github.com/users/a-panayotopoulos/gists{/gist_id}","starred_url":"https://api.github.com/users/a-panayotopoulos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-panayotopoulos/subscriptions","organizations_url":"https://api.github.com/users/a-panayotopoulos/orgs","repos_url":"https://api.github.com/users/a-panayotopoulos/repos","events_url":"https://api.github.com/users/a-panayotopoulos/events{/privacy}","received_events_url":"https://api.github.com/users/a-panayotopoulos/received_events","type":"User","site_admin":false},"body":"One effect of this, however, will be that `new DIYGuy( new InnerCity( house ) )` will be different to `new InnerCity( new DIYGuy( house ) )`","created_at":"2016-01-08T16:14:22Z","updated_at":"2016-01-08T16:14:22Z","html_url":"https://github.com/Utopia1138/Design-Patterns-Training/pull/25#discussion_r49205082","pull_request_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/pulls/comments/49205082"},"html":{"href":"https://github.com/Utopia1138/Design-Patterns-Training/pull/25#discussion_r49205082"},"pull_request":{"href":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/pulls/25","id":55474466,"html_url":"https://github.com/Utopia1138/Design-Patterns-Training/pull/25","diff_url":"https://github.com/Utopia1138/Design-Patterns-Training/pull/25.diff","patch_url":"https://github.com/Utopia1138/Design-Patterns-Training/pull/25.patch","issue_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/issues/25","number":25,"state":"open","locked":false,"title":"spg Chapter 3","user":{"login":"SimonGross","id":9445364,"avatar_url":"https://avatars.githubusercontent.com/u/9445364?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonGross","html_url":"https://github.com/SimonGross","followers_url":"https://api.github.com/users/SimonGross/followers","following_url":"https://api.github.com/users/SimonGross/following{/other_user}","gists_url":"https://api.github.com/users/SimonGross/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonGross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonGross/subscriptions","organizations_url":"https://api.github.com/users/SimonGross/orgs","repos_url":"https://api.github.com/users/SimonGross/repos","events_url":"https://api.github.com/users/SimonGross/events{/privacy}","received_events_url":"https://api.github.com/users/SimonGross/received_events","type":"User","site_admin":false},"body":"The Decorator pattern","created_at":"2016-01-08T15:37:07Z","updated_at":"2016-01-08T16:14:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97a9f4015d1d15e416ba848efec84fa2f0b639ef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/pulls/25/commits","review_comments_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/pulls/25/comments","review_comment_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/issues/25/comments","statuses_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/statuses/cb5e7b7bf43e2a647d12f551d84fdca61e889d34","head":{"label":"Utopia1138:spg_chapter3","ref":"spg_chapter3","sha":"cb5e7b7bf43e2a647d12f551d84fdca61e889d34","user":{"login":"Utopia1138","id":2646781,"avatar_url":"https://avatars.githubusercontent.com/u/2646781?v=3","gravatar_id":"","url":"https://api.github.com/users/Utopia1138","html_url":"https://github.com/Utopia1138","followers_url":"https://api.github.com/users/Utopia1138/followers","following_url":"https://api.github.com/users/Utopia1138/following{/other_user}","gists_url":"https://api.github.com/users/Utopia1138/gists{/gist_id}","starred_url":"https://api.github.com/users/Utopia1138/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Utopia1138/subscriptions","organizations_url":"https://api.github.com/users/Utopia1138/orgs","repos_url":"https://api.github.com/users/Utopia1138/repos","events_url":"https://api.github.com/users/Utopia1138/events{/privacy}","received_events_url":"https://api.github.com/users/Utopia1138/received_events","type":"User","site_admin":false},"repo":{"id":45832227,"name":"Design-Patterns-Training","full_name":"Utopia1138/Design-Patterns-Training","owner":{"login":"Utopia1138","id":2646781,"avatar_url":"https://avatars.githubusercontent.com/u/2646781?v=3","gravatar_id":"","url":"https://api.github.com/users/Utopia1138","html_url":"https://github.com/Utopia1138","followers_url":"https://api.github.com/users/Utopia1138/followers","following_url":"https://api.github.com/users/Utopia1138/following{/other_user}","gists_url":"https://api.github.com/users/Utopia1138/gists{/gist_id}","starred_url":"https://api.github.com/users/Utopia1138/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Utopia1138/subscriptions","organizations_url":"https://api.github.com/users/Utopia1138/orgs","repos_url":"https://api.github.com/users/Utopia1138/repos","events_url":"https://api.github.com/users/Utopia1138/events{/privacy}","received_events_url":"https://api.github.com/users/Utopia1138/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Utopia1138/Design-Patterns-Training","description":"Training group for the Head First Design Patterns book","fork":false,"url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training","forks_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/forks","keys_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/teams","hooks_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/hooks","issue_events_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/issues/events{/number}","events_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/events","assignees_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/assignees{/user}","branches_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/branches{/branch}","tags_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/tags","blobs_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/git/refs{/sha}","trees_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/statuses/{sha}","languages_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/languages","stargazers_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/stargazers","contributors_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/contributors","subscribers_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/subscribers","subscription_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/subscription","commits_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/commits{/sha}","git_commits_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/git/commits{/sha}","comments_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/comments{/number}","issue_comment_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/issues/comments{/number}","contents_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/contents/{+path}","compare_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/merges","archive_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/downloads","issues_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/issues{/number}","pulls_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/pulls{/number}","milestones_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/milestones{/number}","notifications_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/labels{/name}","releases_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/releases{/id}","created_at":"2015-11-09T10:50:44Z","updated_at":"2015-12-08T17:23:09Z","pushed_at":"2016-01-08T15:37:07Z","git_url":"git://github.com/Utopia1138/Design-Patterns-Training.git","ssh_url":"git@github.com:Utopia1138/Design-Patterns-Training.git","clone_url":"https://github.com/Utopia1138/Design-Patterns-Training.git","svn_url":"https://github.com/Utopia1138/Design-Patterns-Training","homepage":null,"size":3821,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"Utopia1138:master","ref":"master","sha":"9e9d0e75d3d51cb741c615d81854bc49b331df5e","user":{"login":"Utopia1138","id":2646781,"avatar_url":"https://avatars.githubusercontent.com/u/2646781?v=3","gravatar_id":"","url":"https://api.github.com/users/Utopia1138","html_url":"https://github.com/Utopia1138","followers_url":"https://api.github.com/users/Utopia1138/followers","following_url":"https://api.github.com/users/Utopia1138/following{/other_user}","gists_url":"https://api.github.com/users/Utopia1138/gists{/gist_id}","starred_url":"https://api.github.com/users/Utopia1138/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Utopia1138/subscriptions","organizations_url":"https://api.github.com/users/Utopia1138/orgs","repos_url":"https://api.github.com/users/Utopia1138/repos","events_url":"https://api.github.com/users/Utopia1138/events{/privacy}","received_events_url":"https://api.github.com/users/Utopia1138/received_events","type":"User","site_admin":false},"repo":{"id":45832227,"name":"Design-Patterns-Training","full_name":"Utopia1138/Design-Patterns-Training","owner":{"login":"Utopia1138","id":2646781,"avatar_url":"https://avatars.githubusercontent.com/u/2646781?v=3","gravatar_id":"","url":"https://api.github.com/users/Utopia1138","html_url":"https://github.com/Utopia1138","followers_url":"https://api.github.com/users/Utopia1138/followers","following_url":"https://api.github.com/users/Utopia1138/following{/other_user}","gists_url":"https://api.github.com/users/Utopia1138/gists{/gist_id}","starred_url":"https://api.github.com/users/Utopia1138/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Utopia1138/subscriptions","organizations_url":"https://api.github.com/users/Utopia1138/orgs","repos_url":"https://api.github.com/users/Utopia1138/repos","events_url":"https://api.github.com/users/Utopia1138/events{/privacy}","received_events_url":"https://api.github.com/users/Utopia1138/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Utopia1138/Design-Patterns-Training","description":"Training group for the Head First Design Patterns book","fork":false,"url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training","forks_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/forks","keys_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/teams","hooks_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/hooks","issue_events_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/issues/events{/number}","events_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/events","assignees_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/assignees{/user}","branches_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/branches{/branch}","tags_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/tags","blobs_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/git/refs{/sha}","trees_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/statuses/{sha}","languages_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/languages","stargazers_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/stargazers","contributors_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/contributors","subscribers_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/subscribers","subscription_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/subscription","commits_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/commits{/sha}","git_commits_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/git/commits{/sha}","comments_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/comments{/number}","issue_comment_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/issues/comments{/number}","contents_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/contents/{+path}","compare_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/merges","archive_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/downloads","issues_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/issues{/number}","pulls_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/pulls{/number}","milestones_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/milestones{/number}","notifications_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/labels{/name}","releases_url":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/releases{/id}","created_at":"2015-11-09T10:50:44Z","updated_at":"2015-12-08T17:23:09Z","pushed_at":"2016-01-08T15:37:07Z","git_url":"git://github.com/Utopia1138/Design-Patterns-Training.git","ssh_url":"git@github.com:Utopia1138/Design-Patterns-Training.git","clone_url":"https://github.com/Utopia1138/Design-Patterns-Training.git","svn_url":"https://github.com/Utopia1138/Design-Patterns-Training","homepage":null,"size":3821,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/pulls/25"},"html":{"href":"https://github.com/Utopia1138/Design-Patterns-Training/pull/25"},"issue":{"href":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/issues/25"},"comments":{"href":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/Utopia1138/Design-Patterns-Training/statuses/cb5e7b7bf43e2a647d12f551d84fdca61e889d34"}}}}