{"action":"created","comment":{"url":"https://api.github.com/repos/code-squad/java-qna/pulls/comments/187851863","pull_request_review_id":119710658,"id":187851863,"diff_hunk":"@@ -0,0 +1,107 @@\n+package codesquad.web.model;\n+\n+import java.util.Objects;\n+\n+public class User {\n+\n+    private String userId;\n+    private String password;\n+    private String name;\n+    private String email;\n+\n+    public User() { }\n+\n+    public User(String userId, String password, String name, String email) {\n+        this.userId = userId;\n+        this.password = password;\n+        this.name = name;\n+        this.email = email;\n+    }\n+\n+    public void setUserId(String userId) {\n+        this.userId = userId;\n+    }\n+\n+    public void setPassword(String password) {\n+        this.password = password;\n+    }\n+\n+    public void setName(String name) {\n+        this.name = name;\n+    }\n+\n+    public void setEmail(String email) {\n+        this.email = email;\n+    }\n+\n+    public String getUserId() {\n+        return userId;\n+    }\n+\n+    public String getPassword() {\n+        return password;\n+    }\n+\n+    public String getName() {\n+        return name;\n+    }\n+\n+    public String getEmail() {\n+        return email;\n+    }\n+\n+    public boolean haveId(String userId) {\n+        return this.userId.equals(userId);\n+    }\n+\n+    public boolean haveId(User updatedUserId) {\n+        return this.userId.equals(updatedUserId.userId);\n+    }\n+\n+    public boolean matchWith(String beforePassword) {\n+        return this.password.equals(beforePassword);\n+    }\n+\n+    public boolean matchWith(User updatedUser) {\n+        return this.userId.equals(updatedUser.userId) && this.password.equals(updatedUser.password);\n+    }\n+\n+    @Override\n+    public String toString() {\n+        return \"User{\" +\n+                \"userId='\" + userId + '\\'' +\n+                \", password='\" + password + '\\'' +\n+                \", name='\" + name + '\\'' +\n+                \", email='\" + email + '\\'' +\n+                '}';\n+    }\n+\n+    public void update(User updatedUser) {\n+        this.name = updatedUser.name;\n+        this.password = updatedUser.password;\n+        this.email = updatedUser.email;\n+    }\n+\n+    public void update(String password, String name, String email) {","path":"src/main/java/codesquad/web/model/User.java","position":85,"original_position":85,"commit_id":"562dc5728768faf392be9df2db27bd5f074b580d","original_commit_id":"562dc5728768faf392be9df2db27bd5f074b580d","user":{"login":"javajigi","id":520500,"avatar_url":"https://avatars2.githubusercontent.com/u/520500?v=4","gravatar_id":"","url":"https://api.github.com/users/javajigi","html_url":"https://github.com/javajigi","followers_url":"https://api.github.com/users/javajigi/followers","following_url":"https://api.github.com/users/javajigi/following{/other_user}","gists_url":"https://api.github.com/users/javajigi/gists{/gist_id}","starred_url":"https://api.github.com/users/javajigi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javajigi/subscriptions","organizations_url":"https://api.github.com/users/javajigi/orgs","repos_url":"https://api.github.com/users/javajigi/repos","events_url":"https://api.github.com/users/javajigi/events{/privacy}","received_events_url":"https://api.github.com/users/javajigi/received_events","type":"User","site_admin":false},"body":"굳이 update 메소드가 2개일 필요가 있나?\r\n하나면 되지 않을까?","created_at":"2018-05-14T07:03:45Z","updated_at":"2018-05-14T07:04:31Z","html_url":"https://github.com/code-squad/java-qna/pull/9#discussion_r187851863","pull_request_url":"https://api.github.com/repos/code-squad/java-qna/pulls/9","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/code-squad/java-qna/pulls/comments/187851863"},"html":{"href":"https://github.com/code-squad/java-qna/pull/9#discussion_r187851863"},"pull_request":{"href":"https://api.github.com/repos/code-squad/java-qna/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/code-squad/java-qna/pulls/9","id":187730178,"html_url":"https://github.com/code-squad/java-qna/pull/9","diff_url":"https://github.com/code-squad/java-qna/pull/9.diff","patch_url":"https://github.com/code-squad/java-qna/pull/9.patch","issue_url":"https://api.github.com/repos/code-squad/java-qna/issues/9","number":9,"state":"open","locked":false,"title":"Step2","user":{"login":"LarryJung","id":36081783,"avatar_url":"https://avatars2.githubusercontent.com/u/36081783?v=4","gravatar_id":"","url":"https://api.github.com/users/LarryJung","html_url":"https://github.com/LarryJung","followers_url":"https://api.github.com/users/LarryJung/followers","following_url":"https://api.github.com/users/LarryJung/following{/other_user}","gists_url":"https://api.github.com/users/LarryJung/gists{/gist_id}","starred_url":"https://api.github.com/users/LarryJung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LarryJung/subscriptions","organizations_url":"https://api.github.com/users/LarryJung/orgs","repos_url":"https://api.github.com/users/LarryJung/repos","events_url":"https://api.github.com/users/LarryJung/events{/privacy}","received_events_url":"https://api.github.com/users/LarryJung/received_events","type":"User","site_admin":false},"body":"사용자 정보 수정까지 구현했습니다.\r\n\r\n사용자 정보 수정하기 전 비밀번호가 일치하지 않으면 index페이지로 나오게 했는데, 수정 페이지 상에서 바로 일치여부를 알려주려면 어떻게 해야할까요?","created_at":"2018-05-14T06:24:57Z","updated_at":"2018-05-14T07:04:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"806d38e6358b27c898c6fd6f7eda415ddb4887cc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/code-squad/java-qna/pulls/9/commits","review_comments_url":"https://api.github.com/repos/code-squad/java-qna/pulls/9/comments","review_comment_url":"https://api.github.com/repos/code-squad/java-qna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-squad/java-qna/issues/9/comments","statuses_url":"https://api.github.com/repos/code-squad/java-qna/statuses/562dc5728768faf392be9df2db27bd5f074b580d","head":{"label":"LarryJung:step2","ref":"step2","sha":"562dc5728768faf392be9df2db27bd5f074b580d","user":{"login":"LarryJung","id":36081783,"avatar_url":"https://avatars2.githubusercontent.com/u/36081783?v=4","gravatar_id":"","url":"https://api.github.com/users/LarryJung","html_url":"https://github.com/LarryJung","followers_url":"https://api.github.com/users/LarryJung/followers","following_url":"https://api.github.com/users/LarryJung/following{/other_user}","gists_url":"https://api.github.com/users/LarryJung/gists{/gist_id}","starred_url":"https://api.github.com/users/LarryJung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LarryJung/subscriptions","organizations_url":"https://api.github.com/users/LarryJung/orgs","repos_url":"https://api.github.com/users/LarryJung/repos","events_url":"https://api.github.com/users/LarryJung/events{/privacy}","received_events_url":"https://api.github.com/users/LarryJung/received_events","type":"User","site_admin":false},"repo":{"id":132702573,"name":"java-qna","full_name":"LarryJung/java-qna","owner":{"login":"LarryJung","id":36081783,"avatar_url":"https://avatars2.githubusercontent.com/u/36081783?v=4","gravatar_id":"","url":"https://api.github.com/users/LarryJung","html_url":"https://github.com/LarryJung","followers_url":"https://api.github.com/users/LarryJung/followers","following_url":"https://api.github.com/users/LarryJung/following{/other_user}","gists_url":"https://api.github.com/users/LarryJung/gists{/gist_id}","starred_url":"https://api.github.com/users/LarryJung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LarryJung/subscriptions","organizations_url":"https://api.github.com/users/LarryJung/orgs","repos_url":"https://api.github.com/users/LarryJung/repos","events_url":"https://api.github.com/users/LarryJung/events{/privacy}","received_events_url":"https://api.github.com/users/LarryJung/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LarryJung/java-qna","description":"질문 답변 게시판 미션을 위한 저장소","fork":true,"url":"https://api.github.com/repos/LarryJung/java-qna","forks_url":"https://api.github.com/repos/LarryJung/java-qna/forks","keys_url":"https://api.github.com/repos/LarryJung/java-qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LarryJung/java-qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LarryJung/java-qna/teams","hooks_url":"https://api.github.com/repos/LarryJung/java-qna/hooks","issue_events_url":"https://api.github.com/repos/LarryJung/java-qna/issues/events{/number}","events_url":"https://api.github.com/repos/LarryJung/java-qna/events","assignees_url":"https://api.github.com/repos/LarryJung/java-qna/assignees{/user}","branches_url":"https://api.github.com/repos/LarryJung/java-qna/branches{/branch}","tags_url":"https://api.github.com/repos/LarryJung/java-qna/tags","blobs_url":"https://api.github.com/repos/LarryJung/java-qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LarryJung/java-qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LarryJung/java-qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/LarryJung/java-qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LarryJung/java-qna/statuses/{sha}","languages_url":"https://api.github.com/repos/LarryJung/java-qna/languages","stargazers_url":"https://api.github.com/repos/LarryJung/java-qna/stargazers","contributors_url":"https://api.github.com/repos/LarryJung/java-qna/contributors","subscribers_url":"https://api.github.com/repos/LarryJung/java-qna/subscribers","subscription_url":"https://api.github.com/repos/LarryJung/java-qna/subscription","commits_url":"https://api.github.com/repos/LarryJung/java-qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/LarryJung/java-qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/LarryJung/java-qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/LarryJung/java-qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/LarryJung/java-qna/contents/{+path}","compare_url":"https://api.github.com/repos/LarryJung/java-qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LarryJung/java-qna/merges","archive_url":"https://api.github.com/repos/LarryJung/java-qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LarryJung/java-qna/downloads","issues_url":"https://api.github.com/repos/LarryJung/java-qna/issues{/number}","pulls_url":"https://api.github.com/repos/LarryJung/java-qna/pulls{/number}","milestones_url":"https://api.github.com/repos/LarryJung/java-qna/milestones{/number}","notifications_url":"https://api.github.com/repos/LarryJung/java-qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LarryJung/java-qna/labels{/name}","releases_url":"https://api.github.com/repos/LarryJung/java-qna/releases{/id}","deployments_url":"https://api.github.com/repos/LarryJung/java-qna/deployments","created_at":"2018-05-09T04:42:17Z","updated_at":"2018-05-09T04:42:19Z","pushed_at":"2018-05-14T06:21:45Z","git_url":"git://github.com/LarryJung/java-qna.git","ssh_url":"git@github.com:LarryJung/java-qna.git","clone_url":"https://github.com/LarryJung/java-qna.git","svn_url":"https://github.com/LarryJung/java-qna","homepage":null,"size":313,"stargazers_count":0,"watchers_count":0,"language":"HTML","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:larryjung","ref":"larryjung","sha":"3936744b1e8902d13160ef2bc97f82cbad50b366","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":125971521,"name":"java-qna","full_name":"code-squad/java-qna","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/java-qna","description":"질문 답변 게시판 미션을 위한 저장소","fork":false,"url":"https://api.github.com/repos/code-squad/java-qna","forks_url":"https://api.github.com/repos/code-squad/java-qna/forks","keys_url":"https://api.github.com/repos/code-squad/java-qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-squad/java-qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-squad/java-qna/teams","hooks_url":"https://api.github.com/repos/code-squad/java-qna/hooks","issue_events_url":"https://api.github.com/repos/code-squad/java-qna/issues/events{/number}","events_url":"https://api.github.com/repos/code-squad/java-qna/events","assignees_url":"https://api.github.com/repos/code-squad/java-qna/assignees{/user}","branches_url":"https://api.github.com/repos/code-squad/java-qna/branches{/branch}","tags_url":"https://api.github.com/repos/code-squad/java-qna/tags","blobs_url":"https://api.github.com/repos/code-squad/java-qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-squad/java-qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-squad/java-qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-squad/java-qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-squad/java-qna/statuses/{sha}","languages_url":"https://api.github.com/repos/code-squad/java-qna/languages","stargazers_url":"https://api.github.com/repos/code-squad/java-qna/stargazers","contributors_url":"https://api.github.com/repos/code-squad/java-qna/contributors","subscribers_url":"https://api.github.com/repos/code-squad/java-qna/subscribers","subscription_url":"https://api.github.com/repos/code-squad/java-qna/subscription","commits_url":"https://api.github.com/repos/code-squad/java-qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-squad/java-qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-squad/java-qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-squad/java-qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-squad/java-qna/contents/{+path}","compare_url":"https://api.github.com/repos/code-squad/java-qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-squad/java-qna/merges","archive_url":"https://api.github.com/repos/code-squad/java-qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-squad/java-qna/downloads","issues_url":"https://api.github.com/repos/code-squad/java-qna/issues{/number}","pulls_url":"https://api.github.com/repos/code-squad/java-qna/pulls{/number}","milestones_url":"https://api.github.com/repos/code-squad/java-qna/milestones{/number}","notifications_url":"https://api.github.com/repos/code-squad/java-qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-squad/java-qna/labels{/name}","releases_url":"https://api.github.com/repos/code-squad/java-qna/releases{/id}","deployments_url":"https://api.github.com/repos/code-squad/java-qna/deployments","created_at":"2018-03-20T06:32:34Z","updated_at":"2018-05-08T12:53:20Z","pushed_at":"2018-05-14T06:59:59Z","git_url":"git://github.com/code-squad/java-qna.git","ssh_url":"git@github.com:code-squad/java-qna.git","clone_url":"https://github.com/code-squad/java-qna.git","svn_url":"https://github.com/code-squad/java-qna","homepage":null,"size":310,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":10,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/code-squad/java-qna/pulls/9"},"html":{"href":"https://github.com/code-squad/java-qna/pull/9"},"issue":{"href":"https://api.github.com/repos/code-squad/java-qna/issues/9"},"comments":{"href":"https://api.github.com/repos/code-squad/java-qna/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/code-squad/java-qna/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/code-squad/java-qna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-squad/java-qna/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/code-squad/java-qna/statuses/562dc5728768faf392be9df2db27bd5f074b580d"}},"author_association":"NONE"}}
{"actor":{"display_login":"javajigi"}}