{"action":"created","comment":{"url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/pulls/comments/147170206","pull_request_review_id":72226819,"id":147170206,"diff_hunk":"@@ -1,44 +1,110 @@\n package com.cs56fitnessapp.models;\n \n /**\n- * @author Ksenia Koldaeva\n- * Created: 9/17/17\n- * Last Updated: 10/1/17\n+ * @author Saori Shigehisa\n+ * Created: 10/6/17\n+ * Last Updated: 10/14/17\n  */\n+import com.cs56fitnessapp.models.workout.Workout;\n+\n+import java.time.LocalDate;\n+import java.util.ArrayList;\n+import java.util.Date;\n+\n \n public class Day implements ActivityFacts, DietFacts {\n \n+    /** date */\n+    private LocalDate date;\n+\n+    /** User */\n+    private User user;\n+\n+    /** calorieGoal */\n+    private double calorieGoal;\n+\n+    /** WorkoutList */\n+    private ArrayList < Workout > workoutList;\n+\n+    /** MealList */\n+    private ArrayList < Meal > mealList;\n+\n+    public Day (LocalDate date, User user){\n+      this.date = date;\n+      this.user = user;\n+    }\n+\n+\n+    public boolean isToday() {\n+        LocalDate now = LocalDate.now();\n+\n+        return now.getYear() == date.getYear() && now.getMonth() == date.getMonth() && now.getDayOfMonth() == date.getDayOfMonth();\n+    }\n+\n+    // TODO:\n+    // Kcal ~= METS * bodyMassKg * timePerformingHours\n+    public double getCaloriesLeft() {\n+        return 0;\n+    }\n ","path":"src/main/java/com/cs56fitnessapp/models/Day.java","position":52,"original_position":52,"commit_id":"349df3bf5626b7204f4c2df3be6cb01ab3b5880c","original_commit_id":"349df3bf5626b7204f4c2df3be6cb01ab3b5880c","user":{"login":"kumakichi3173","id":30059275,"avatar_url":"https://avatars1.githubusercontent.com/u/30059275?v=4","gravatar_id":"","url":"https://api.github.com/users/kumakichi3173","html_url":"https://github.com/kumakichi3173","followers_url":"https://api.github.com/users/kumakichi3173/followers","following_url":"https://api.github.com/users/kumakichi3173/following{/other_user}","gists_url":"https://api.github.com/users/kumakichi3173/gists{/gist_id}","starred_url":"https://api.github.com/users/kumakichi3173/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumakichi3173/subscriptions","organizations_url":"https://api.github.com/users/kumakichi3173/orgs","repos_url":"https://api.github.com/users/kumakichi3173/repos","events_url":"https://api.github.com/users/kumakichi3173/events{/privacy}","received_events_url":"https://api.github.com/users/kumakichi3173/received_events","type":"User","site_admin":false},"body":"I got this, thanks","created_at":"2017-10-26T15:00:33Z","updated_at":"2017-10-26T15:00:33Z","html_url":"https://github.com/kseniacold/cs56-fitness-app/pull/17#discussion_r147170206","pull_request_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/pulls/17","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/kseniacold/cs56-fitness-app/pulls/comments/147170206"},"html":{"href":"https://github.com/kseniacold/cs56-fitness-app/pull/17#discussion_r147170206"},"pull_request":{"href":"https://api.github.com/repos/kseniacold/cs56-fitness-app/pulls/17"}},"in_reply_to_id":146737365},"pull_request":{"url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/pulls/17","id":146481132,"html_url":"https://github.com/kseniacold/cs56-fitness-app/pull/17","diff_url":"https://github.com/kseniacold/cs56-fitness-app/pull/17.diff","patch_url":"https://github.com/kseniacold/cs56-fitness-app/pull/17.patch","issue_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/issues/17","number":17,"state":"open","locked":false,"title":"added to dayimpliment","user":{"login":"kumakichi3173","id":30059275,"avatar_url":"https://avatars1.githubusercontent.com/u/30059275?v=4","gravatar_id":"","url":"https://api.github.com/users/kumakichi3173","html_url":"https://github.com/kumakichi3173","followers_url":"https://api.github.com/users/kumakichi3173/followers","following_url":"https://api.github.com/users/kumakichi3173/following{/other_user}","gists_url":"https://api.github.com/users/kumakichi3173/gists{/gist_id}","starred_url":"https://api.github.com/users/kumakichi3173/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumakichi3173/subscriptions","organizations_url":"https://api.github.com/users/kumakichi3173/orgs","repos_url":"https://api.github.com/users/kumakichi3173/repos","events_url":"https://api.github.com/users/kumakichi3173/events{/privacy}","received_events_url":"https://api.github.com/users/kumakichi3173/received_events","type":"User","site_admin":false},"body":"created dayimpliment class","created_at":"2017-10-13T15:04:58Z","updated_at":"2017-10-26T15:00:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e0c7b08363f783bae4516f5f64048bf02f04367","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/pulls/17/commits","review_comments_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/pulls/17/comments","review_comment_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/issues/17/comments","statuses_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/statuses/349df3bf5626b7204f4c2df3be6cb01ab3b5880c","head":{"label":"kseniacold:daybysaori","ref":"daybysaori","sha":"349df3bf5626b7204f4c2df3be6cb01ab3b5880c","user":{"login":"kseniacold","id":25463226,"avatar_url":"https://avatars0.githubusercontent.com/u/25463226?v=4","gravatar_id":"","url":"https://api.github.com/users/kseniacold","html_url":"https://github.com/kseniacold","followers_url":"https://api.github.com/users/kseniacold/followers","following_url":"https://api.github.com/users/kseniacold/following{/other_user}","gists_url":"https://api.github.com/users/kseniacold/gists{/gist_id}","starred_url":"https://api.github.com/users/kseniacold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kseniacold/subscriptions","organizations_url":"https://api.github.com/users/kseniacold/orgs","repos_url":"https://api.github.com/users/kseniacold/repos","events_url":"https://api.github.com/users/kseniacold/events{/privacy}","received_events_url":"https://api.github.com/users/kseniacold/received_events","type":"User","site_admin":false},"repo":{"id":102977713,"name":"cs56-fitness-app","full_name":"kseniacold/cs56-fitness-app","owner":{"login":"kseniacold","id":25463226,"avatar_url":"https://avatars0.githubusercontent.com/u/25463226?v=4","gravatar_id":"","url":"https://api.github.com/users/kseniacold","html_url":"https://github.com/kseniacold","followers_url":"https://api.github.com/users/kseniacold/followers","following_url":"https://api.github.com/users/kseniacold/following{/other_user}","gists_url":"https://api.github.com/users/kseniacold/gists{/gist_id}","starred_url":"https://api.github.com/users/kseniacold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kseniacold/subscriptions","organizations_url":"https://api.github.com/users/kseniacold/orgs","repos_url":"https://api.github.com/users/kseniacold/repos","events_url":"https://api.github.com/users/kseniacold/events{/privacy}","received_events_url":"https://api.github.com/users/kseniacold/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kseniacold/cs56-fitness-app","description":"Java desktop fitness logger application","fork":false,"url":"https://api.github.com/repos/kseniacold/cs56-fitness-app","forks_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/forks","keys_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/teams","hooks_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/hooks","issue_events_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/issues/events{/number}","events_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/events","assignees_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/assignees{/user}","branches_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/branches{/branch}","tags_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/tags","blobs_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/statuses/{sha}","languages_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/languages","stargazers_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/stargazers","contributors_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/contributors","subscribers_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/subscribers","subscription_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/subscription","commits_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/contents/{+path}","compare_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/merges","archive_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/downloads","issues_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/issues{/number}","pulls_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/pulls{/number}","milestones_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/milestones{/number}","notifications_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/labels{/name}","releases_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/releases{/id}","deployments_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/deployments","created_at":"2017-09-09T18:50:27Z","updated_at":"2017-09-29T05:57:25Z","pushed_at":"2017-10-26T03:27:23Z","git_url":"git://github.com/kseniacold/cs56-fitness-app.git","ssh_url":"git@github.com:kseniacold/cs56-fitness-app.git","clone_url":"https://github.com/kseniacold/cs56-fitness-app.git","svn_url":"https://github.com/kseniacold/cs56-fitness-app","homepage":null,"size":7412,"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":3,"mirror_url":null,"archived":false,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"kseniacold:master","ref":"master","sha":"443ff6a25b751b89cb4727197f0beb02cde382d8","user":{"login":"kseniacold","id":25463226,"avatar_url":"https://avatars0.githubusercontent.com/u/25463226?v=4","gravatar_id":"","url":"https://api.github.com/users/kseniacold","html_url":"https://github.com/kseniacold","followers_url":"https://api.github.com/users/kseniacold/followers","following_url":"https://api.github.com/users/kseniacold/following{/other_user}","gists_url":"https://api.github.com/users/kseniacold/gists{/gist_id}","starred_url":"https://api.github.com/users/kseniacold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kseniacold/subscriptions","organizations_url":"https://api.github.com/users/kseniacold/orgs","repos_url":"https://api.github.com/users/kseniacold/repos","events_url":"https://api.github.com/users/kseniacold/events{/privacy}","received_events_url":"https://api.github.com/users/kseniacold/received_events","type":"User","site_admin":false},"repo":{"id":102977713,"name":"cs56-fitness-app","full_name":"kseniacold/cs56-fitness-app","owner":{"login":"kseniacold","id":25463226,"avatar_url":"https://avatars0.githubusercontent.com/u/25463226?v=4","gravatar_id":"","url":"https://api.github.com/users/kseniacold","html_url":"https://github.com/kseniacold","followers_url":"https://api.github.com/users/kseniacold/followers","following_url":"https://api.github.com/users/kseniacold/following{/other_user}","gists_url":"https://api.github.com/users/kseniacold/gists{/gist_id}","starred_url":"https://api.github.com/users/kseniacold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kseniacold/subscriptions","organizations_url":"https://api.github.com/users/kseniacold/orgs","repos_url":"https://api.github.com/users/kseniacold/repos","events_url":"https://api.github.com/users/kseniacold/events{/privacy}","received_events_url":"https://api.github.com/users/kseniacold/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kseniacold/cs56-fitness-app","description":"Java desktop fitness logger application","fork":false,"url":"https://api.github.com/repos/kseniacold/cs56-fitness-app","forks_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/forks","keys_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/teams","hooks_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/hooks","issue_events_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/issues/events{/number}","events_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/events","assignees_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/assignees{/user}","branches_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/branches{/branch}","tags_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/tags","blobs_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/statuses/{sha}","languages_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/languages","stargazers_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/stargazers","contributors_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/contributors","subscribers_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/subscribers","subscription_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/subscription","commits_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/contents/{+path}","compare_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/merges","archive_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/downloads","issues_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/issues{/number}","pulls_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/pulls{/number}","milestones_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/milestones{/number}","notifications_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/labels{/name}","releases_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/releases{/id}","deployments_url":"https://api.github.com/repos/kseniacold/cs56-fitness-app/deployments","created_at":"2017-09-09T18:50:27Z","updated_at":"2017-09-29T05:57:25Z","pushed_at":"2017-10-26T03:27:23Z","git_url":"git://github.com/kseniacold/cs56-fitness-app.git","ssh_url":"git@github.com:kseniacold/cs56-fitness-app.git","clone_url":"https://github.com/kseniacold/cs56-fitness-app.git","svn_url":"https://github.com/kseniacold/cs56-fitness-app","homepage":null,"size":7412,"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":3,"mirror_url":null,"archived":false,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kseniacold/cs56-fitness-app/pulls/17"},"html":{"href":"https://github.com/kseniacold/cs56-fitness-app/pull/17"},"issue":{"href":"https://api.github.com/repos/kseniacold/cs56-fitness-app/issues/17"},"comments":{"href":"https://api.github.com/repos/kseniacold/cs56-fitness-app/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/kseniacold/cs56-fitness-app/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/kseniacold/cs56-fitness-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kseniacold/cs56-fitness-app/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/kseniacold/cs56-fitness-app/statuses/349df3bf5626b7204f4c2df3be6cb01ab3b5880c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"kumakichi3173"}}