{"action":"created","comment":{"url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/comments/78063536","id":78063536,"diff_hunk":"@@ -0,0 +1,35 @@\n+package seedu.addressbook.data;\n+\n+import java.util.ArrayList;\n+\n+import seedu.addressbook.data.person.Person;\n+import seedu.addressbook.data.tag.Tag;\n+\n+public class Tagging {\n+\t\n+\tprivate Person person;\n+\tprivate ArrayList<String> tagHistory;\n+\t\n+\tpublic Tagging(Person person) {\n+\t\tthis.person = person;\n+\t\ttagHistory = new ArrayList<String>();\n+\t}\n+\t\n+\tpublic void addTagHistory(Tag tag) {\n+\t\ttagHistory.add(\"+\" + person.getName().toString() + \"[\" + tag + \"]\");\n+\t}\n+\t\n+\tpublic void removeTagHistory(Tag tag) {\n+\t\ttagHistory.add(\"-\" + person.getName().toString() + \"[\" + tag + \"]\");\n+\t}\n+\t\n+\t/*\n+\t * Print out the tag history of the person\n+\t */\n+\tpublic void showTagHistory(){\n+\t\tfor(int i = 0; i < tagHistory.size(); i++){\n+\t\t\tSystem.out.println(tagHistory.get(i));\n+\t\t}","path":"src/seedu/addressbook/data/Tagging.java","position":32,"original_position":32,"commit_id":"f885420089aada8cbfa9000d1cc0969dd62a4c6f","original_commit_id":"f885420089aada8cbfa9000d1cc0969dd62a4c6f","user":{"login":"kychua","id":7569990,"avatar_url":"https://avatars.githubusercontent.com/u/7569990?v=3","gravatar_id":"","url":"https://api.github.com/users/kychua","html_url":"https://github.com/kychua","followers_url":"https://api.github.com/users/kychua/followers","following_url":"https://api.github.com/users/kychua/following{/other_user}","gists_url":"https://api.github.com/users/kychua/gists{/gist_id}","starred_url":"https://api.github.com/users/kychua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kychua/subscriptions","organizations_url":"https://api.github.com/users/kychua/orgs","repos_url":"https://api.github.com/users/kychua/repos","events_url":"https://api.github.com/users/kychua/events{/privacy}","received_events_url":"https://api.github.com/users/kychua/received_events","type":"User","site_admin":false},"body":"printing shouldn't be done in this class","created_at":"2016-09-08T18:32:37Z","updated_at":"2016-09-08T18:32:37Z","html_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/770#discussion_r78063536","pull_request_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/770","_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/comments/78063536"},"html":{"href":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/770#discussion_r78063536"},"pull_request":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/770"}}},"pull_request":{"url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/770","id":83915944,"html_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/770","diff_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/770.diff","patch_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/770.patch","issue_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/770","number":770,"state":"open","locked":false,"title":"[T4A5][T11-B3] Tan Hong Yu","user":{"login":"hongyuhy","id":21097132,"avatar_url":"https://avatars.githubusercontent.com/u/21097132?v=3","gravatar_id":"","url":"https://api.github.com/users/hongyuhy","html_url":"https://github.com/hongyuhy","followers_url":"https://api.github.com/users/hongyuhy/followers","following_url":"https://api.github.com/users/hongyuhy/following{/other_user}","gists_url":"https://api.github.com/users/hongyuhy/gists{/gist_id}","starred_url":"https://api.github.com/users/hongyuhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hongyuhy/subscriptions","organizations_url":"https://api.github.com/users/hongyuhy/orgs","repos_url":"https://api.github.com/users/hongyuhy/repos","events_url":"https://api.github.com/users/hongyuhy/events{/privacy}","received_events_url":"https://api.github.com/users/hongyuhy/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-04T07:39:16Z","updated_at":"2016-09-08T18:32:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b901c6b4974f269e258a998ae269afa3869fbda9","assignee":{"login":"kychua","id":7569990,"avatar_url":"https://avatars.githubusercontent.com/u/7569990?v=3","gravatar_id":"","url":"https://api.github.com/users/kychua","html_url":"https://github.com/kychua","followers_url":"https://api.github.com/users/kychua/followers","following_url":"https://api.github.com/users/kychua/following{/other_user}","gists_url":"https://api.github.com/users/kychua/gists{/gist_id}","starred_url":"https://api.github.com/users/kychua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kychua/subscriptions","organizations_url":"https://api.github.com/users/kychua/orgs","repos_url":"https://api.github.com/users/kychua/repos","events_url":"https://api.github.com/users/kychua/events{/privacy}","received_events_url":"https://api.github.com/users/kychua/received_events","type":"User","site_admin":false},"assignees":[{"login":"kychua","id":7569990,"avatar_url":"https://avatars.githubusercontent.com/u/7569990?v=3","gravatar_id":"","url":"https://api.github.com/users/kychua","html_url":"https://github.com/kychua","followers_url":"https://api.github.com/users/kychua/followers","following_url":"https://api.github.com/users/kychua/following{/other_user}","gists_url":"https://api.github.com/users/kychua/gists{/gist_id}","starred_url":"https://api.github.com/users/kychua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kychua/subscriptions","organizations_url":"https://api.github.com/users/kychua/orgs","repos_url":"https://api.github.com/users/kychua/repos","events_url":"https://api.github.com/users/kychua/events{/privacy}","received_events_url":"https://api.github.com/users/kychua/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/770/commits","review_comments_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/770/comments","review_comment_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/770/comments","statuses_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/statuses/f885420089aada8cbfa9000d1cc0969dd62a4c6f","head":{"label":"hongyuhy:T4A5","ref":"T4A5","sha":"f885420089aada8cbfa9000d1cc0969dd62a4c6f","user":{"login":"hongyuhy","id":21097132,"avatar_url":"https://avatars.githubusercontent.com/u/21097132?v=3","gravatar_id":"","url":"https://api.github.com/users/hongyuhy","html_url":"https://github.com/hongyuhy","followers_url":"https://api.github.com/users/hongyuhy/followers","following_url":"https://api.github.com/users/hongyuhy/following{/other_user}","gists_url":"https://api.github.com/users/hongyuhy/gists{/gist_id}","starred_url":"https://api.github.com/users/hongyuhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hongyuhy/subscriptions","organizations_url":"https://api.github.com/users/hongyuhy/orgs","repos_url":"https://api.github.com/users/hongyuhy/repos","events_url":"https://api.github.com/users/hongyuhy/events{/privacy}","received_events_url":"https://api.github.com/users/hongyuhy/received_events","type":"User","site_admin":false},"repo":{"id":66703252,"name":"addressbook-level2","full_name":"hongyuhy/addressbook-level2","owner":{"login":"hongyuhy","id":21097132,"avatar_url":"https://avatars.githubusercontent.com/u/21097132?v=3","gravatar_id":"","url":"https://api.github.com/users/hongyuhy","html_url":"https://github.com/hongyuhy","followers_url":"https://api.github.com/users/hongyuhy/followers","following_url":"https://api.github.com/users/hongyuhy/following{/other_user}","gists_url":"https://api.github.com/users/hongyuhy/gists{/gist_id}","starred_url":"https://api.github.com/users/hongyuhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hongyuhy/subscriptions","organizations_url":"https://api.github.com/users/hongyuhy/orgs","repos_url":"https://api.github.com/users/hongyuhy/repos","events_url":"https://api.github.com/users/hongyuhy/events{/privacy}","received_events_url":"https://api.github.com/users/hongyuhy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hongyuhy/addressbook-level2","description":"A Java sample application for students. An AddressBook application that uses OOP basics.","fork":true,"url":"https://api.github.com/repos/hongyuhy/addressbook-level2","forks_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/forks","keys_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/teams","hooks_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/hooks","issue_events_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/issues/events{/number}","events_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/events","assignees_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/assignees{/user}","branches_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/branches{/branch}","tags_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/tags","blobs_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/git/refs{/sha}","trees_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/statuses/{sha}","languages_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/languages","stargazers_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/stargazers","contributors_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/contributors","subscribers_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/subscribers","subscription_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/subscription","commits_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/commits{/sha}","git_commits_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/git/commits{/sha}","comments_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/comments{/number}","issue_comment_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/issues/comments{/number}","contents_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/contents/{+path}","compare_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/merges","archive_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/downloads","issues_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/issues{/number}","pulls_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/pulls{/number}","milestones_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/milestones{/number}","notifications_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/labels{/name}","releases_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/releases{/id}","deployments_url":"https://api.github.com/repos/hongyuhy/addressbook-level2/deployments","created_at":"2016-08-27T08:00:31Z","updated_at":"2016-08-27T08:00:32Z","pushed_at":"2016-09-04T07:39:35Z","git_url":"git://github.com/hongyuhy/addressbook-level2.git","ssh_url":"git@github.com:hongyuhy/addressbook-level2.git","clone_url":"https://github.com/hongyuhy/addressbook-level2.git","svn_url":"https://github.com/hongyuhy/addressbook-level2","homepage":null,"size":2787,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nus-cs2103-AY1617S1:master","ref":"master","sha":"371e577077a87d43e0e2710c1b0985e4bafa5e0b","user":{"login":"nus-cs2103-AY1617S1","id":20475842,"avatar_url":"https://avatars.githubusercontent.com/u/20475842?v=3","gravatar_id":"","url":"https://api.github.com/users/nus-cs2103-AY1617S1","html_url":"https://github.com/nus-cs2103-AY1617S1","followers_url":"https://api.github.com/users/nus-cs2103-AY1617S1/followers","following_url":"https://api.github.com/users/nus-cs2103-AY1617S1/following{/other_user}","gists_url":"https://api.github.com/users/nus-cs2103-AY1617S1/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-cs2103-AY1617S1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-cs2103-AY1617S1/subscriptions","organizations_url":"https://api.github.com/users/nus-cs2103-AY1617S1/orgs","repos_url":"https://api.github.com/users/nus-cs2103-AY1617S1/repos","events_url":"https://api.github.com/users/nus-cs2103-AY1617S1/events{/privacy}","received_events_url":"https://api.github.com/users/nus-cs2103-AY1617S1/received_events","type":"Organization","site_admin":false},"repo":{"id":66551047,"name":"addressbook-level2","full_name":"nus-cs2103-AY1617S1/addressbook-level2","owner":{"login":"nus-cs2103-AY1617S1","id":20475842,"avatar_url":"https://avatars.githubusercontent.com/u/20475842?v=3","gravatar_id":"","url":"https://api.github.com/users/nus-cs2103-AY1617S1","html_url":"https://github.com/nus-cs2103-AY1617S1","followers_url":"https://api.github.com/users/nus-cs2103-AY1617S1/followers","following_url":"https://api.github.com/users/nus-cs2103-AY1617S1/following{/other_user}","gists_url":"https://api.github.com/users/nus-cs2103-AY1617S1/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-cs2103-AY1617S1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-cs2103-AY1617S1/subscriptions","organizations_url":"https://api.github.com/users/nus-cs2103-AY1617S1/orgs","repos_url":"https://api.github.com/users/nus-cs2103-AY1617S1/repos","events_url":"https://api.github.com/users/nus-cs2103-AY1617S1/events{/privacy}","received_events_url":"https://api.github.com/users/nus-cs2103-AY1617S1/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2","description":"A Java sample application for students. An AddressBook application that uses OOP basics.","fork":true,"url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2","forks_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/forks","keys_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/teams","hooks_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/hooks","issue_events_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/events{/number}","events_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/events","assignees_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/assignees{/user}","branches_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/branches{/branch}","tags_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/tags","blobs_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/git/refs{/sha}","trees_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/statuses/{sha}","languages_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/languages","stargazers_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/stargazers","contributors_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/contributors","subscribers_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/subscribers","subscription_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/subscription","commits_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/commits{/sha}","git_commits_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/git/commits{/sha}","comments_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/comments{/number}","issue_comment_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/comments{/number}","contents_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/contents/{+path}","compare_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/merges","archive_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/downloads","issues_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues{/number}","pulls_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls{/number}","milestones_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/milestones{/number}","notifications_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/labels{/name}","releases_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/releases{/id}","deployments_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/deployments","created_at":"2016-08-25T11:09:03Z","updated_at":"2016-09-08T17:36:33Z","pushed_at":"2016-09-08T18:03:00Z","git_url":"git://github.com/nus-cs2103-AY1617S1/addressbook-level2.git","ssh_url":"git@github.com:nus-cs2103-AY1617S1/addressbook-level2.git","clone_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2.git","svn_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2","homepage":null,"size":33348,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":256,"mirror_url":null,"open_issues_count":906,"forks":256,"open_issues":906,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/770"},"html":{"href":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/770"},"issue":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/770"},"comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/770/comments"},"review_comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/770/comments"},"review_comment":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/770/commits"},"statuses":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/statuses/f885420089aada8cbfa9000d1cc0969dd62a4c6f"}}}}
{"actor":{"display_login":"kychua"}}