{"action":"created","comment":{"url":"https://api.github.com/repos/code-squad/swift-pokergameapp/pulls/comments/317423752","pull_request_review_id":279364075,"id":317423752,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxNzQyMzc1Mg==","diff_hunk":"@@ -0,0 +1,29 @@\n+//\n+//  DataController.swift\n+//  PokergameApp\n+//\n+//  Created by hw on 22/08/2019.\n+//  Copyright © 2019 hwj. All rights reserved.\n+//\n+\n+import Foundation\n+\n+extension Notification.Name {\n+    static let notifyWinner = Notification.Name(rawValue: \"notifyWinner\")\n+}\n+\n+class DataController {\n+    private var cardGamePlay = CardGamePlay(number: .three, gameType: .sevenCard)\n+    \n+    init(){}\n+    func play(playerType: PlayerType, gameType: GameType){\n+        cardGamePlay = CardGamePlay.init(number: playerType, gameType: gameType)\n+        guard let winner = cardGamePlay.playGame() else {\n+            return\n+        }\n+        var userInfo = [String: GameWinner]()\n+        userInfo.updateValue(winner, forKey: \"result\")\n+        NotificationCenter.default.post(name: .notifyWinner, object: nil, userInfo: userInfo)","path":"PokergameApp/PokergameApp/DataController.swift","position":26,"original_position":26,"commit_id":"f2c57d653843110e0264bc6c0a83430e3a3a6952","original_commit_id":"f2c57d653843110e0264bc6c0a83430e3a3a6952","user":{"login":"godrm","id":278988,"node_id":"MDQ6VXNlcjI3ODk4OA==","avatar_url":"https://avatars1.githubusercontent.com/u/278988?v=4","gravatar_id":"","url":"https://api.github.com/users/godrm","html_url":"https://github.com/godrm","followers_url":"https://api.github.com/users/godrm/followers","following_url":"https://api.github.com/users/godrm/following{/other_user}","gists_url":"https://api.github.com/users/godrm/gists{/gist_id}","starred_url":"https://api.github.com/users/godrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godrm/subscriptions","organizations_url":"https://api.github.com/users/godrm/orgs","repos_url":"https://api.github.com/users/godrm/repos","events_url":"https://api.github.com/users/godrm/events{/privacy}","received_events_url":"https://api.github.com/users/godrm/received_events","type":"User","site_admin":false},"body":"이 정도 메소드 하나만 있는거라면 Controller가 필요없고 CardGamePlay에 있어도 되는게 아닐까요? ","created_at":"2019-08-26T00:57:46Z","updated_at":"2019-08-26T00:57:46Z","html_url":"https://github.com/code-squad/swift-pokergameapp/pull/4#discussion_r317423752","pull_request_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/pulls/4","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/code-squad/swift-pokergameapp/pulls/comments/317423752"},"html":{"href":"https://github.com/code-squad/swift-pokergameapp/pull/4#discussion_r317423752"},"pull_request":{"href":"https://api.github.com/repos/code-squad/swift-pokergameapp/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/code-squad/swift-pokergameapp/pulls/4","id":310615394,"node_id":"MDExOlB1bGxSZXF1ZXN0MzEwNjE1Mzk0","html_url":"https://github.com/code-squad/swift-pokergameapp/pull/4","diff_url":"https://github.com/code-squad/swift-pokergameapp/pull/4.diff","patch_url":"https://github.com/code-squad/swift-pokergameapp/pull/4.patch","issue_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/issues/4","number":4,"state":"open","locked":false,"title":"[Doran] Pokergame step2","user":{"login":"hwj0623","id":21972976,"node_id":"MDQ6VXNlcjIxOTcyOTc2","avatar_url":"https://avatars2.githubusercontent.com/u/21972976?v=4","gravatar_id":"","url":"https://api.github.com/users/hwj0623","html_url":"https://github.com/hwj0623","followers_url":"https://api.github.com/users/hwj0623/followers","following_url":"https://api.github.com/users/hwj0623/following{/other_user}","gists_url":"https://api.github.com/users/hwj0623/gists{/gist_id}","starred_url":"https://api.github.com/users/hwj0623/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwj0623/subscriptions","organizations_url":"https://api.github.com/users/hwj0623/orgs","repos_url":"https://api.github.com/users/hwj0623/repos","events_url":"https://api.github.com/users/hwj0623/events{/privacy}","received_events_url":"https://api.github.com/users/hwj0623/received_events","type":"User","site_admin":false},"body":"- step2 구현하였습니다.\r\n - 상세내역은 readme에 작성하였습니다.\r\n","created_at":"2019-08-24T14:36:41Z","updated_at":"2019-08-26T00:57:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2610610d59637d092cf49c3486efa6c6bc1bc489","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/pulls/4/commits","review_comments_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/pulls/4/comments","review_comment_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/issues/4/comments","statuses_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/statuses/f2c57d653843110e0264bc6c0a83430e3a3a6952","head":{"label":"hwj0623:pokergame-step2","ref":"pokergame-step2","sha":"f2c57d653843110e0264bc6c0a83430e3a3a6952","user":{"login":"hwj0623","id":21972976,"node_id":"MDQ6VXNlcjIxOTcyOTc2","avatar_url":"https://avatars2.githubusercontent.com/u/21972976?v=4","gravatar_id":"","url":"https://api.github.com/users/hwj0623","html_url":"https://github.com/hwj0623","followers_url":"https://api.github.com/users/hwj0623/followers","following_url":"https://api.github.com/users/hwj0623/following{/other_user}","gists_url":"https://api.github.com/users/hwj0623/gists{/gist_id}","starred_url":"https://api.github.com/users/hwj0623/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwj0623/subscriptions","organizations_url":"https://api.github.com/users/hwj0623/orgs","repos_url":"https://api.github.com/users/hwj0623/repos","events_url":"https://api.github.com/users/hwj0623/events{/privacy}","received_events_url":"https://api.github.com/users/hwj0623/received_events","type":"User","site_admin":false},"repo":{"id":202322585,"node_id":"MDEwOlJlcG9zaXRvcnkyMDIzMjI1ODU=","name":"swift-pokergameapp","full_name":"hwj0623/swift-pokergameapp","private":false,"owner":{"login":"hwj0623","id":21972976,"node_id":"MDQ6VXNlcjIxOTcyOTc2","avatar_url":"https://avatars2.githubusercontent.com/u/21972976?v=4","gravatar_id":"","url":"https://api.github.com/users/hwj0623","html_url":"https://github.com/hwj0623","followers_url":"https://api.github.com/users/hwj0623/followers","following_url":"https://api.github.com/users/hwj0623/following{/other_user}","gists_url":"https://api.github.com/users/hwj0623/gists{/gist_id}","starred_url":"https://api.github.com/users/hwj0623/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwj0623/subscriptions","organizations_url":"https://api.github.com/users/hwj0623/orgs","repos_url":"https://api.github.com/users/hwj0623/repos","events_url":"https://api.github.com/users/hwj0623/events{/privacy}","received_events_url":"https://api.github.com/users/hwj0623/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hwj0623/swift-pokergameapp","description":"STEP15 포커게임 앱 저장소","fork":true,"url":"https://api.github.com/repos/hwj0623/swift-pokergameapp","forks_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/forks","keys_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/teams","hooks_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/hooks","issue_events_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/issues/events{/number}","events_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/events","assignees_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/assignees{/user}","branches_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/branches{/branch}","tags_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/tags","blobs_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/statuses/{sha}","languages_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/languages","stargazers_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/stargazers","contributors_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/contributors","subscribers_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/subscribers","subscription_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/subscription","commits_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/contents/{+path}","compare_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/merges","archive_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/downloads","issues_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/issues{/number}","pulls_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/pulls{/number}","milestones_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/milestones{/number}","notifications_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/labels{/name}","releases_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/releases{/id}","deployments_url":"https://api.github.com/repos/hwj0623/swift-pokergameapp/deployments","created_at":"2019-08-14T09:50:39Z","updated_at":"2019-08-14T09:50:42Z","pushed_at":"2019-08-24T14:35:37Z","git_url":"git://github.com/hwj0623/swift-pokergameapp.git","ssh_url":"git@github.com:hwj0623/swift-pokergameapp.git","clone_url":"https://github.com/hwj0623/swift-pokergameapp.git","svn_url":"https://github.com/hwj0623/swift-pokergameapp","homepage":null,"size":31807,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"code-squad:hwj0623","ref":"hwj0623","sha":"3bfe27764a312204e07e025612482c36091c8f44","user":{"login":"code-squad","id":22832280,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODMyMjgw","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":167126151,"node_id":"MDEwOlJlcG9zaXRvcnkxNjcxMjYxNTE=","name":"swift-pokergameapp","full_name":"code-squad/swift-pokergameapp","private":false,"owner":{"login":"code-squad","id":22832280,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODMyMjgw","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},"html_url":"https://github.com/code-squad/swift-pokergameapp","description":"STEP15 포커게임 앱 저장소","fork":false,"url":"https://api.github.com/repos/code-squad/swift-pokergameapp","forks_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/forks","keys_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/teams","hooks_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/hooks","issue_events_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/issues/events{/number}","events_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/events","assignees_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/assignees{/user}","branches_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/branches{/branch}","tags_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/tags","blobs_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/statuses/{sha}","languages_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/languages","stargazers_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/stargazers","contributors_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/contributors","subscribers_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/subscribers","subscription_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/subscription","commits_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/contents/{+path}","compare_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/merges","archive_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/downloads","issues_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/issues{/number}","pulls_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/pulls{/number}","milestones_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/milestones{/number}","notifications_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/labels{/name}","releases_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/releases{/id}","deployments_url":"https://api.github.com/repos/code-squad/swift-pokergameapp/deployments","created_at":"2019-01-23T05:58:55Z","updated_at":"2019-01-23T05:58:57Z","pushed_at":"2019-08-24T14:36:42Z","git_url":"git://github.com/code-squad/swift-pokergameapp.git","ssh_url":"git@github.com:code-squad/swift-pokergameapp.git","clone_url":"https://github.com/code-squad/swift-pokergameapp.git","svn_url":"https://github.com/code-squad/swift-pokergameapp","homepage":null,"size":7504,"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":2,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/code-squad/swift-pokergameapp/pulls/4"},"html":{"href":"https://github.com/code-squad/swift-pokergameapp/pull/4"},"issue":{"href":"https://api.github.com/repos/code-squad/swift-pokergameapp/issues/4"},"comments":{"href":"https://api.github.com/repos/code-squad/swift-pokergameapp/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/code-squad/swift-pokergameapp/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/code-squad/swift-pokergameapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-squad/swift-pokergameapp/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/code-squad/swift-pokergameapp/statuses/f2c57d653843110e0264bc6c0a83430e3a3a6952"}},"author_association":"NONE"}}
{"actor":{"display_login":"godrm"}}