{"action":"created","comment":{"url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/pulls/comments/84017951","pull_request_review_id":4821535,"id":84017951,"diff_hunk":"@@ -2,43 +2,85 @@\n \n import java.util.Objects;\n \n+import java.time.LocalDateTime;\n+import java.time.Period;\n+\n+import seedu.address.commons.util.CollectionUtil;\n import seedu.address.model.tag.UniqueTagList;\n \n /**\n  * Represents a Item in the address book. Guarantees: details are present and\n  * not null, field values are validated.\n  */\n-public abstract class Item implements ReadOnlyItem{\n+public class Item {\n \n \n     private UniqueTagList tags;\n \tprivate Description description;\n \tprivate boolean isDone;\n \t\n+\tprivate LocalDateTime startDate;\n+    private LocalDateTime endDate;\n+\t\n+\t// for recurring events only\n+\tprivate boolean isRecurring;\n+\tprivate Period recurInterval;\n+\tprivate LocalDateTime recurEndDate;\n+\t\n+\t\n     /**\n      * Every field must be present and not null.\n      */\n \tpublic Item(Description desc) {\n \t\t// assert !CollectionUtil.isAnyNull(name, phone, email, address, tags);\n+\t    assert desc != null;\n \t\tthis.description = desc;\n \t\tthis.isDone = false;\n \t\t// this.tags = new UniqueTagList(tags); // protect internal tags from\n \t\t// changes in the arg list\n     }\n-\n-\n+\t\n+\tpublic Item(Description desc, LocalDateTime start, LocalDateTime end) {\n+\t    assert !CollectionUtil.isAnyNull(desc, start, end);\n+\t    this.description = desc;\n+\t    this.startDate = start;\n+\t    this.endDate = end;\n+\t}\n+\t\n+\tpublic Item(Description desc, LocalDateTime end) {\n+\t    assert !CollectionUtil.isAnyNull(desc, end);\n+\t    this.description = desc;\n+\t    this.endDate = end;\n+\t}\n+\t\n \tpublic Description getDescription() {\n \t\treturn description;\n     }\n-\t\n-\tpublic boolean getIsDone() {\n-\t    return this.isDone;\n+\n+    public boolean getIsDone() {\n+\t    return isDone;","path":"src/main/java/seedu/address/model/item/Item.java","position":null,"original_position":66,"commit_id":"e5e03e9bed2719a749b20d7a26f67cdcc0195ec8","original_commit_id":"b52fdea9101a00e8e694b660e1f88a2243ccc36d","user":{"login":"darrenwee","id":12949331,"avatar_url":"https://avatars.githubusercontent.com/u/12949331?v=3","gravatar_id":"","url":"https://api.github.com/users/darrenwee","html_url":"https://github.com/darrenwee","followers_url":"https://api.github.com/users/darrenwee/followers","following_url":"https://api.github.com/users/darrenwee/following{/other_user}","gists_url":"https://api.github.com/users/darrenwee/gists{/gist_id}","starred_url":"https://api.github.com/users/darrenwee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrenwee/subscriptions","organizations_url":"https://api.github.com/users/darrenwee/orgs","repos_url":"https://api.github.com/users/darrenwee/repos","events_url":"https://api.github.com/users/darrenwee/events{/privacy}","received_events_url":"https://api.github.com/users/darrenwee/received_events","type":"User","site_admin":false},"body":"Oops, re-tabbed and fixed the formatting. I think it was leftover tabs from the original `addressbook`.","created_at":"2016-10-19T08:19:22Z","updated_at":"2016-10-19T08:19:23Z","html_url":"https://github.com/CS2103AUG2016-F11-C3/main/pull/36#discussion_r84017951","pull_request_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/pulls/comments/84017951"},"html":{"href":"https://github.com/CS2103AUG2016-F11-C3/main/pull/36#discussion_r84017951"},"pull_request":{"href":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/pulls/36","id":89925474,"html_url":"https://github.com/CS2103AUG2016-F11-C3/main/pull/36","diff_url":"https://github.com/CS2103AUG2016-F11-C3/main/pull/36.diff","patch_url":"https://github.com/CS2103AUG2016-F11-C3/main/pull/36.patch","issue_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/issues/36","number":36,"state":"open","locked":false,"title":"[Darren Wee] Implement DateTimeParser","user":{"login":"darrenwee","id":12949331,"avatar_url":"https://avatars.githubusercontent.com/u/12949331?v=3","gravatar_id":"","url":"https://api.github.com/users/darrenwee","html_url":"https://github.com/darrenwee","followers_url":"https://api.github.com/users/darrenwee/followers","following_url":"https://api.github.com/users/darrenwee/following{/other_user}","gists_url":"https://api.github.com/users/darrenwee/gists{/gist_id}","starred_url":"https://api.github.com/users/darrenwee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrenwee/subscriptions","organizations_url":"https://api.github.com/users/darrenwee/orgs","repos_url":"https://api.github.com/users/darrenwee/repos","events_url":"https://api.github.com/users/darrenwee/events{/privacy}","received_events_url":"https://api.github.com/users/darrenwee/received_events","type":"User","site_admin":false},"body":"1. Implements `DateTimerParser` for extracting `LocalDateTime`s from user input.\r\n2. Changed `Item` to non-abstract class.\r\n3. Added `startDate`, `endDate`, `isRecurring`, `recurInterval` and `recurEndDate` members to `Item`.\r\n4. Added constructors for `Item` with `startDate` and `endDate`.\r\n5. `natty` has been abandoned in favor of `prettytime`, `build.gradle` updated as well.\r\n\r\nRecurring events not fully supported yet, still need to update `Item` and `DateTimeParser` for linked-list and calculation of recur interval respectively.\r\n\r\nPartially fulfils #14 \r\n","created_at":"2016-10-19T01:00:10Z","updated_at":"2016-10-19T08:19:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"14a8c716ca356fb17351d32905d353da96631876","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/milestones/2","html_url":"https://github.com/CS2103AUG2016-F11-C3/main/milestones/v0.3","labels_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/milestones/2/labels","id":2054081,"number":2,"title":"v0.3","description":"","creator":{"login":"craaaa","id":12183503,"avatar_url":"https://avatars.githubusercontent.com/u/12183503?v=3","gravatar_id":"","url":"https://api.github.com/users/craaaa","html_url":"https://github.com/craaaa","followers_url":"https://api.github.com/users/craaaa/followers","following_url":"https://api.github.com/users/craaaa/following{/other_user}","gists_url":"https://api.github.com/users/craaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/craaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craaaa/subscriptions","organizations_url":"https://api.github.com/users/craaaa/orgs","repos_url":"https://api.github.com/users/craaaa/repos","events_url":"https://api.github.com/users/craaaa/events{/privacy}","received_events_url":"https://api.github.com/users/craaaa/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":0,"state":"open","created_at":"2016-10-07T07:41:28Z","updated_at":"2016-10-19T04:51:59Z","due_on":"2016-10-18T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/pulls/36/commits","review_comments_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/pulls/36/comments","review_comment_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/issues/36/comments","statuses_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/statuses/e5e03e9bed2719a749b20d7a26f67cdcc0195ec8","head":{"label":"CS2103AUG2016-F11-C3:implement-datetime-parser","ref":"implement-datetime-parser","sha":"e5e03e9bed2719a749b20d7a26f67cdcc0195ec8","user":{"login":"CS2103AUG2016-F11-C3","id":22447730,"avatar_url":"https://avatars.githubusercontent.com/u/22447730?v=3","gravatar_id":"","url":"https://api.github.com/users/CS2103AUG2016-F11-C3","html_url":"https://github.com/CS2103AUG2016-F11-C3","followers_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/followers","following_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/following{/other_user}","gists_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/gists{/gist_id}","starred_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/subscriptions","organizations_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/orgs","repos_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/repos","events_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/events{/privacy}","received_events_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/received_events","type":"Organization","site_admin":false},"repo":{"id":70158095,"name":"main","full_name":"CS2103AUG2016-F11-C3/main","owner":{"login":"CS2103AUG2016-F11-C3","id":22447730,"avatar_url":"https://avatars.githubusercontent.com/u/22447730?v=3","gravatar_id":"","url":"https://api.github.com/users/CS2103AUG2016-F11-C3","html_url":"https://github.com/CS2103AUG2016-F11-C3","followers_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/followers","following_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/following{/other_user}","gists_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/gists{/gist_id}","starred_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/subscriptions","organizations_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/orgs","repos_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/repos","events_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/events{/privacy}","received_events_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CS2103AUG2016-F11-C3/main","description":"Sudowudo: Command Line Productivity!","fork":true,"url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main","forks_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/forks","keys_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/teams","hooks_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/hooks","issue_events_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/issues/events{/number}","events_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/events","assignees_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/assignees{/user}","branches_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/branches{/branch}","tags_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/tags","blobs_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/statuses/{sha}","languages_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/languages","stargazers_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/stargazers","contributors_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/contributors","subscribers_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/subscribers","subscription_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/subscription","commits_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/contents/{+path}","compare_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/merges","archive_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/downloads","issues_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/issues{/number}","pulls_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/pulls{/number}","milestones_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/milestones{/number}","notifications_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/labels{/name}","releases_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/releases{/id}","deployments_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/deployments","created_at":"2016-10-06T13:46:20Z","updated_at":"2016-10-14T12:42:26Z","pushed_at":"2016-10-19T08:18:58Z","git_url":"git://github.com/CS2103AUG2016-F11-C3/main.git","ssh_url":"git@github.com:CS2103AUG2016-F11-C3/main.git","clone_url":"https://github.com/CS2103AUG2016-F11-C3/main.git","svn_url":"https://github.com/CS2103AUG2016-F11-C3/main","homepage":"","size":2611,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":1,"default_branch":"master"}},"base":{"label":"CS2103AUG2016-F11-C3:master","ref":"master","sha":"9b4c70cc74a67fc7f6160368c1d2f5a845eb3a0f","user":{"login":"CS2103AUG2016-F11-C3","id":22447730,"avatar_url":"https://avatars.githubusercontent.com/u/22447730?v=3","gravatar_id":"","url":"https://api.github.com/users/CS2103AUG2016-F11-C3","html_url":"https://github.com/CS2103AUG2016-F11-C3","followers_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/followers","following_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/following{/other_user}","gists_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/gists{/gist_id}","starred_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/subscriptions","organizations_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/orgs","repos_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/repos","events_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/events{/privacy}","received_events_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/received_events","type":"Organization","site_admin":false},"repo":{"id":70158095,"name":"main","full_name":"CS2103AUG2016-F11-C3/main","owner":{"login":"CS2103AUG2016-F11-C3","id":22447730,"avatar_url":"https://avatars.githubusercontent.com/u/22447730?v=3","gravatar_id":"","url":"https://api.github.com/users/CS2103AUG2016-F11-C3","html_url":"https://github.com/CS2103AUG2016-F11-C3","followers_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/followers","following_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/following{/other_user}","gists_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/gists{/gist_id}","starred_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/subscriptions","organizations_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/orgs","repos_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/repos","events_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/events{/privacy}","received_events_url":"https://api.github.com/users/CS2103AUG2016-F11-C3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CS2103AUG2016-F11-C3/main","description":"Sudowudo: Command Line Productivity!","fork":true,"url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main","forks_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/forks","keys_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/teams","hooks_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/hooks","issue_events_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/issues/events{/number}","events_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/events","assignees_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/assignees{/user}","branches_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/branches{/branch}","tags_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/tags","blobs_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/statuses/{sha}","languages_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/languages","stargazers_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/stargazers","contributors_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/contributors","subscribers_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/subscribers","subscription_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/subscription","commits_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/contents/{+path}","compare_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/merges","archive_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/downloads","issues_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/issues{/number}","pulls_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/pulls{/number}","milestones_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/milestones{/number}","notifications_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/labels{/name}","releases_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/releases{/id}","deployments_url":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/deployments","created_at":"2016-10-06T13:46:20Z","updated_at":"2016-10-14T12:42:26Z","pushed_at":"2016-10-19T08:18:58Z","git_url":"git://github.com/CS2103AUG2016-F11-C3/main.git","ssh_url":"git@github.com:CS2103AUG2016-F11-C3/main.git","clone_url":"https://github.com/CS2103AUG2016-F11-C3/main.git","svn_url":"https://github.com/CS2103AUG2016-F11-C3/main","homepage":"","size":2611,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/pulls/36"},"html":{"href":"https://github.com/CS2103AUG2016-F11-C3/main/pull/36"},"issue":{"href":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/issues/36"},"comments":{"href":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/CS2103AUG2016-F11-C3/main/statuses/e5e03e9bed2719a749b20d7a26f67cdcc0195ec8"}}}}
{"actor":{"display_login":"darrenwee"}}