{"action":"created","comment":{"url":"https://api.github.com/repos/LoopKit/xDripG5/pulls/comments/178294160","pull_request_review_id":108335774,"id":178294160,"diff_hunk":"@@ -93,3 +93,14 @@ extension CalibrationState: Equatable {\n         }\n     }\n }\n+\n+extension CalibrationState: CustomStringConvertible {\n+    public var description: String {\n+        switch self {\n+        case .known(let state):\n+            return \"\\(state)\"\n+        default:","path":"xDripG5/CalibrationState.swift","position":10,"original_position":10,"commit_id":"1af862a0b5f293c44c43dce3e122dbaeddd6f3fe","original_commit_id":"1af862a0b5f293c44c43dce3e122dbaeddd6f3fe","user":{"login":"ps2","id":14649,"avatar_url":"https://avatars2.githubusercontent.com/u/14649?v=4","gravatar_id":"","url":"https://api.github.com/users/ps2","html_url":"https://github.com/ps2","followers_url":"https://api.github.com/users/ps2/followers","following_url":"https://api.github.com/users/ps2/following{/other_user}","gists_url":"https://api.github.com/users/ps2/gists{/gist_id}","starred_url":"https://api.github.com/users/ps2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ps2/subscriptions","organizations_url":"https://api.github.com/users/ps2/orgs","repos_url":"https://api.github.com/users/ps2/repos","events_url":"https://api.github.com/users/ps2/events{/privacy}","received_events_url":"https://api.github.com/users/ps2/received_events","type":"User","site_admin":false},"body":"This should be the `.unknown` case; default cases should be avoided whenever possible.","created_at":"2018-03-30T13:50:31Z","updated_at":"2018-03-30T13:52:57Z","html_url":"https://github.com/LoopKit/xDripG5/pull/76#discussion_r178294160","pull_request_url":"https://api.github.com/repos/LoopKit/xDripG5/pulls/76","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/LoopKit/xDripG5/pulls/comments/178294160"},"html":{"href":"https://github.com/LoopKit/xDripG5/pull/76#discussion_r178294160"},"pull_request":{"href":"https://api.github.com/repos/LoopKit/xDripG5/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/LoopKit/xDripG5/pulls/76","id":171643805,"html_url":"https://github.com/LoopKit/xDripG5/pull/76","diff_url":"https://github.com/LoopKit/xDripG5/pull/76.diff","patch_url":"https://github.com/LoopKit/xDripG5/pull/76.patch","issue_url":"https://api.github.com/repos/LoopKit/xDripG5/issues/76","number":76,"state":"open","locked":false,"title":"support sensor start, stop, calibrate","user":{"login":"thebookins","id":12263040,"avatar_url":"https://avatars0.githubusercontent.com/u/12263040?v=4","gravatar_id":"","url":"https://api.github.com/users/thebookins","html_url":"https://github.com/thebookins","followers_url":"https://api.github.com/users/thebookins/followers","following_url":"https://api.github.com/users/thebookins/following{/other_user}","gists_url":"https://api.github.com/users/thebookins/gists{/gist_id}","starred_url":"https://api.github.com/users/thebookins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebookins/subscriptions","organizations_url":"https://api.github.com/users/thebookins/orgs","repos_url":"https://api.github.com/users/thebookins/repos","events_url":"https://api.github.com/users/thebookins/events{/privacy}","received_events_url":"https://api.github.com/users/thebookins/received_events","type":"User","site_admin":false},"body":"This PR adds support for starting, stopping and calibrating sensors for in-date transmitters.\r\n - Create new protocol `TimedTransmitterTxMessage`, with a `date` and that requires an `activationDate` from the transmitter for synchronisation. `SessionStartTxMessage`, `SessionStopTxMessage` and `CalibrateGlucoseTxMessage` now conform to this protocol.\r\n - Add message queue to `Transmitter`, which holds any user-initiated messages for processing at the next sensor read. This queue is processed in the control step.\r\n - Add new message `CalibrateGlucoseRxMessage`.\r\n - Append CRC (if used) after converting byte sequence to `Data` (for longer messages).\r\n - Add public functions `startSensor`, `stopSensor` and `calibrateSensor` to `Transmitter`\r\n - Add UI for starting a session and calibrating a sensor in Example app.","created_at":"2018-02-27T12:08:54Z","updated_at":"2018-03-30T13:52:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35695de9a3645652158848edec1386693d96cdd9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LoopKit/xDripG5/pulls/76/commits","review_comments_url":"https://api.github.com/repos/LoopKit/xDripG5/pulls/76/comments","review_comment_url":"https://api.github.com/repos/LoopKit/xDripG5/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LoopKit/xDripG5/issues/76/comments","statuses_url":"https://api.github.com/repos/LoopKit/xDripG5/statuses/1af862a0b5f293c44c43dce3e122dbaeddd6f3fe","head":{"label":"thebookins:start-stop-calibrate","ref":"start-stop-calibrate","sha":"1af862a0b5f293c44c43dce3e122dbaeddd6f3fe","user":{"login":"thebookins","id":12263040,"avatar_url":"https://avatars0.githubusercontent.com/u/12263040?v=4","gravatar_id":"","url":"https://api.github.com/users/thebookins","html_url":"https://github.com/thebookins","followers_url":"https://api.github.com/users/thebookins/followers","following_url":"https://api.github.com/users/thebookins/following{/other_user}","gists_url":"https://api.github.com/users/thebookins/gists{/gist_id}","starred_url":"https://api.github.com/users/thebookins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebookins/subscriptions","organizations_url":"https://api.github.com/users/thebookins/orgs","repos_url":"https://api.github.com/users/thebookins/repos","events_url":"https://api.github.com/users/thebookins/events{/privacy}","received_events_url":"https://api.github.com/users/thebookins/received_events","type":"User","site_admin":false},"repo":{"id":76857058,"name":"xDripG5","full_name":"thebookins/xDripG5","owner":{"login":"thebookins","id":12263040,"avatar_url":"https://avatars0.githubusercontent.com/u/12263040?v=4","gravatar_id":"","url":"https://api.github.com/users/thebookins","html_url":"https://github.com/thebookins","followers_url":"https://api.github.com/users/thebookins/followers","following_url":"https://api.github.com/users/thebookins/following{/other_user}","gists_url":"https://api.github.com/users/thebookins/gists{/gist_id}","starred_url":"https://api.github.com/users/thebookins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebookins/subscriptions","organizations_url":"https://api.github.com/users/thebookins/orgs","repos_url":"https://api.github.com/users/thebookins/repos","events_url":"https://api.github.com/users/thebookins/events{/privacy}","received_events_url":"https://api.github.com/users/thebookins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thebookins/xDripG5","description":"Make your G5 data truly mobile.","fork":true,"url":"https://api.github.com/repos/thebookins/xDripG5","forks_url":"https://api.github.com/repos/thebookins/xDripG5/forks","keys_url":"https://api.github.com/repos/thebookins/xDripG5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thebookins/xDripG5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thebookins/xDripG5/teams","hooks_url":"https://api.github.com/repos/thebookins/xDripG5/hooks","issue_events_url":"https://api.github.com/repos/thebookins/xDripG5/issues/events{/number}","events_url":"https://api.github.com/repos/thebookins/xDripG5/events","assignees_url":"https://api.github.com/repos/thebookins/xDripG5/assignees{/user}","branches_url":"https://api.github.com/repos/thebookins/xDripG5/branches{/branch}","tags_url":"https://api.github.com/repos/thebookins/xDripG5/tags","blobs_url":"https://api.github.com/repos/thebookins/xDripG5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thebookins/xDripG5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thebookins/xDripG5/git/refs{/sha}","trees_url":"https://api.github.com/repos/thebookins/xDripG5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thebookins/xDripG5/statuses/{sha}","languages_url":"https://api.github.com/repos/thebookins/xDripG5/languages","stargazers_url":"https://api.github.com/repos/thebookins/xDripG5/stargazers","contributors_url":"https://api.github.com/repos/thebookins/xDripG5/contributors","subscribers_url":"https://api.github.com/repos/thebookins/xDripG5/subscribers","subscription_url":"https://api.github.com/repos/thebookins/xDripG5/subscription","commits_url":"https://api.github.com/repos/thebookins/xDripG5/commits{/sha}","git_commits_url":"https://api.github.com/repos/thebookins/xDripG5/git/commits{/sha}","comments_url":"https://api.github.com/repos/thebookins/xDripG5/comments{/number}","issue_comment_url":"https://api.github.com/repos/thebookins/xDripG5/issues/comments{/number}","contents_url":"https://api.github.com/repos/thebookins/xDripG5/contents/{+path}","compare_url":"https://api.github.com/repos/thebookins/xDripG5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thebookins/xDripG5/merges","archive_url":"https://api.github.com/repos/thebookins/xDripG5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thebookins/xDripG5/downloads","issues_url":"https://api.github.com/repos/thebookins/xDripG5/issues{/number}","pulls_url":"https://api.github.com/repos/thebookins/xDripG5/pulls{/number}","milestones_url":"https://api.github.com/repos/thebookins/xDripG5/milestones{/number}","notifications_url":"https://api.github.com/repos/thebookins/xDripG5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thebookins/xDripG5/labels{/name}","releases_url":"https://api.github.com/repos/thebookins/xDripG5/releases{/id}","deployments_url":"https://api.github.com/repos/thebookins/xDripG5/deployments","created_at":"2016-12-19T11:38:45Z","updated_at":"2016-12-19T11:38:46Z","pushed_at":"2018-03-30T11:08:24Z","git_url":"git://github.com/thebookins/xDripG5.git","ssh_url":"git@github.com:thebookins/xDripG5.git","clone_url":"https://github.com/thebookins/xDripG5.git","svn_url":"https://github.com/thebookins/xDripG5","homepage":"","size":364,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LoopKit:dev","ref":"dev","sha":"638b1dcfda1ed39e84bd73bec75d27ec55abdff0","user":{"login":"LoopKit","id":21267095,"avatar_url":"https://avatars1.githubusercontent.com/u/21267095?v=4","gravatar_id":"","url":"https://api.github.com/users/LoopKit","html_url":"https://github.com/LoopKit","followers_url":"https://api.github.com/users/LoopKit/followers","following_url":"https://api.github.com/users/LoopKit/following{/other_user}","gists_url":"https://api.github.com/users/LoopKit/gists{/gist_id}","starred_url":"https://api.github.com/users/LoopKit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoopKit/subscriptions","organizations_url":"https://api.github.com/users/LoopKit/orgs","repos_url":"https://api.github.com/users/LoopKit/repos","events_url":"https://api.github.com/users/LoopKit/events{/privacy}","received_events_url":"https://api.github.com/users/LoopKit/received_events","type":"Organization","site_admin":false},"repo":{"id":46771946,"name":"xDripG5","full_name":"LoopKit/xDripG5","owner":{"login":"LoopKit","id":21267095,"avatar_url":"https://avatars1.githubusercontent.com/u/21267095?v=4","gravatar_id":"","url":"https://api.github.com/users/LoopKit","html_url":"https://github.com/LoopKit","followers_url":"https://api.github.com/users/LoopKit/followers","following_url":"https://api.github.com/users/LoopKit/following{/other_user}","gists_url":"https://api.github.com/users/LoopKit/gists{/gist_id}","starred_url":"https://api.github.com/users/LoopKit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoopKit/subscriptions","organizations_url":"https://api.github.com/users/LoopKit/orgs","repos_url":"https://api.github.com/users/LoopKit/repos","events_url":"https://api.github.com/users/LoopKit/events{/privacy}","received_events_url":"https://api.github.com/users/LoopKit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LoopKit/xDripG5","description":"Make your G5 data truly mobile.","fork":false,"url":"https://api.github.com/repos/LoopKit/xDripG5","forks_url":"https://api.github.com/repos/LoopKit/xDripG5/forks","keys_url":"https://api.github.com/repos/LoopKit/xDripG5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LoopKit/xDripG5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LoopKit/xDripG5/teams","hooks_url":"https://api.github.com/repos/LoopKit/xDripG5/hooks","issue_events_url":"https://api.github.com/repos/LoopKit/xDripG5/issues/events{/number}","events_url":"https://api.github.com/repos/LoopKit/xDripG5/events","assignees_url":"https://api.github.com/repos/LoopKit/xDripG5/assignees{/user}","branches_url":"https://api.github.com/repos/LoopKit/xDripG5/branches{/branch}","tags_url":"https://api.github.com/repos/LoopKit/xDripG5/tags","blobs_url":"https://api.github.com/repos/LoopKit/xDripG5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LoopKit/xDripG5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LoopKit/xDripG5/git/refs{/sha}","trees_url":"https://api.github.com/repos/LoopKit/xDripG5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LoopKit/xDripG5/statuses/{sha}","languages_url":"https://api.github.com/repos/LoopKit/xDripG5/languages","stargazers_url":"https://api.github.com/repos/LoopKit/xDripG5/stargazers","contributors_url":"https://api.github.com/repos/LoopKit/xDripG5/contributors","subscribers_url":"https://api.github.com/repos/LoopKit/xDripG5/subscribers","subscription_url":"https://api.github.com/repos/LoopKit/xDripG5/subscription","commits_url":"https://api.github.com/repos/LoopKit/xDripG5/commits{/sha}","git_commits_url":"https://api.github.com/repos/LoopKit/xDripG5/git/commits{/sha}","comments_url":"https://api.github.com/repos/LoopKit/xDripG5/comments{/number}","issue_comment_url":"https://api.github.com/repos/LoopKit/xDripG5/issues/comments{/number}","contents_url":"https://api.github.com/repos/LoopKit/xDripG5/contents/{+path}","compare_url":"https://api.github.com/repos/LoopKit/xDripG5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LoopKit/xDripG5/merges","archive_url":"https://api.github.com/repos/LoopKit/xDripG5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LoopKit/xDripG5/downloads","issues_url":"https://api.github.com/repos/LoopKit/xDripG5/issues{/number}","pulls_url":"https://api.github.com/repos/LoopKit/xDripG5/pulls{/number}","milestones_url":"https://api.github.com/repos/LoopKit/xDripG5/milestones{/number}","notifications_url":"https://api.github.com/repos/LoopKit/xDripG5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LoopKit/xDripG5/labels{/name}","releases_url":"https://api.github.com/repos/LoopKit/xDripG5/releases{/id}","deployments_url":"https://api.github.com/repos/LoopKit/xDripG5/deployments","created_at":"2015-11-24T06:31:46Z","updated_at":"2018-03-26T12:49:30Z","pushed_at":"2018-03-30T11:06:59Z","git_url":"git://github.com/LoopKit/xDripG5.git","ssh_url":"git@github.com:LoopKit/xDripG5.git","clone_url":"https://github.com/LoopKit/xDripG5.git","svn_url":"https://github.com/LoopKit/xDripG5","homepage":"","size":219,"stargazers_count":47,"watchers_count":47,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":28,"open_issues":12,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LoopKit/xDripG5/pulls/76"},"html":{"href":"https://github.com/LoopKit/xDripG5/pull/76"},"issue":{"href":"https://api.github.com/repos/LoopKit/xDripG5/issues/76"},"comments":{"href":"https://api.github.com/repos/LoopKit/xDripG5/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/LoopKit/xDripG5/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/LoopKit/xDripG5/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LoopKit/xDripG5/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/LoopKit/xDripG5/statuses/1af862a0b5f293c44c43dce3e122dbaeddd6f3fe"}},"author_association":"NONE"}}
{"actor":{"display_login":"ps2"}}