GitHub PullRequestReviewCommentEvent at 2014-07-20 22:38:58
Repository: HearthStats.net-Uploader
Actor: gtch
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/pulls/comments/15152430","id":15152430,"diff_hunk":"@@ -0,0 +1,110 @@\n+package net.hearthstats.config\n+\n+import java.util.prefs.Preferences\n+\n+import grizzled.slf4j.Logging\n+\n+/**\n+ * Stores and retrieves configuration for the current user by using the Java 7 Preferences API.\n+ * Config changes made are immediately stored by the operating system for the current user.\n+ *\n+ * This is the standard implementation of Config that it used when HearthStats Companion is being run as an app\n+ * (as opposed to unit tests which may use a different Config implementation).\n+ */\n+class UserConfig extends Config with Logging {\n+  import UserConfig._\n+\n+  val notifyOverall = config(\"notify.overall\", true)\n+  val notifyHsFound = config(\"notify.hsfound\", true)\n+  val notifyHsClosed = config(\"notify.hsclosed\", true)\n+  val notifyScreen = config(\"notify.screen\", true)\n+  val notifyMode = config(\"notify.mode\", true)\n+  val notifyDeck = config(\"notify.deck\", true)\n+  val notifyTurn = config(\"notify.turn\", true)\n+\n+  val notificationType = enumConfig(\"notify.osx\", NotificationType.HEARTHSTATS)\n+\n+  val monitoringMethod = enumConfig(\"notify.osx\", MonitoringMethod.getDefault)","path":"uploader/src/main/scala/net/hearthstats/config/UserConfig.scala","position":27,"original_position":27,"commit_id":"1d71b3cd47a1c3b432ae7892b0e1b603abfe80ed","original_commit_id":"1d71b3cd47a1c3b432ae7892b0e1b603abfe80ed","user":{"login":"gtch","id":1667484,"avatar_url":"https://avatars.githubusercontent.com/u/1667484?","gravatar_id":"661be3685ce95cf9b6d9787221c69c4f","url":"https://api.github.com/users/gtch","html_url":"https://github.com/gtch","followers_url":"https://api.github.com/users/gtch/followers","following_url":"https://api.github.com/users/gtch/following{/other_user}","gists_url":"https://api.github.com/users/gtch/gists{/gist_id}","starred_url":"https://api.github.com/users/gtch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtch/subscriptions","organizations_url":"https://api.github.com/users/gtch/orgs","repos_url":"https://api.github.com/users/gtch/repos","events_url":"https://api.github.com/users/gtch/events{/privacy}","received_events_url":"https://api.github.com/users/gtch/received_events","type":"User","site_admin":false},"body":"The \"notify.osx\" looks like a copy-paste error, I'll change that to \"hs.monitoringmethod\"","created_at":"2014-07-20T22:38:58Z","updated_at":"2014-07-20T22:38:58Z","html_url":"https://github.com/HearthStats/HearthStats.net-Uploader/pull/487#discussion_r15152430","pull_request_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/pulls/487","_links":{"self":{"href":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/pulls/comments/15152430"},"html":{"href":"https://github.com/HearthStats/HearthStats.net-Uploader/pull/487#discussion_r15152430"},"pull_request":{"href":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/pulls/487"}}},"pull_request":{"url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/pulls/487","id":18634055,"html_url":"https://github.com/HearthStats/HearthStats.net-Uploader/pull/487","diff_url":"https://github.com/HearthStats/HearthStats.net-Uploader/pull/487.diff","patch_url":"https://github.com/HearthStats/HearthStats.net-Uploader/pull/487.patch","issue_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/issues/487","number":487,"state":"open","title":"Config","user":{"login":"tyrcho","id":700260,"avatar_url":"https://avatars.githubusercontent.com/u/700260?","gravatar_id":"382fc0f9d125d0c100a19200eb45b24d","url":"https://api.github.com/users/tyrcho","html_url":"https://github.com/tyrcho","followers_url":"https://api.github.com/users/tyrcho/followers","following_url":"https://api.github.com/users/tyrcho/following{/other_user}","gists_url":"https://api.github.com/users/tyrcho/gists{/gist_id}","starred_url":"https://api.github.com/users/tyrcho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyrcho/subscriptions","organizations_url":"https://api.github.com/users/tyrcho/orgs","repos_url":"https://api.github.com/users/tyrcho/repos","events_url":"https://api.github.com/users/tyrcho/events{/privacy}","received_events_url":"https://api.github.com/users/tyrcho/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-07-20T21:58:46Z","updated_at":"2014-07-20T22:38:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e4e4ad7a76ef6b699f83721c5492491a041525e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/pulls/487/commits","review_comments_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/pulls/487/comments","review_comment_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/pulls/comments/{number}","comments_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/issues/487/comments","statuses_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/statuses/1d71b3cd47a1c3b432ae7892b0e1b603abfe80ed","head":{"label":"HearthStats:config","ref":"config","sha":"1d71b3cd47a1c3b432ae7892b0e1b603abfe80ed","user":{"login":"HearthStats","id":6345817,"avatar_url":"https://avatars.githubusercontent.com/u/6345817?","gravatar_id":"822179aec5aa88bd19d26adbbef43f0d","url":"https://api.github.com/users/HearthStats","html_url":"https://github.com/HearthStats","followers_url":"https://api.github.com/users/HearthStats/followers","following_url":"https://api.github.com/users/HearthStats/following{/other_user}","gists_url":"https://api.github.com/users/HearthStats/gists{/gist_id}","starred_url":"https://api.github.com/users/HearthStats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HearthStats/subscriptions","organizations_url":"https://api.github.com/users/HearthStats/orgs","repos_url":"https://api.github.com/users/HearthStats/repos","events_url":"https://api.github.com/users/HearthStats/events{/privacy}","received_events_url":"https://api.github.com/users/HearthStats/received_events","type":"Organization","site_admin":false},"repo":{"id":16130267,"name":"HearthStats.net-Uploader","full_name":"HearthStats/HearthStats.net-Uploader","owner":{"login":"HearthStats","id":6345817,"avatar_url":"https://avatars.githubusercontent.com/u/6345817?","gravatar_id":"822179aec5aa88bd19d26adbbef43f0d","url":"https://api.github.com/users/HearthStats","html_url":"https://github.com/HearthStats","followers_url":"https://api.github.com/users/HearthStats/followers","following_url":"https://api.github.com/users/HearthStats/following{/other_user}","gists_url":"https://api.github.com/users/HearthStats/gists{/gist_id}","starred_url":"https://api.github.com/users/HearthStats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HearthStats/subscriptions","organizations_url":"https://api.github.com/users/HearthStats/orgs","repos_url":"https://api.github.com/users/HearthStats/repos","events_url":"https://api.github.com/users/HearthStats/events{/privacy}","received_events_url":"https://api.github.com/users/HearthStats/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HearthStats/HearthStats.net-Uploader","description":"Auto uploader for HearthStats.net","fork":false,"url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader","forks_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/forks","keys_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/teams","hooks_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/hooks","issue_events_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/issues/events{/number}","events_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/events","assignees_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/assignees{/user}","branches_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/branches{/branch}","tags_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/tags","blobs_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/git/refs{/sha}","trees_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/statuses/{sha}","languages_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/languages","stargazers_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/stargazers","contributors_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/contributors","subscribers_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/subscribers","subscription_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/subscription","commits_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/commits{/sha}","git_commits_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/git/commits{/sha}","comments_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/comments{/number}","issue_comment_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/issues/comments/{number}","contents_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/contents/{+path}","compare_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/merges","archive_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/downloads","issues_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/issues{/number}","pulls_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/pulls{/number}","milestones_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/milestones{/number}","notifications_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/labels{/name}","releases_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/releases{/id}","created_at":"2014-01-22T05:53:48Z","updated_at":"2014-07-05T00:22:41Z","pushed_at":"2014-07-20T22:16:13Z","git_url":"git://github.com/HearthStats/HearthStats.net-Uploader.git","ssh_url":"git@github.com:HearthStats/HearthStats.net-Uploader.git","clone_url":"https://github.com/HearthStats/HearthStats.net-Uploader.git","svn_url":"https://github.com/HearthStats/HearthStats.net-Uploader","homepage":null,"size":95928,"stargazers_count":72,"watchers_count":72,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":45,"mirror_url":null,"open_issues_count":178,"forks":45,"open_issues":178,"watchers":72,"default_branch":"master"}},"base":{"label":"HearthStats:master","ref":"master","sha":"25471bd9a6a118ab4e2bc43a9a18bf5694cb3763","user":{"login":"HearthStats","id":6345817,"avatar_url":"https://avatars.githubusercontent.com/u/6345817?","gravatar_id":"822179aec5aa88bd19d26adbbef43f0d","url":"https://api.github.com/users/HearthStats","html_url":"https://github.com/HearthStats","followers_url":"https://api.github.com/users/HearthStats/followers","following_url":"https://api.github.com/users/HearthStats/following{/other_user}","gists_url":"https://api.github.com/users/HearthStats/gists{/gist_id}","starred_url":"https://api.github.com/users/HearthStats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HearthStats/subscriptions","organizations_url":"https://api.github.com/users/HearthStats/orgs","repos_url":"https://api.github.com/users/HearthStats/repos","events_url":"https://api.github.com/users/HearthStats/events{/privacy}","received_events_url":"https://api.github.com/users/HearthStats/received_events","type":"Organization","site_admin":false},"repo":{"id":16130267,"name":"HearthStats.net-Uploader","full_name":"HearthStats/HearthStats.net-Uploader","owner":{"login":"HearthStats","id":6345817,"avatar_url":"https://avatars.githubusercontent.com/u/6345817?","gravatar_id":"822179aec5aa88bd19d26adbbef43f0d","url":"https://api.github.com/users/HearthStats","html_url":"https://github.com/HearthStats","followers_url":"https://api.github.com/users/HearthStats/followers","following_url":"https://api.github.com/users/HearthStats/following{/other_user}","gists_url":"https://api.github.com/users/HearthStats/gists{/gist_id}","starred_url":"https://api.github.com/users/HearthStats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HearthStats/subscriptions","organizations_url":"https://api.github.com/users/HearthStats/orgs","repos_url":"https://api.github.com/users/HearthStats/repos","events_url":"https://api.github.com/users/HearthStats/events{/privacy}","received_events_url":"https://api.github.com/users/HearthStats/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HearthStats/HearthStats.net-Uploader","description":"Auto uploader for HearthStats.net","fork":false,"url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader","forks_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/forks","keys_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/teams","hooks_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/hooks","issue_events_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/issues/events{/number}","events_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/events","assignees_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/assignees{/user}","branches_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/branches{/branch}","tags_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/tags","blobs_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/git/refs{/sha}","trees_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/statuses/{sha}","languages_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/languages","stargazers_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/stargazers","contributors_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/contributors","subscribers_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/subscribers","subscription_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/subscription","commits_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/commits{/sha}","git_commits_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/git/commits{/sha}","comments_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/comments{/number}","issue_comment_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/issues/comments/{number}","contents_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/contents/{+path}","compare_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/merges","archive_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/downloads","issues_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/issues{/number}","pulls_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/pulls{/number}","milestones_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/milestones{/number}","notifications_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/labels{/name}","releases_url":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/releases{/id}","created_at":"2014-01-22T05:53:48Z","updated_at":"2014-07-05T00:22:41Z","pushed_at":"2014-07-20T22:16:13Z","git_url":"git://github.com/HearthStats/HearthStats.net-Uploader.git","ssh_url":"git@github.com:HearthStats/HearthStats.net-Uploader.git","clone_url":"https://github.com/HearthStats/HearthStats.net-Uploader.git","svn_url":"https://github.com/HearthStats/HearthStats.net-Uploader","homepage":null,"size":95928,"stargazers_count":72,"watchers_count":72,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":45,"mirror_url":null,"open_issues_count":178,"forks":45,"open_issues":178,"watchers":72,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/pulls/487"},"html":{"href":"https://github.com/HearthStats/HearthStats.net-Uploader/pull/487"},"issue":{"href":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/issues/487"},"comments":{"href":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/issues/487/comments"},"review_comments":{"href":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/pulls/487/comments"},"review_comment":{"href":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/pulls/487/commits"},"statuses":{"href":"https://api.github.com/repos/HearthStats/HearthStats.net-Uploader/statuses/1d71b3cd47a1c3b432ae7892b0e1b603abfe80ed"}}}}