{"action":"created","comment":{"url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/pulls/comments/120528754","pull_request_review_id":41926960,"id":120528754,"diff_hunk":"@@ -1,36 +1,69 @@\n #include \"BatteryStateOfChargeService.h\"\n+#include \"BatteryData.h\"\n+#include <QDebug>\n \n namespace\n {\n     const double BATTERY_AMP_HOUR_CAPACITY = 123.0;\n+    const double HOUR_TO_MILLISECONDS = 36000000.0;\n }\n \n BatteryStateOfChargeService::BatteryStateOfChargeService(double initialStateOfChargePercent)\n : initialStateOfChargePercent_(initialStateOfChargePercent)\n {\n+    ampHoursUsed_ = BATTERY_AMP_HOUR_CAPACITY - ((initialStateOfChargePercent_ / 100) * BATTERY_AMP_HOUR_CAPACITY);\n }\n \n BatteryStateOfChargeService::~BatteryStateOfChargeService()\n {\n+\n }\n \n double BatteryStateOfChargeService::totalAmpHoursUsed() const\n {\n-    return 0.0;\n+    return ampHoursUsed_;\n }\n \n bool BatteryStateOfChargeService::isCharging() const\n {\n-    return false;\n+\n+    if(current_ > 0)\n+    {\n+        return false;\n+    }\n+","path":"Advanced-Recruit-Training/src/BatteryStateOfChargeService.cpp","position":36,"original_position":36,"commit_id":"ca7373032d133894d2d551ed64661cad45ecb8d7","original_commit_id":"ca7373032d133894d2d551ed64661cad45ecb8d7","user":{"login":"bill-luu","id":15304203,"avatar_url":"https://avatars2.githubusercontent.com/u/15304203?v=3","gravatar_id":"","url":"https://api.github.com/users/bill-luu","html_url":"https://github.com/bill-luu","followers_url":"https://api.github.com/users/bill-luu/followers","following_url":"https://api.github.com/users/bill-luu/following{/other_user}","gists_url":"https://api.github.com/users/bill-luu/gists{/gist_id}","starred_url":"https://api.github.com/users/bill-luu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bill-luu/subscriptions","organizations_url":"https://api.github.com/users/bill-luu/orgs","repos_url":"https://api.github.com/users/bill-luu/repos","events_url":"https://api.github.com/users/bill-luu/events{/privacy}","received_events_url":"https://api.github.com/users/bill-luu/received_events","type":"User","site_admin":false},"body":"Extra whitespace","created_at":"2017-06-07T03:42:32Z","updated_at":"2017-06-07T03:44:19Z","html_url":"https://github.com/UCSolarCarTeam/Recruit-Resources/pull/29#discussion_r120528754","pull_request_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/pulls/comments/120528754"},"html":{"href":"https://github.com/UCSolarCarTeam/Recruit-Resources/pull/29#discussion_r120528754"},"pull_request":{"href":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/pulls/29","id":95386835,"html_url":"https://github.com/UCSolarCarTeam/Recruit-Resources/pull/29","diff_url":"https://github.com/UCSolarCarTeam/Recruit-Resources/pull/29.diff","patch_url":"https://github.com/UCSolarCarTeam/Recruit-Resources/pull/29.patch","issue_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/issues/29","number":29,"state":"open","locked":false,"title":"I did the Basic Recruit Training","user":{"login":"safasyed","id":22860648,"avatar_url":"https://avatars2.githubusercontent.com/u/22860648?v=3","gravatar_id":"","url":"https://api.github.com/users/safasyed","html_url":"https://github.com/safasyed","followers_url":"https://api.github.com/users/safasyed/followers","following_url":"https://api.github.com/users/safasyed/following{/other_user}","gists_url":"https://api.github.com/users/safasyed/gists{/gist_id}","starred_url":"https://api.github.com/users/safasyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/safasyed/subscriptions","organizations_url":"https://api.github.com/users/safasyed/orgs","repos_url":"https://api.github.com/users/safasyed/repos","events_url":"https://api.github.com/users/safasyed/events{/privacy}","received_events_url":"https://api.github.com/users/safasyed/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-26T23:46:17Z","updated_at":"2017-06-07T03:44:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"612eaf8f8d71561fe14b16a83fe86951cd08988a","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/pulls/29/commits","review_comments_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/pulls/29/comments","review_comment_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/issues/29/comments","statuses_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/statuses/ca7373032d133894d2d551ed64661cad45ecb8d7","head":{"label":"safasyed:Safa","ref":"Safa","sha":"ca7373032d133894d2d551ed64661cad45ecb8d7","user":{"login":"safasyed","id":22860648,"avatar_url":"https://avatars2.githubusercontent.com/u/22860648?v=3","gravatar_id":"","url":"https://api.github.com/users/safasyed","html_url":"https://github.com/safasyed","followers_url":"https://api.github.com/users/safasyed/followers","following_url":"https://api.github.com/users/safasyed/following{/other_user}","gists_url":"https://api.github.com/users/safasyed/gists{/gist_id}","starred_url":"https://api.github.com/users/safasyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/safasyed/subscriptions","organizations_url":"https://api.github.com/users/safasyed/orgs","repos_url":"https://api.github.com/users/safasyed/repos","events_url":"https://api.github.com/users/safasyed/events{/privacy}","received_events_url":"https://api.github.com/users/safasyed/received_events","type":"User","site_admin":false},"repo":{"id":71012156,"name":"Recruit-Resources","full_name":"safasyed/Recruit-Resources","owner":{"login":"safasyed","id":22860648,"avatar_url":"https://avatars2.githubusercontent.com/u/22860648?v=3","gravatar_id":"","url":"https://api.github.com/users/safasyed","html_url":"https://github.com/safasyed","followers_url":"https://api.github.com/users/safasyed/followers","following_url":"https://api.github.com/users/safasyed/following{/other_user}","gists_url":"https://api.github.com/users/safasyed/gists{/gist_id}","starred_url":"https://api.github.com/users/safasyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/safasyed/subscriptions","organizations_url":"https://api.github.com/users/safasyed/orgs","repos_url":"https://api.github.com/users/safasyed/repos","events_url":"https://api.github.com/users/safasyed/events{/privacy}","received_events_url":"https://api.github.com/users/safasyed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/safasyed/Recruit-Resources","description":"Intro project to learn c++ and QT","fork":true,"url":"https://api.github.com/repos/safasyed/Recruit-Resources","forks_url":"https://api.github.com/repos/safasyed/Recruit-Resources/forks","keys_url":"https://api.github.com/repos/safasyed/Recruit-Resources/keys{/key_id}","collaborators_url":"https://api.github.com/repos/safasyed/Recruit-Resources/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/safasyed/Recruit-Resources/teams","hooks_url":"https://api.github.com/repos/safasyed/Recruit-Resources/hooks","issue_events_url":"https://api.github.com/repos/safasyed/Recruit-Resources/issues/events{/number}","events_url":"https://api.github.com/repos/safasyed/Recruit-Resources/events","assignees_url":"https://api.github.com/repos/safasyed/Recruit-Resources/assignees{/user}","branches_url":"https://api.github.com/repos/safasyed/Recruit-Resources/branches{/branch}","tags_url":"https://api.github.com/repos/safasyed/Recruit-Resources/tags","blobs_url":"https://api.github.com/repos/safasyed/Recruit-Resources/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/safasyed/Recruit-Resources/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/safasyed/Recruit-Resources/git/refs{/sha}","trees_url":"https://api.github.com/repos/safasyed/Recruit-Resources/git/trees{/sha}","statuses_url":"https://api.github.com/repos/safasyed/Recruit-Resources/statuses/{sha}","languages_url":"https://api.github.com/repos/safasyed/Recruit-Resources/languages","stargazers_url":"https://api.github.com/repos/safasyed/Recruit-Resources/stargazers","contributors_url":"https://api.github.com/repos/safasyed/Recruit-Resources/contributors","subscribers_url":"https://api.github.com/repos/safasyed/Recruit-Resources/subscribers","subscription_url":"https://api.github.com/repos/safasyed/Recruit-Resources/subscription","commits_url":"https://api.github.com/repos/safasyed/Recruit-Resources/commits{/sha}","git_commits_url":"https://api.github.com/repos/safasyed/Recruit-Resources/git/commits{/sha}","comments_url":"https://api.github.com/repos/safasyed/Recruit-Resources/comments{/number}","issue_comment_url":"https://api.github.com/repos/safasyed/Recruit-Resources/issues/comments{/number}","contents_url":"https://api.github.com/repos/safasyed/Recruit-Resources/contents/{+path}","compare_url":"https://api.github.com/repos/safasyed/Recruit-Resources/compare/{base}...{head}","merges_url":"https://api.github.com/repos/safasyed/Recruit-Resources/merges","archive_url":"https://api.github.com/repos/safasyed/Recruit-Resources/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/safasyed/Recruit-Resources/downloads","issues_url":"https://api.github.com/repos/safasyed/Recruit-Resources/issues{/number}","pulls_url":"https://api.github.com/repos/safasyed/Recruit-Resources/pulls{/number}","milestones_url":"https://api.github.com/repos/safasyed/Recruit-Resources/milestones{/number}","notifications_url":"https://api.github.com/repos/safasyed/Recruit-Resources/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/safasyed/Recruit-Resources/labels{/name}","releases_url":"https://api.github.com/repos/safasyed/Recruit-Resources/releases{/id}","deployments_url":"https://api.github.com/repos/safasyed/Recruit-Resources/deployments","created_at":"2016-10-15T20:39:09Z","updated_at":"2016-10-15T20:39:10Z","pushed_at":"2017-06-03T20:17:23Z","git_url":"git://github.com/safasyed/Recruit-Resources.git","ssh_url":"git@github.com:safasyed/Recruit-Resources.git","clone_url":"https://github.com/safasyed/Recruit-Resources.git","svn_url":"https://github.com/safasyed/Recruit-Resources","homepage":null,"size":147,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"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":"UCSolarCarTeam:master","ref":"master","sha":"821ece59f461fb57f45e4245816b03697c08be01","user":{"login":"UCSolarCarTeam","id":14067129,"avatar_url":"https://avatars3.githubusercontent.com/u/14067129?v=3","gravatar_id":"","url":"https://api.github.com/users/UCSolarCarTeam","html_url":"https://github.com/UCSolarCarTeam","followers_url":"https://api.github.com/users/UCSolarCarTeam/followers","following_url":"https://api.github.com/users/UCSolarCarTeam/following{/other_user}","gists_url":"https://api.github.com/users/UCSolarCarTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/UCSolarCarTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UCSolarCarTeam/subscriptions","organizations_url":"https://api.github.com/users/UCSolarCarTeam/orgs","repos_url":"https://api.github.com/users/UCSolarCarTeam/repos","events_url":"https://api.github.com/users/UCSolarCarTeam/events{/privacy}","received_events_url":"https://api.github.com/users/UCSolarCarTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":44296946,"name":"Recruit-Resources","full_name":"UCSolarCarTeam/Recruit-Resources","owner":{"login":"UCSolarCarTeam","id":14067129,"avatar_url":"https://avatars3.githubusercontent.com/u/14067129?v=3","gravatar_id":"","url":"https://api.github.com/users/UCSolarCarTeam","html_url":"https://github.com/UCSolarCarTeam","followers_url":"https://api.github.com/users/UCSolarCarTeam/followers","following_url":"https://api.github.com/users/UCSolarCarTeam/following{/other_user}","gists_url":"https://api.github.com/users/UCSolarCarTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/UCSolarCarTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UCSolarCarTeam/subscriptions","organizations_url":"https://api.github.com/users/UCSolarCarTeam/orgs","repos_url":"https://api.github.com/users/UCSolarCarTeam/repos","events_url":"https://api.github.com/users/UCSolarCarTeam/events{/privacy}","received_events_url":"https://api.github.com/users/UCSolarCarTeam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UCSolarCarTeam/Recruit-Resources","description":"Intro project to learn c++ and QT","fork":false,"url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources","forks_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/forks","keys_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/teams","hooks_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/hooks","issue_events_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/issues/events{/number}","events_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/events","assignees_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/assignees{/user}","branches_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/branches{/branch}","tags_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/tags","blobs_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/git/refs{/sha}","trees_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/statuses/{sha}","languages_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/languages","stargazers_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/stargazers","contributors_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/contributors","subscribers_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/subscribers","subscription_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/subscription","commits_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/commits{/sha}","git_commits_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/git/commits{/sha}","comments_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/comments{/number}","issue_comment_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/issues/comments{/number}","contents_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/contents/{+path}","compare_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/merges","archive_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/downloads","issues_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/issues{/number}","pulls_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/pulls{/number}","milestones_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/milestones{/number}","notifications_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/labels{/name}","releases_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/releases{/id}","deployments_url":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/deployments","created_at":"2015-10-15T06:02:46Z","updated_at":"2017-04-07T14:15:48Z","pushed_at":"2017-06-03T20:17:24Z","git_url":"git://github.com/UCSolarCarTeam/Recruit-Resources.git","ssh_url":"git@github.com:UCSolarCarTeam/Recruit-Resources.git","clone_url":"https://github.com/UCSolarCarTeam/Recruit-Resources.git","svn_url":"https://github.com/UCSolarCarTeam/Recruit-Resources","homepage":null,"size":185,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":4,"forks":18,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/pulls/29"},"html":{"href":"https://github.com/UCSolarCarTeam/Recruit-Resources/pull/29"},"issue":{"href":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/issues/29"},"comments":{"href":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/UCSolarCarTeam/Recruit-Resources/statuses/ca7373032d133894d2d551ed64661cad45ecb8d7"}}}}
{"actor":{"display_login":"bill-luu"}}