{"action":"created","comment":{"url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/comments/77963707","id":77963707,"diff_hunk":"@@ -0,0 +1,37 @@\n+package seedu.addressbook.data.tag;\n+\n+import seedu.addressbook.data.person.Person;\n+\n+/**\n+ * Contains the name of the tag removed/added and the name of the person.\n+ */\n+\n+public class Tagging {\n+\n+\tprivate String addOrDel;\n+\tprivate Person person;\n+\tprivate Tag tag;\n+\t\n+\t/**\n+\t * Constructs a Tagging with the given data.\n+\t * \n+\t * @param command\n+\t * @param person\n+\t * @param tag\n+\t */\n+\tpublic Tagging(String command, Person person, Tag tag) {\n+\t\tif (command.equals(\"add\")) {\n+\t\t\tthis.addOrDel = \"+\";\n+\t\t} else if (command.equals(\"delete\")) {\n+\t\t\tthis.addOrDel = \"-\";\n+\t\t}\n+\t\tthis.person = person;\n+\t\tthis.tag = tag;\n+\t}\n+\t\n+\t@Override\n+\tpublic String toString() {\n+\t\treturn addOrDel + \" \" +  person.getName().toString() + \" \" + tag.toString();\n+\t}","path":"src/seedu/addressbook/data/tag/Tagging.java","position":35,"original_position":35,"commit_id":"0411ca27cd44660226b5cfd3db1d5f7cc8e1bf36","original_commit_id":"0411ca27cd44660226b5cfd3db1d5f7cc8e1bf36","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":"don't need to call toString() explicitly, `just person.getName() + \" \" + ...` will do","created_at":"2016-09-08T08:20:44Z","updated_at":"2016-09-08T08:20:44Z","html_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/939#discussion_r77963707","pull_request_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/939","_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/comments/77963707"},"html":{"href":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/939#discussion_r77963707"},"pull_request":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/939"}}},"pull_request":{"url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/939","id":84076056,"html_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/939","diff_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/939.diff","patch_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/939.patch","issue_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/939","number":939,"state":"open","locked":false,"title":"[T4A5][T11-B3] Teh Chee Yeo","user":{"login":"cheo1994","id":19276345,"avatar_url":"https://avatars.githubusercontent.com/u/19276345?v=3","gravatar_id":"","url":"https://api.github.com/users/cheo1994","html_url":"https://github.com/cheo1994","followers_url":"https://api.github.com/users/cheo1994/followers","following_url":"https://api.github.com/users/cheo1994/following{/other_user}","gists_url":"https://api.github.com/users/cheo1994/gists{/gist_id}","starred_url":"https://api.github.com/users/cheo1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheo1994/subscriptions","organizations_url":"https://api.github.com/users/cheo1994/orgs","repos_url":"https://api.github.com/users/cheo1994/repos","events_url":"https://api.github.com/users/cheo1994/events{/privacy}","received_events_url":"https://api.github.com/users/cheo1994/received_events","type":"User","site_admin":false},"body":"I would like to create an ArrayList to store the taggings objects. This is to iterate through the whole ArrayList and print all the modifications but I am unsure where to store the ArrayList.\r\n\r\nReady for review.","created_at":"2016-09-06T07:56:30Z","updated_at":"2016-09-08T08:20:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5ca1dd2c68a9c92cd67a7dc77117eb014543d36","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/939/commits","review_comments_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/939/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/939/comments","statuses_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/statuses/0411ca27cd44660226b5cfd3db1d5f7cc8e1bf36","head":{"label":"cheo1994:T4A5","ref":"T4A5","sha":"0411ca27cd44660226b5cfd3db1d5f7cc8e1bf36","user":{"login":"cheo1994","id":19276345,"avatar_url":"https://avatars.githubusercontent.com/u/19276345?v=3","gravatar_id":"","url":"https://api.github.com/users/cheo1994","html_url":"https://github.com/cheo1994","followers_url":"https://api.github.com/users/cheo1994/followers","following_url":"https://api.github.com/users/cheo1994/following{/other_user}","gists_url":"https://api.github.com/users/cheo1994/gists{/gist_id}","starred_url":"https://api.github.com/users/cheo1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheo1994/subscriptions","organizations_url":"https://api.github.com/users/cheo1994/orgs","repos_url":"https://api.github.com/users/cheo1994/repos","events_url":"https://api.github.com/users/cheo1994/events{/privacy}","received_events_url":"https://api.github.com/users/cheo1994/received_events","type":"User","site_admin":false},"repo":{"id":66572741,"name":"addressbook-level2","full_name":"cheo1994/addressbook-level2","owner":{"login":"cheo1994","id":19276345,"avatar_url":"https://avatars.githubusercontent.com/u/19276345?v=3","gravatar_id":"","url":"https://api.github.com/users/cheo1994","html_url":"https://github.com/cheo1994","followers_url":"https://api.github.com/users/cheo1994/followers","following_url":"https://api.github.com/users/cheo1994/following{/other_user}","gists_url":"https://api.github.com/users/cheo1994/gists{/gist_id}","starred_url":"https://api.github.com/users/cheo1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheo1994/subscriptions","organizations_url":"https://api.github.com/users/cheo1994/orgs","repos_url":"https://api.github.com/users/cheo1994/repos","events_url":"https://api.github.com/users/cheo1994/events{/privacy}","received_events_url":"https://api.github.com/users/cheo1994/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cheo1994/addressbook-level2","description":"A Java sample application for students. An AddressBook application that uses OOP basics.","fork":true,"url":"https://api.github.com/repos/cheo1994/addressbook-level2","forks_url":"https://api.github.com/repos/cheo1994/addressbook-level2/forks","keys_url":"https://api.github.com/repos/cheo1994/addressbook-level2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cheo1994/addressbook-level2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cheo1994/addressbook-level2/teams","hooks_url":"https://api.github.com/repos/cheo1994/addressbook-level2/hooks","issue_events_url":"https://api.github.com/repos/cheo1994/addressbook-level2/issues/events{/number}","events_url":"https://api.github.com/repos/cheo1994/addressbook-level2/events","assignees_url":"https://api.github.com/repos/cheo1994/addressbook-level2/assignees{/user}","branches_url":"https://api.github.com/repos/cheo1994/addressbook-level2/branches{/branch}","tags_url":"https://api.github.com/repos/cheo1994/addressbook-level2/tags","blobs_url":"https://api.github.com/repos/cheo1994/addressbook-level2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cheo1994/addressbook-level2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cheo1994/addressbook-level2/git/refs{/sha}","trees_url":"https://api.github.com/repos/cheo1994/addressbook-level2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cheo1994/addressbook-level2/statuses/{sha}","languages_url":"https://api.github.com/repos/cheo1994/addressbook-level2/languages","stargazers_url":"https://api.github.com/repos/cheo1994/addressbook-level2/stargazers","contributors_url":"https://api.github.com/repos/cheo1994/addressbook-level2/contributors","subscribers_url":"https://api.github.com/repos/cheo1994/addressbook-level2/subscribers","subscription_url":"https://api.github.com/repos/cheo1994/addressbook-level2/subscription","commits_url":"https://api.github.com/repos/cheo1994/addressbook-level2/commits{/sha}","git_commits_url":"https://api.github.com/repos/cheo1994/addressbook-level2/git/commits{/sha}","comments_url":"https://api.github.com/repos/cheo1994/addressbook-level2/comments{/number}","issue_comment_url":"https://api.github.com/repos/cheo1994/addressbook-level2/issues/comments{/number}","contents_url":"https://api.github.com/repos/cheo1994/addressbook-level2/contents/{+path}","compare_url":"https://api.github.com/repos/cheo1994/addressbook-level2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cheo1994/addressbook-level2/merges","archive_url":"https://api.github.com/repos/cheo1994/addressbook-level2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cheo1994/addressbook-level2/downloads","issues_url":"https://api.github.com/repos/cheo1994/addressbook-level2/issues{/number}","pulls_url":"https://api.github.com/repos/cheo1994/addressbook-level2/pulls{/number}","milestones_url":"https://api.github.com/repos/cheo1994/addressbook-level2/milestones{/number}","notifications_url":"https://api.github.com/repos/cheo1994/addressbook-level2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cheo1994/addressbook-level2/labels{/name}","releases_url":"https://api.github.com/repos/cheo1994/addressbook-level2/releases{/id}","deployments_url":"https://api.github.com/repos/cheo1994/addressbook-level2/deployments","created_at":"2016-08-25T15:58:57Z","updated_at":"2016-08-25T15:58:57Z","pushed_at":"2016-09-07T12:48:12Z","git_url":"git://github.com/cheo1994/addressbook-level2.git","ssh_url":"git@github.com:cheo1994/addressbook-level2.git","clone_url":"https://github.com/cheo1994/addressbook-level2.git","svn_url":"https://github.com/cheo1994/addressbook-level2","homepage":null,"size":2807,"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":"806840dc98bc01ac5d133bed4fd7b70ea1f8d57b","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-07T14:52:23Z","pushed_at":"2016-09-08T08:20:42Z","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":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":256,"mirror_url":null,"open_issues_count":861,"forks":256,"open_issues":861,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/939"},"html":{"href":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/939"},"issue":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/939"},"comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/939/comments"},"review_comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/939/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/939/commits"},"statuses":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/statuses/0411ca27cd44660226b5cfd3db1d5f7cc8e1bf36"}}}}
{"actor":{"display_login":"kychua"}}