{"action":"created","comment":{"url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/pulls/comments/238094319","pull_request_review_id":180557061,"id":238094319,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzODA5NDMxOQ==","diff_hunk":"@@ -82,6 +82,29 @@ public abstract void write(@NonNull String path, @NonNull String id, @NonNull Ob\n     public abstract <T> void read(@NonNull String path, @NonNull String id,\n                                   @NonNull ValueListener<T> listener, @NonNull Class<T> c);\n \n+    /**\n+     * Perform changes every time an update is done in the database.\n+     * It returns the new value using a listener.\n+     *\n+     * @param path     where to read the value.\n+     * @param id       the name of the value field.\n+     * @param listener the onDataChange method will be called at every change of the value if it\n+     *                 exists and onCancelled will be called otherwise.\n+     * @param c        the class of the value\n+     * @param <T>      the type of the value\n+     */\n+    public abstract <T> void listen(@NonNull String path, @NonNull String id,\n+                                    @NonNull ValueListener<T> listener, @NonNull Class<T> c);\n+\n+    /**\n+     * Removes a listener from a reference.\n+     *\n+     * @param listener the listener to be removed.\n+     * @param <T>      the type of the value.\n+     */\n+    public abstract <T> void deafen(@NonNull String path, @NonNull String id,","path":"app/src/main/java/ch/epfl/sweng/swenggolf/database/Database.java","position":33,"original_position":33,"commit_id":"6f19505d9c8739fd6a7bf9a9cd5c97e6578f562d","original_commit_id":"6f19505d9c8739fd6a7bf9a9cd5c97e6578f562d","user":{"login":"ElsaWeb","id":30733806,"node_id":"MDQ6VXNlcjMwNzMzODA2","avatar_url":"https://avatars0.githubusercontent.com/u/30733806?v=4","gravatar_id":"","url":"https://api.github.com/users/ElsaWeb","html_url":"https://github.com/ElsaWeb","followers_url":"https://api.github.com/users/ElsaWeb/followers","following_url":"https://api.github.com/users/ElsaWeb/following{/other_user}","gists_url":"https://api.github.com/users/ElsaWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/ElsaWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElsaWeb/subscriptions","organizations_url":"https://api.github.com/users/ElsaWeb/orgs","repos_url":"https://api.github.com/users/ElsaWeb/repos","events_url":"https://api.github.com/users/ElsaWeb/events{/privacy}","received_events_url":"https://api.github.com/users/ElsaWeb/received_events","type":"User","site_admin":false},"body":"No, I really like it! I might be tired but it made me laugh","created_at":"2018-12-02T11:18:55Z","updated_at":"2018-12-02T11:18:55Z","html_url":"https://github.com/SwengGolfTeam/Sweng_Golf/pull/175#discussion_r238094319","pull_request_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/pulls/175","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/pulls/comments/238094319"},"html":{"href":"https://github.com/SwengGolfTeam/Sweng_Golf/pull/175#discussion_r238094319"},"pull_request":{"href":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/pulls/175"}},"in_reply_to_id":238090187},"pull_request":{"url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/pulls/175","id":235198641,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1MTk4NjQx","html_url":"https://github.com/SwengGolfTeam/Sweng_Golf/pull/175","diff_url":"https://github.com/SwengGolfTeam/Sweng_Golf/pull/175.diff","patch_url":"https://github.com/SwengGolfTeam/Sweng_Golf/pull/175.patch","issue_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/issues/175","number":175,"state":"open","locked":false,"title":"Fb value updates","user":{"login":"udamiano","id":36622907,"node_id":"MDQ6VXNlcjM2NjIyOTA3","avatar_url":"https://avatars0.githubusercontent.com/u/36622907?v=4","gravatar_id":"","url":"https://api.github.com/users/udamiano","html_url":"https://github.com/udamiano","followers_url":"https://api.github.com/users/udamiano/followers","following_url":"https://api.github.com/users/udamiano/following{/other_user}","gists_url":"https://api.github.com/users/udamiano/gists{/gist_id}","starred_url":"https://api.github.com/users/udamiano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/udamiano/subscriptions","organizations_url":"https://api.github.com/users/udamiano/orgs","repos_url":"https://api.github.com/users/udamiano/repos","events_url":"https://api.github.com/users/udamiano/events{/privacy}","received_events_url":"https://api.github.com/users/udamiano/received_events","type":"User","site_admin":false},"body":"Answers on an offer are now updated on every change. The database offers the possibility to listen for changes.","created_at":"2018-12-01T15:14:13Z","updated_at":"2018-12-02T11:18:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2272dd42b7520eb9484eb8f02c8b4c695052516","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/pulls/175/commits","review_comments_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/pulls/175/comments","review_comment_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/issues/175/comments","statuses_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/statuses/6f19505d9c8739fd6a7bf9a9cd5c97e6578f562d","head":{"label":"SwengGolfTeam:fb-value-updates","ref":"fb-value-updates","sha":"6f19505d9c8739fd6a7bf9a9cd5c97e6578f562d","user":{"login":"SwengGolfTeam","id":44231129,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MjMxMTI5","avatar_url":"https://avatars1.githubusercontent.com/u/44231129?v=4","gravatar_id":"","url":"https://api.github.com/users/SwengGolfTeam","html_url":"https://github.com/SwengGolfTeam","followers_url":"https://api.github.com/users/SwengGolfTeam/followers","following_url":"https://api.github.com/users/SwengGolfTeam/following{/other_user}","gists_url":"https://api.github.com/users/SwengGolfTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/SwengGolfTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwengGolfTeam/subscriptions","organizations_url":"https://api.github.com/users/SwengGolfTeam/orgs","repos_url":"https://api.github.com/users/SwengGolfTeam/repos","events_url":"https://api.github.com/users/SwengGolfTeam/events{/privacy}","received_events_url":"https://api.github.com/users/SwengGolfTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":150414453,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA0MTQ0NTM=","name":"Sweng_Golf","full_name":"SwengGolfTeam/Sweng_Golf","private":false,"owner":{"login":"SwengGolfTeam","id":44231129,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MjMxMTI5","avatar_url":"https://avatars1.githubusercontent.com/u/44231129?v=4","gravatar_id":"","url":"https://api.github.com/users/SwengGolfTeam","html_url":"https://github.com/SwengGolfTeam","followers_url":"https://api.github.com/users/SwengGolfTeam/followers","following_url":"https://api.github.com/users/SwengGolfTeam/following{/other_user}","gists_url":"https://api.github.com/users/SwengGolfTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/SwengGolfTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwengGolfTeam/subscriptions","organizations_url":"https://api.github.com/users/SwengGolfTeam/orgs","repos_url":"https://api.github.com/users/SwengGolfTeam/repos","events_url":"https://api.github.com/users/SwengGolfTeam/events{/privacy}","received_events_url":"https://api.github.com/users/SwengGolfTeam/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SwengGolfTeam/Sweng_Golf","description":null,"fork":false,"url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf","forks_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/forks","keys_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/teams","hooks_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/hooks","issue_events_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/issues/events{/number}","events_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/events","assignees_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/assignees{/user}","branches_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/branches{/branch}","tags_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/tags","blobs_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/git/refs{/sha}","trees_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/statuses/{sha}","languages_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/languages","stargazers_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/stargazers","contributors_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/contributors","subscribers_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/subscribers","subscription_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/subscription","commits_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/commits{/sha}","git_commits_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/git/commits{/sha}","comments_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/comments{/number}","issue_comment_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/issues/comments{/number}","contents_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/contents/{+path}","compare_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/merges","archive_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/downloads","issues_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/issues{/number}","pulls_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/pulls{/number}","milestones_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/milestones{/number}","notifications_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/labels{/name}","releases_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/releases{/id}","deployments_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/deployments","created_at":"2018-09-26T11:15:43Z","updated_at":"2018-11-28T10:50:33Z","pushed_at":"2018-12-02T07:56:45Z","git_url":"git://github.com/SwengGolfTeam/Sweng_Golf.git","ssh_url":"git@github.com:SwengGolfTeam/Sweng_Golf.git","clone_url":"https://github.com/SwengGolfTeam/Sweng_Golf.git","svn_url":"https://github.com/SwengGolfTeam/Sweng_Golf","homepage":null,"size":3058,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":13,"license":null,"forks":1,"open_issues":13,"watchers":5,"default_branch":"master"}},"base":{"label":"SwengGolfTeam:master","ref":"master","sha":"f3fb711a6d7f85246192da4825343457eadbac25","user":{"login":"SwengGolfTeam","id":44231129,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MjMxMTI5","avatar_url":"https://avatars1.githubusercontent.com/u/44231129?v=4","gravatar_id":"","url":"https://api.github.com/users/SwengGolfTeam","html_url":"https://github.com/SwengGolfTeam","followers_url":"https://api.github.com/users/SwengGolfTeam/followers","following_url":"https://api.github.com/users/SwengGolfTeam/following{/other_user}","gists_url":"https://api.github.com/users/SwengGolfTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/SwengGolfTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwengGolfTeam/subscriptions","organizations_url":"https://api.github.com/users/SwengGolfTeam/orgs","repos_url":"https://api.github.com/users/SwengGolfTeam/repos","events_url":"https://api.github.com/users/SwengGolfTeam/events{/privacy}","received_events_url":"https://api.github.com/users/SwengGolfTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":150414453,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA0MTQ0NTM=","name":"Sweng_Golf","full_name":"SwengGolfTeam/Sweng_Golf","private":false,"owner":{"login":"SwengGolfTeam","id":44231129,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MjMxMTI5","avatar_url":"https://avatars1.githubusercontent.com/u/44231129?v=4","gravatar_id":"","url":"https://api.github.com/users/SwengGolfTeam","html_url":"https://github.com/SwengGolfTeam","followers_url":"https://api.github.com/users/SwengGolfTeam/followers","following_url":"https://api.github.com/users/SwengGolfTeam/following{/other_user}","gists_url":"https://api.github.com/users/SwengGolfTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/SwengGolfTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwengGolfTeam/subscriptions","organizations_url":"https://api.github.com/users/SwengGolfTeam/orgs","repos_url":"https://api.github.com/users/SwengGolfTeam/repos","events_url":"https://api.github.com/users/SwengGolfTeam/events{/privacy}","received_events_url":"https://api.github.com/users/SwengGolfTeam/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SwengGolfTeam/Sweng_Golf","description":null,"fork":false,"url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf","forks_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/forks","keys_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/teams","hooks_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/hooks","issue_events_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/issues/events{/number}","events_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/events","assignees_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/assignees{/user}","branches_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/branches{/branch}","tags_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/tags","blobs_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/git/refs{/sha}","trees_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/statuses/{sha}","languages_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/languages","stargazers_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/stargazers","contributors_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/contributors","subscribers_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/subscribers","subscription_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/subscription","commits_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/commits{/sha}","git_commits_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/git/commits{/sha}","comments_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/comments{/number}","issue_comment_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/issues/comments{/number}","contents_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/contents/{+path}","compare_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/merges","archive_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/downloads","issues_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/issues{/number}","pulls_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/pulls{/number}","milestones_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/milestones{/number}","notifications_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/labels{/name}","releases_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/releases{/id}","deployments_url":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/deployments","created_at":"2018-09-26T11:15:43Z","updated_at":"2018-11-28T10:50:33Z","pushed_at":"2018-12-02T07:56:45Z","git_url":"git://github.com/SwengGolfTeam/Sweng_Golf.git","ssh_url":"git@github.com:SwengGolfTeam/Sweng_Golf.git","clone_url":"https://github.com/SwengGolfTeam/Sweng_Golf.git","svn_url":"https://github.com/SwengGolfTeam/Sweng_Golf","homepage":null,"size":3058,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":13,"license":null,"forks":1,"open_issues":13,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/pulls/175"},"html":{"href":"https://github.com/SwengGolfTeam/Sweng_Golf/pull/175"},"issue":{"href":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/issues/175"},"comments":{"href":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/issues/175/comments"},"review_comments":{"href":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/pulls/175/comments"},"review_comment":{"href":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/pulls/175/commits"},"statuses":{"href":"https://api.github.com/repos/SwengGolfTeam/Sweng_Golf/statuses/6f19505d9c8739fd6a7bf9a9cd5c97e6578f562d"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ElsaWeb"}}