{"action":"created","comment":{"url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/pulls/comments/173347246","pull_request_review_id":102524711,"id":173347246,"diff_hunk":"@@ -29,59 +29,56 @@ protocol UserMode {\n }\n \n class VendingMachine: NSObject, NSCoding, AdminMode, UserMode {\n+    \n     private var inventory: Inventory = Inventory([])\n     private var balance: Int = 0\n     private var historyOfProductsSold: [Beverage] = []\n     private var productNumbersAndKinds: [Int: ObjectIdentifier] = [:]\n     \n+    init(productsBox: [Beverage]) {\n+        super.init()\n+        for oneProduct in productsBox {\n+            self.inventory.addBeverage(oneProduct)\n+        }\n+        self.updateProductNumbersAndKinds()\n+    }\n+    \n+    override init() {\n+        let baseProductsBox = [\n+            StrawberryMilk(), StrawberryMilk(), StrawberryMilk(),\n+            BananaMilk(), BananaMilk(), BananaMilk(),\n+            PepciCoke(), PepciCoke(), PepciCoke(), PepciCoke(), PepciCoke(),\n+            Fanta(), Fanta(), Fanta(),\n+            TOPCoffee(), TOPCoffee(), TOPCoffee(),\n+            Georgia(), Georgia()\n+        ]\n+        super.init()\n+        for oneProduct in baseProductsBox {\n+            self.inventory.addBeverage(oneProduct)\n+        }\n+        self.updateProductNumbersAndKinds()","path":"VendingMachineApp/VendingMachine/VendingMachine.swift","position":null,"original_position":31,"commit_id":"8b801bde175ea1ff580fe2643032e607b9920244","original_commit_id":"31b4a26508b5144d2a39f52d9891f302b37a3207","user":{"login":"somedd","id":32827236,"avatar_url":"https://avatars1.githubusercontent.com/u/32827236?v=4","gravatar_id":"","url":"https://api.github.com/users/somedd","html_url":"https://github.com/somedd","followers_url":"https://api.github.com/users/somedd/followers","following_url":"https://api.github.com/users/somedd/following{/other_user}","gists_url":"https://api.github.com/users/somedd/gists{/gist_id}","starred_url":"https://api.github.com/users/somedd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somedd/subscriptions","organizations_url":"https://api.github.com/users/somedd/orgs","repos_url":"https://api.github.com/users/somedd/repos","events_url":"https://api.github.com/users/somedd/events{/privacy}","received_events_url":"https://api.github.com/users/somedd/received_events","type":"User","site_admin":false},"body":"네! 다시 그 부분보니까 잠깐 필요했던 부분을 만들었던 거여서 지웠습니다:)","created_at":"2018-03-09T01:55:43Z","updated_at":"2018-03-09T01:55:43Z","html_url":"https://github.com/code-squad/swift-vendingmachineapp/pull/40#discussion_r173347246","pull_request_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/pulls/40","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/pulls/comments/173347246"},"html":{"href":"https://github.com/code-squad/swift-vendingmachineapp/pull/40#discussion_r173347246"},"pull_request":{"href":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/pulls/40"}},"in_reply_to_id":173100345},"pull_request":{"url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/pulls/40","id":173671256,"html_url":"https://github.com/code-squad/swift-vendingmachineapp/pull/40","diff_url":"https://github.com/code-squad/swift-vendingmachineapp/pull/40.diff","patch_url":"https://github.com/code-squad/swift-vendingmachineapp/pull/40.patch","issue_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/issues/40","number":40,"state":"closed","locked":false,"title":"[Jack] VendingMachineApp step3","user":{"login":"somedd","id":32827236,"avatar_url":"https://avatars1.githubusercontent.com/u/32827236?v=4","gravatar_id":"","url":"https://api.github.com/users/somedd","html_url":"https://github.com/somedd","followers_url":"https://api.github.com/users/somedd/followers","following_url":"https://api.github.com/users/somedd/following{/other_user}","gists_url":"https://api.github.com/users/somedd/gists{/gist_id}","starred_url":"https://api.github.com/users/somedd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somedd/subscriptions","organizations_url":"https://api.github.com/users/somedd/orgs","repos_url":"https://api.github.com/users/somedd/repos","events_url":"https://api.github.com/users/somedd/events{/privacy}","received_events_url":"https://api.github.com/users/somedd/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-08T08:17:16Z","updated_at":"2018-03-09T01:55:43Z","closed_at":"2018-03-09T01:45:16Z","merged_at":"2018-03-09T01:45:16Z","merge_commit_sha":"9cc5059daae1d570bb5bb3dfe3257b334ed15233","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/pulls/40/commits","review_comments_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/pulls/40/comments","review_comment_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/issues/40/comments","statuses_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/statuses/8b801bde175ea1ff580fe2643032e607b9920244","head":{"label":"somedd:vending-step3","ref":"vending-step3","sha":"8b801bde175ea1ff580fe2643032e607b9920244","user":{"login":"somedd","id":32827236,"avatar_url":"https://avatars1.githubusercontent.com/u/32827236?v=4","gravatar_id":"","url":"https://api.github.com/users/somedd","html_url":"https://github.com/somedd","followers_url":"https://api.github.com/users/somedd/followers","following_url":"https://api.github.com/users/somedd/following{/other_user}","gists_url":"https://api.github.com/users/somedd/gists{/gist_id}","starred_url":"https://api.github.com/users/somedd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somedd/subscriptions","organizations_url":"https://api.github.com/users/somedd/orgs","repos_url":"https://api.github.com/users/somedd/repos","events_url":"https://api.github.com/users/somedd/events{/privacy}","received_events_url":"https://api.github.com/users/somedd/received_events","type":"User","site_admin":false},"repo":{"id":119656195,"name":"swift-vendingmachineapp","full_name":"somedd/swift-vendingmachineapp","owner":{"login":"somedd","id":32827236,"avatar_url":"https://avatars1.githubusercontent.com/u/32827236?v=4","gravatar_id":"","url":"https://api.github.com/users/somedd","html_url":"https://github.com/somedd","followers_url":"https://api.github.com/users/somedd/followers","following_url":"https://api.github.com/users/somedd/following{/other_user}","gists_url":"https://api.github.com/users/somedd/gists{/gist_id}","starred_url":"https://api.github.com/users/somedd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somedd/subscriptions","organizations_url":"https://api.github.com/users/somedd/orgs","repos_url":"https://api.github.com/users/somedd/repos","events_url":"https://api.github.com/users/somedd/events{/privacy}","received_events_url":"https://api.github.com/users/somedd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/somedd/swift-vendingmachineapp","description":"음료수 자판기 iOS 앱 저장소","fork":true,"url":"https://api.github.com/repos/somedd/swift-vendingmachineapp","forks_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/forks","keys_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/teams","hooks_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/hooks","issue_events_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/issues/events{/number}","events_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/events","assignees_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/assignees{/user}","branches_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/branches{/branch}","tags_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/tags","blobs_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/statuses/{sha}","languages_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/languages","stargazers_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/stargazers","contributors_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/contributors","subscribers_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/subscribers","subscription_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/subscription","commits_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/contents/{+path}","compare_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/merges","archive_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/downloads","issues_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/issues{/number}","pulls_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/pulls{/number}","milestones_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/milestones{/number}","notifications_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/labels{/name}","releases_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/releases{/id}","deployments_url":"https://api.github.com/repos/somedd/swift-vendingmachineapp/deployments","created_at":"2018-01-31T08:14:58Z","updated_at":"2018-03-06T05:05:40Z","pushed_at":"2018-03-09T01:05:28Z","git_url":"git://github.com/somedd/swift-vendingmachineapp.git","ssh_url":"git@github.com:somedd/swift-vendingmachineapp.git","clone_url":"https://github.com/somedd/swift-vendingmachineapp.git","svn_url":"https://github.com/somedd/swift-vendingmachineapp","homepage":null,"size":19812,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"code-squad:somedd","ref":"somedd","sha":"c35cd6775f064c34ddfc58bfd1bca0f3c2b47612","user":{"login":"code-squad","id":22832280,"avatar_url":"https://avatars2.githubusercontent.com/u/22832280?v=4","gravatar_id":"","url":"https://api.github.com/users/code-squad","html_url":"https://github.com/code-squad","followers_url":"https://api.github.com/users/code-squad/followers","following_url":"https://api.github.com/users/code-squad/following{/other_user}","gists_url":"https://api.github.com/users/code-squad/gists{/gist_id}","starred_url":"https://api.github.com/users/code-squad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-squad/subscriptions","organizations_url":"https://api.github.com/users/code-squad/orgs","repos_url":"https://api.github.com/users/code-squad/repos","events_url":"https://api.github.com/users/code-squad/events{/privacy}","received_events_url":"https://api.github.com/users/code-squad/received_events","type":"Organization","site_admin":false},"repo":{"id":106988394,"name":"swift-vendingmachineapp","full_name":"code-squad/swift-vendingmachineapp","owner":{"login":"code-squad","id":22832280,"avatar_url":"https://avatars2.githubusercontent.com/u/22832280?v=4","gravatar_id":"","url":"https://api.github.com/users/code-squad","html_url":"https://github.com/code-squad","followers_url":"https://api.github.com/users/code-squad/followers","following_url":"https://api.github.com/users/code-squad/following{/other_user}","gists_url":"https://api.github.com/users/code-squad/gists{/gist_id}","starred_url":"https://api.github.com/users/code-squad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-squad/subscriptions","organizations_url":"https://api.github.com/users/code-squad/orgs","repos_url":"https://api.github.com/users/code-squad/repos","events_url":"https://api.github.com/users/code-squad/events{/privacy}","received_events_url":"https://api.github.com/users/code-squad/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-squad/swift-vendingmachineapp","description":"음료수 자판기 iOS 앱 저장소","fork":false,"url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp","forks_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/forks","keys_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/teams","hooks_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/hooks","issue_events_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/issues/events{/number}","events_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/events","assignees_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/assignees{/user}","branches_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/branches{/branch}","tags_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/tags","blobs_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/statuses/{sha}","languages_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/languages","stargazers_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/stargazers","contributors_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/contributors","subscribers_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/subscribers","subscription_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/subscription","commits_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/contents/{+path}","compare_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/merges","archive_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/downloads","issues_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/issues{/number}","pulls_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/pulls{/number}","milestones_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/milestones{/number}","notifications_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/labels{/name}","releases_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/releases{/id}","deployments_url":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/deployments","created_at":"2017-10-15T06:12:25Z","updated_at":"2017-10-15T06:12:25Z","pushed_at":"2018-03-09T01:45:16Z","git_url":"git://github.com/code-squad/swift-vendingmachineapp.git","ssh_url":"git@github.com:code-squad/swift-vendingmachineapp.git","clone_url":"https://github.com/code-squad/swift-vendingmachineapp.git","svn_url":"https://github.com/code-squad/swift-vendingmachineapp","homepage":null,"size":21072,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":7,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/pulls/40"},"html":{"href":"https://github.com/code-squad/swift-vendingmachineapp/pull/40"},"issue":{"href":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/issues/40"},"comments":{"href":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/code-squad/swift-vendingmachineapp/statuses/8b801bde175ea1ff580fe2643032e607b9920244"}},"author_association":"NONE"}}
{"actor":{"display_login":"somedd"}}