{"action":"created","comment":{"url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/pulls/comments/125316102","pull_request_review_id":47694132,"id":125316102,"diff_hunk":"@@ -57,19 +61,30 @@\n   private final Uuid id;\n   private final Secret secret;\n \n-  private final Model model = new Model();\n-  private final View view = new View(model);\n   private final Controller controller;\n \n   private final Relay relay;\n   private Uuid lastSeen = Uuid.NULL;\n+  private final Model model;\n+  final View view;\n \n-  public Server(final Uuid id, final Secret secret, final Relay relay) {\n+  public Server(final Uuid id, final Secret secret, final Relay relay, final File fp) {\n ","path":"src/codeu/chat/server/Server.java","position":37,"original_position":37,"commit_id":"f1b2161317d2f1a2370a6d08820b6671db8fed39","original_commit_id":"f1b2161317d2f1a2370a6d08820b6671db8fed39","user":{"login":"efuquen","id":136434,"avatar_url":"https://avatars1.githubusercontent.com/u/136434?v=3","gravatar_id":"","url":"https://api.github.com/users/efuquen","html_url":"https://github.com/efuquen","followers_url":"https://api.github.com/users/efuquen/followers","following_url":"https://api.github.com/users/efuquen/following{/other_user}","gists_url":"https://api.github.com/users/efuquen/gists{/gist_id}","starred_url":"https://api.github.com/users/efuquen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efuquen/subscriptions","organizations_url":"https://api.github.com/users/efuquen/orgs","repos_url":"https://api.github.com/users/efuquen/repos","events_url":"https://api.github.com/users/efuquen/events{/privacy}","received_events_url":"https://api.github.com/users/efuquen/received_events","type":"User","site_admin":false},"body":"Keep the parameter you have in the `Server` constructor, that does not need to change. The problem is that file is a directory, you just need to create an actual new file within it using `File(File parent, String child)`. Parent will be the already passed in directory (`fp` from the `Server` constructor) and `child` will be any filename you choose, i.e. `chatlogs.dat`, then you will use this new file to save serialized data too, in the end the code will look something like:\r\n\r\n```\r\npublic Server(final Uuid id, final Secret secret, final Relay relay, final File dir) {\r\n  File fp = new File(dir, 'chatlog.dat');\r\n```\r\n\r\nSimilarly when you read the file on server startup you will have to use `new File(dir, 'chatlog.dat')`.","created_at":"2017-07-03T15:34:11Z","updated_at":"2017-07-03T15:34:12Z","html_url":"https://github.com/lianasyrkett/CodeU-Summer-2017/pull/5#discussion_r125316102","pull_request_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/pulls/comments/125316102"},"html":{"href":"https://github.com/lianasyrkett/CodeU-Summer-2017/pull/5#discussion_r125316102"},"pull_request":{"href":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/pulls/5","id":127506164,"html_url":"https://github.com/lianasyrkett/CodeU-Summer-2017/pull/5","diff_url":"https://github.com/lianasyrkett/CodeU-Summer-2017/pull/5.diff","patch_url":"https://github.com/lianasyrkett/CodeU-Summer-2017/pull/5.patch","issue_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/issues/5","number":5,"state":"open","locked":false,"title":"Persistant Storage Snapshot","user":{"login":"seibelsabrina","id":19593736,"avatar_url":"https://avatars1.githubusercontent.com/u/19593736?v=3","gravatar_id":"","url":"https://api.github.com/users/seibelsabrina","html_url":"https://github.com/seibelsabrina","followers_url":"https://api.github.com/users/seibelsabrina/followers","following_url":"https://api.github.com/users/seibelsabrina/following{/other_user}","gists_url":"https://api.github.com/users/seibelsabrina/gists{/gist_id}","starred_url":"https://api.github.com/users/seibelsabrina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seibelsabrina/subscriptions","organizations_url":"https://api.github.com/users/seibelsabrina/orgs","repos_url":"https://api.github.com/users/seibelsabrina/repos","events_url":"https://api.github.com/users/seibelsabrina/events{/privacy}","received_events_url":"https://api.github.com/users/seibelsabrina/received_events","type":"User","site_admin":false},"body":"PTAL","created_at":"2017-06-26T16:06:32Z","updated_at":"2017-07-03T15:34:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/pulls/5/commits","review_comments_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/pulls/5/comments","review_comment_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/issues/5/comments","statuses_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/statuses/f1b2161317d2f1a2370a6d08820b6671db8fed39","head":{"label":"seibelsabrina:master","ref":"master","sha":"f1b2161317d2f1a2370a6d08820b6671db8fed39","user":{"login":"seibelsabrina","id":19593736,"avatar_url":"https://avatars1.githubusercontent.com/u/19593736?v=3","gravatar_id":"","url":"https://api.github.com/users/seibelsabrina","html_url":"https://github.com/seibelsabrina","followers_url":"https://api.github.com/users/seibelsabrina/followers","following_url":"https://api.github.com/users/seibelsabrina/following{/other_user}","gists_url":"https://api.github.com/users/seibelsabrina/gists{/gist_id}","starred_url":"https://api.github.com/users/seibelsabrina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seibelsabrina/subscriptions","organizations_url":"https://api.github.com/users/seibelsabrina/orgs","repos_url":"https://api.github.com/users/seibelsabrina/repos","events_url":"https://api.github.com/users/seibelsabrina/events{/privacy}","received_events_url":"https://api.github.com/users/seibelsabrina/received_events","type":"User","site_admin":false},"repo":{"id":92681447,"name":"CodeU-Summer-2017","full_name":"seibelsabrina/CodeU-Summer-2017","owner":{"login":"seibelsabrina","id":19593736,"avatar_url":"https://avatars1.githubusercontent.com/u/19593736?v=3","gravatar_id":"","url":"https://api.github.com/users/seibelsabrina","html_url":"https://github.com/seibelsabrina","followers_url":"https://api.github.com/users/seibelsabrina/followers","following_url":"https://api.github.com/users/seibelsabrina/following{/other_user}","gists_url":"https://api.github.com/users/seibelsabrina/gists{/gist_id}","starred_url":"https://api.github.com/users/seibelsabrina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seibelsabrina/subscriptions","organizations_url":"https://api.github.com/users/seibelsabrina/orgs","repos_url":"https://api.github.com/users/seibelsabrina/repos","events_url":"https://api.github.com/users/seibelsabrina/events{/privacy}","received_events_url":"https://api.github.com/users/seibelsabrina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/seibelsabrina/CodeU-Summer-2017","description":null,"fork":true,"url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017","forks_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/forks","keys_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/teams","hooks_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/hooks","issue_events_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/issues/events{/number}","events_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/events","assignees_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/assignees{/user}","branches_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/branches{/branch}","tags_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/tags","blobs_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/git/refs{/sha}","trees_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/statuses/{sha}","languages_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/languages","stargazers_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/stargazers","contributors_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/contributors","subscribers_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/subscribers","subscription_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/subscription","commits_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/commits{/sha}","git_commits_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/git/commits{/sha}","comments_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/comments{/number}","issue_comment_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/issues/comments{/number}","contents_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/contents/{+path}","compare_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/merges","archive_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/downloads","issues_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/issues{/number}","pulls_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/pulls{/number}","milestones_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/milestones{/number}","notifications_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/labels{/name}","releases_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/releases{/id}","deployments_url":"https://api.github.com/repos/seibelsabrina/CodeU-Summer-2017/deployments","created_at":"2017-05-28T19:08:51Z","updated_at":"2017-05-28T19:08:53Z","pushed_at":"2017-06-26T18:19:47Z","git_url":"git://github.com/seibelsabrina/CodeU-Summer-2017.git","ssh_url":"git@github.com:seibelsabrina/CodeU-Summer-2017.git","clone_url":"https://github.com/seibelsabrina/CodeU-Summer-2017.git","svn_url":"https://github.com/seibelsabrina/CodeU-Summer-2017","homepage":null,"size":441,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lianasyrkett:master","ref":"master","sha":"da1993fab6e3aebd4d93e3ceb6bd46359d4dbd2b","user":{"login":"lianasyrkett","id":22550115,"avatar_url":"https://avatars3.githubusercontent.com/u/22550115?v=3","gravatar_id":"","url":"https://api.github.com/users/lianasyrkett","html_url":"https://github.com/lianasyrkett","followers_url":"https://api.github.com/users/lianasyrkett/followers","following_url":"https://api.github.com/users/lianasyrkett/following{/other_user}","gists_url":"https://api.github.com/users/lianasyrkett/gists{/gist_id}","starred_url":"https://api.github.com/users/lianasyrkett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lianasyrkett/subscriptions","organizations_url":"https://api.github.com/users/lianasyrkett/orgs","repos_url":"https://api.github.com/users/lianasyrkett/repos","events_url":"https://api.github.com/users/lianasyrkett/events{/privacy}","received_events_url":"https://api.github.com/users/lianasyrkett/received_events","type":"User","site_admin":false},"repo":{"id":91853303,"name":"CodeU-Summer-2017","full_name":"lianasyrkett/CodeU-Summer-2017","owner":{"login":"lianasyrkett","id":22550115,"avatar_url":"https://avatars3.githubusercontent.com/u/22550115?v=3","gravatar_id":"","url":"https://api.github.com/users/lianasyrkett","html_url":"https://github.com/lianasyrkett","followers_url":"https://api.github.com/users/lianasyrkett/followers","following_url":"https://api.github.com/users/lianasyrkett/following{/other_user}","gists_url":"https://api.github.com/users/lianasyrkett/gists{/gist_id}","starred_url":"https://api.github.com/users/lianasyrkett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lianasyrkett/subscriptions","organizations_url":"https://api.github.com/users/lianasyrkett/orgs","repos_url":"https://api.github.com/users/lianasyrkett/repos","events_url":"https://api.github.com/users/lianasyrkett/events{/privacy}","received_events_url":"https://api.github.com/users/lianasyrkett/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lianasyrkett/CodeU-Summer-2017","description":null,"fork":false,"url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017","forks_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/forks","keys_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/teams","hooks_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/hooks","issue_events_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/issues/events{/number}","events_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/events","assignees_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/assignees{/user}","branches_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/branches{/branch}","tags_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/tags","blobs_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/git/refs{/sha}","trees_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/statuses/{sha}","languages_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/languages","stargazers_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/stargazers","contributors_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/contributors","subscribers_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/subscribers","subscription_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/subscription","commits_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/commits{/sha}","git_commits_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/git/commits{/sha}","comments_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/comments{/number}","issue_comment_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/issues/comments{/number}","contents_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/contents/{+path}","compare_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/merges","archive_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/downloads","issues_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/issues{/number}","pulls_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/pulls{/number}","milestones_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/milestones{/number}","notifications_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/labels{/name}","releases_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/releases{/id}","deployments_url":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/deployments","created_at":"2017-05-19T23:48:07Z","updated_at":"2017-05-29T04:07:42Z","pushed_at":"2017-06-26T18:21:14Z","git_url":"git://github.com/lianasyrkett/CodeU-Summer-2017.git","ssh_url":"git@github.com:lianasyrkett/CodeU-Summer-2017.git","clone_url":"https://github.com/lianasyrkett/CodeU-Summer-2017.git","svn_url":"https://github.com/lianasyrkett/CodeU-Summer-2017","homepage":null,"size":451,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/pulls/5"},"html":{"href":"https://github.com/lianasyrkett/CodeU-Summer-2017/pull/5"},"issue":{"href":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/issues/5"},"comments":{"href":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/lianasyrkett/CodeU-Summer-2017/statuses/f1b2161317d2f1a2370a6d08820b6671db8fed39"}}}}
{"actor":{"display_login":"efuquen"}}