{"action":"created","comment":{"url":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/comments/226916061","pull_request_review_id":166841924,"id":226916061,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjkxNjA2MQ==","diff_hunk":"@@ -0,0 +1,27 @@\n+//\n+//  CheckUserInput.swift\n+//  CoordinateCalculator\n+//\n+//  Created by 윤동민 on 2018. 10. 19..\n+//  Copyright © 2018년 Codesquad Inc. All rights reserved.\n+//\n+\n+import Foundation\n+\n+struct CheckUserInput {\n+    // 유저의 입력이 범위를 초과한 경우 ENUM 타입 리턴\n+    static func IsOverFlowNumber(notNilNumber1: Int, notNilNumber2: Int) -> stateInput{\n+        guard notNilNumber1 > 24 || notNilNumber1 < 0 && notNilNumber2 > 24 || notNilNumber2 < 0 else {\n+            return .rightInput\n+        }\n+        return .overFlowNumber\n+    }\n+    \n+    // 유저의 입력의 상태를 검사하여 그에 맞는 ENUM 상태 리턴\n+    static func returnInputState(positionX: String, positionY: String) -> stateInput{\n+        guard Int(positionX) == nil || Int(positionY) == nil else {\n+            return CheckUserInput.IsOverFlowNumber(notNilNumber1: Int(positionX)!, notNilNumber2: Int(positionY)!)\n+        }\n+        return .nilNumber","path":"CoordinateCalculator/CoordinateCalculator/CheckUserInput.swift","position":25,"original_position":25,"commit_id":"81e7d3ef885a13c99b52531134b4c80d7b788563","original_commit_id":"81e7d3ef885a13c99b52531134b4c80d7b788563","user":{"login":"dongminyoon","id":39556376,"node_id":"MDQ6VXNlcjM5NTU2Mzc2","avatar_url":"https://avatars0.githubusercontent.com/u/39556376?v=4","gravatar_id":"","url":"https://api.github.com/users/dongminyoon","html_url":"https://github.com/dongminyoon","followers_url":"https://api.github.com/users/dongminyoon/followers","following_url":"https://api.github.com/users/dongminyoon/following{/other_user}","gists_url":"https://api.github.com/users/dongminyoon/gists{/gist_id}","starred_url":"https://api.github.com/users/dongminyoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongminyoon/subscriptions","organizations_url":"https://api.github.com/users/dongminyoon/orgs","repos_url":"https://api.github.com/users/dongminyoon/repos","events_url":"https://api.github.com/users/dongminyoon/events{/privacy}","received_events_url":"https://api.github.com/users/dongminyoon/received_events","type":"User","site_admin":false},"body":"입력 값을 보고 범위를 초과했는지, 잘못 입력했는지, 정상적으로 입력하였는지를 판단하여 입력상태를 리턴해주는 함수입니다. 이름은 명확하게 수정해보겠습니다! ","created_at":"2018-10-22T07:20:52Z","updated_at":"2018-10-22T07:20:55Z","html_url":"https://github.com/code-squad/swift-coordinate/pull/127#discussion_r226916061","pull_request_url":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/127","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/comments/226916061"},"html":{"href":"https://github.com/code-squad/swift-coordinate/pull/127#discussion_r226916061"},"pull_request":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/127"}},"in_reply_to_id":226912013},"pull_request":{"url":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/127","id":224187239,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0MTg3MjM5","html_url":"https://github.com/code-squad/swift-coordinate/pull/127","diff_url":"https://github.com/code-squad/swift-coordinate/pull/127.diff","patch_url":"https://github.com/code-squad/swift-coordinate/pull/127.patch","issue_url":"https://api.github.com/repos/code-squad/swift-coordinate/issues/127","number":127,"state":"open","locked":false,"title":"Justin-Step2","user":{"login":"dongminyoon","id":39556376,"node_id":"MDQ6VXNlcjM5NTU2Mzc2","avatar_url":"https://avatars0.githubusercontent.com/u/39556376?v=4","gravatar_id":"","url":"https://api.github.com/users/dongminyoon","html_url":"https://github.com/dongminyoon","followers_url":"https://api.github.com/users/dongminyoon/followers","following_url":"https://api.github.com/users/dongminyoon/following{/other_user}","gists_url":"https://api.github.com/users/dongminyoon/gists{/gist_id}","starred_url":"https://api.github.com/users/dongminyoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongminyoon/subscriptions","organizations_url":"https://api.github.com/users/dongminyoon/orgs","repos_url":"https://api.github.com/users/dongminyoon/repos","events_url":"https://api.github.com/users/dongminyoon/events{/privacy}","received_events_url":"https://api.github.com/users/dongminyoon/received_events","type":"User","site_admin":false},"body":"- 사용자의 입력을 받아오는 구조체 InputView() 구현\r\n- 사용자 입력 받는 readInput() 메소드 구현\r\n- 입력 값이 범위 안의 값인지 검사하는 IsOverFlowNumber() 메소드 구현\r\n- 화면에 출력하는 구조체 OutputView() 구현\r\n- 화면에 MyPoint의 위치에 점을 찍는 drawPoint() 메소드 구현\r\n- Point의 정보를 가지고 있는 구조체 MyPoint() 구현","created_at":"2018-10-19T06:53:23Z","updated_at":"2018-10-22T07:20:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3bec87a6e0058cbfc32aae8c3b71c6956a992cf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/127/commits","review_comments_url":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/127/comments","review_comment_url":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-squad/swift-coordinate/issues/127/comments","statuses_url":"https://api.github.com/repos/code-squad/swift-coordinate/statuses/81e7d3ef885a13c99b52531134b4c80d7b788563","head":{"label":"dongminyoon:Justin-Step2","ref":"Justin-Step2","sha":"81e7d3ef885a13c99b52531134b4c80d7b788563","user":{"login":"dongminyoon","id":39556376,"node_id":"MDQ6VXNlcjM5NTU2Mzc2","avatar_url":"https://avatars0.githubusercontent.com/u/39556376?v=4","gravatar_id":"","url":"https://api.github.com/users/dongminyoon","html_url":"https://github.com/dongminyoon","followers_url":"https://api.github.com/users/dongminyoon/followers","following_url":"https://api.github.com/users/dongminyoon/following{/other_user}","gists_url":"https://api.github.com/users/dongminyoon/gists{/gist_id}","starred_url":"https://api.github.com/users/dongminyoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongminyoon/subscriptions","organizations_url":"https://api.github.com/users/dongminyoon/orgs","repos_url":"https://api.github.com/users/dongminyoon/repos","events_url":"https://api.github.com/users/dongminyoon/events{/privacy}","received_events_url":"https://api.github.com/users/dongminyoon/received_events","type":"User","site_admin":false},"repo":{"id":153253058,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMyNTMwNTg=","name":"swift-coordinate","full_name":"dongminyoon/swift-coordinate","private":false,"owner":{"login":"dongminyoon","id":39556376,"node_id":"MDQ6VXNlcjM5NTU2Mzc2","avatar_url":"https://avatars0.githubusercontent.com/u/39556376?v=4","gravatar_id":"","url":"https://api.github.com/users/dongminyoon","html_url":"https://github.com/dongminyoon","followers_url":"https://api.github.com/users/dongminyoon/followers","following_url":"https://api.github.com/users/dongminyoon/following{/other_user}","gists_url":"https://api.github.com/users/dongminyoon/gists{/gist_id}","starred_url":"https://api.github.com/users/dongminyoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongminyoon/subscriptions","organizations_url":"https://api.github.com/users/dongminyoon/orgs","repos_url":"https://api.github.com/users/dongminyoon/repos","events_url":"https://api.github.com/users/dongminyoon/events{/privacy}","received_events_url":"https://api.github.com/users/dongminyoon/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dongminyoon/swift-coordinate","description":"좌표계산기_저장소","fork":true,"url":"https://api.github.com/repos/dongminyoon/swift-coordinate","forks_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/forks","keys_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/teams","hooks_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/hooks","issue_events_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/issues/events{/number}","events_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/events","assignees_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/assignees{/user}","branches_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/branches{/branch}","tags_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/tags","blobs_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/git/refs{/sha}","trees_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/statuses/{sha}","languages_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/languages","stargazers_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/stargazers","contributors_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/contributors","subscribers_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/subscribers","subscription_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/subscription","commits_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/commits{/sha}","git_commits_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/git/commits{/sha}","comments_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/comments{/number}","issue_comment_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/issues/comments{/number}","contents_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/contents/{+path}","compare_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/merges","archive_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/downloads","issues_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/issues{/number}","pulls_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/pulls{/number}","milestones_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/milestones{/number}","notifications_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/labels{/name}","releases_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/releases{/id}","deployments_url":"https://api.github.com/repos/dongminyoon/swift-coordinate/deployments","created_at":"2018-10-16T08:47:46Z","updated_at":"2018-10-16T08:47:48Z","pushed_at":"2018-10-21T09:22:11Z","git_url":"git://github.com/dongminyoon/swift-coordinate.git","ssh_url":"git@github.com:dongminyoon/swift-coordinate.git","clone_url":"https://github.com/dongminyoon/swift-coordinate.git","svn_url":"https://github.com/dongminyoon/swift-coordinate","homepage":null,"size":3623,"stargazers_count":0,"watchers_count":0,"language":"Swift","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":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"code-squad:dongminyoon","ref":"dongminyoon","sha":"9cbba8ddfdc593707c1cb9ece54b904d4e3c9991","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":106258411,"node_id":"MDEwOlJlcG9zaXRvcnkxMDYyNTg0MTE=","name":"swift-coordinate","full_name":"code-squad/swift-coordinate","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-coordinate","description":"좌표계산기_저장소","fork":false,"url":"https://api.github.com/repos/code-squad/swift-coordinate","forks_url":"https://api.github.com/repos/code-squad/swift-coordinate/forks","keys_url":"https://api.github.com/repos/code-squad/swift-coordinate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-squad/swift-coordinate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-squad/swift-coordinate/teams","hooks_url":"https://api.github.com/repos/code-squad/swift-coordinate/hooks","issue_events_url":"https://api.github.com/repos/code-squad/swift-coordinate/issues/events{/number}","events_url":"https://api.github.com/repos/code-squad/swift-coordinate/events","assignees_url":"https://api.github.com/repos/code-squad/swift-coordinate/assignees{/user}","branches_url":"https://api.github.com/repos/code-squad/swift-coordinate/branches{/branch}","tags_url":"https://api.github.com/repos/code-squad/swift-coordinate/tags","blobs_url":"https://api.github.com/repos/code-squad/swift-coordinate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-squad/swift-coordinate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-squad/swift-coordinate/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-squad/swift-coordinate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-squad/swift-coordinate/statuses/{sha}","languages_url":"https://api.github.com/repos/code-squad/swift-coordinate/languages","stargazers_url":"https://api.github.com/repos/code-squad/swift-coordinate/stargazers","contributors_url":"https://api.github.com/repos/code-squad/swift-coordinate/contributors","subscribers_url":"https://api.github.com/repos/code-squad/swift-coordinate/subscribers","subscription_url":"https://api.github.com/repos/code-squad/swift-coordinate/subscription","commits_url":"https://api.github.com/repos/code-squad/swift-coordinate/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-squad/swift-coordinate/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-squad/swift-coordinate/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-squad/swift-coordinate/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-squad/swift-coordinate/contents/{+path}","compare_url":"https://api.github.com/repos/code-squad/swift-coordinate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-squad/swift-coordinate/merges","archive_url":"https://api.github.com/repos/code-squad/swift-coordinate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-squad/swift-coordinate/downloads","issues_url":"https://api.github.com/repos/code-squad/swift-coordinate/issues{/number}","pulls_url":"https://api.github.com/repos/code-squad/swift-coordinate/pulls{/number}","milestones_url":"https://api.github.com/repos/code-squad/swift-coordinate/milestones{/number}","notifications_url":"https://api.github.com/repos/code-squad/swift-coordinate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-squad/swift-coordinate/labels{/name}","releases_url":"https://api.github.com/repos/code-squad/swift-coordinate/releases{/id}","deployments_url":"https://api.github.com/repos/code-squad/swift-coordinate/deployments","created_at":"2017-10-09T08:45:05Z","updated_at":"2018-10-22T02:40:24Z","pushed_at":"2018-10-22T06:50:09Z","git_url":"git://github.com/code-squad/swift-coordinate.git","ssh_url":"git@github.com:code-squad/swift-coordinate.git","clone_url":"https://github.com/code-squad/swift-coordinate.git","svn_url":"https://github.com/code-squad/swift-coordinate","homepage":null,"size":3634,"stargazers_count":1,"watchers_count":1,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":26,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/127"},"html":{"href":"https://github.com/code-squad/swift-coordinate/pull/127"},"issue":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/issues/127"},"comments":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/issues/127/comments"},"review_comments":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/127/comments"},"review_comment":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/127/commits"},"statuses":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/statuses/81e7d3ef885a13c99b52531134b4c80d7b788563"}},"author_association":"NONE"}}
{"actor":{"display_login":"dongminyoon"}}