{"action":"created","comment":{"url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/pulls/comments/97469627","pull_request_review_id":18080079,"id":97469627,"diff_hunk":"@@ -63,7 +63,14 @@ public void IssueNotificationAsync(string title, string message, string id, bool\n             if (!string.IsNullOrWhiteSpace(message))\n                 content.Body = message;\n \n-            if (playSound)\n+            // if a protocol ID has been passed to the method, check the protocol's Notification Alert Exclusion Windows\n+            // to determine whether to vibrate and play sound. if protocolId is null, just use the vibrateAndPlaySound parameter.\n+            if (protocolId != null)\n+            {\n+                vibrateAndPlaySound = !NotificationTimeIsWithinAlertExclusionWindow(protocolId, DateTime.UtcNow.AddSeconds(delayMS / 1000d));","path":"Sensus.Shared.iOS/Callbacks/UNUserNotifications/UNUserNotificationNotifier.cs","position":34,"original_position":34,"commit_id":"df67c24d3891b83d12d4b82cba0dc79d670a9a59","original_commit_id":"df67c24d3891b83d12d4b82cba0dc79d670a9a59","user":{"login":"MatthewGerber","id":4643066,"avatar_url":"https://avatars.githubusercontent.com/u/4643066?v=3","gravatar_id":"","url":"https://api.github.com/users/MatthewGerber","html_url":"https://github.com/MatthewGerber","followers_url":"https://api.github.com/users/MatthewGerber/followers","following_url":"https://api.github.com/users/MatthewGerber/following{/other_user}","gists_url":"https://api.github.com/users/MatthewGerber/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthewGerber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthewGerber/subscriptions","organizations_url":"https://api.github.com/users/MatthewGerber/orgs","repos_url":"https://api.github.com/users/MatthewGerber/repos","events_url":"https://api.github.com/users/MatthewGerber/events{/privacy}","received_events_url":"https://api.github.com/users/MatthewGerber/received_events","type":"User","site_admin":false},"body":"Ditto.","created_at":"2017-01-24T03:46:50Z","updated_at":"2017-01-24T03:46:50Z","html_url":"https://github.com/predictive-technology-laboratory/sensus/pull/324#discussion_r97469627","pull_request_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/pulls/324","_links":{"self":{"href":"https://api.github.com/repos/predictive-technology-laboratory/sensus/pulls/comments/97469627"},"html":{"href":"https://github.com/predictive-technology-laboratory/sensus/pull/324#discussion_r97469627"},"pull_request":{"href":"https://api.github.com/repos/predictive-technology-laboratory/sensus/pulls/324"}}},"pull_request":{"url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/pulls/324","id":102593496,"html_url":"https://github.com/predictive-technology-laboratory/sensus/pull/324","diff_url":"https://github.com/predictive-technology-laboratory/sensus/pull/324.diff","patch_url":"https://github.com/predictive-technology-laboratory/sensus/pull/324.patch","issue_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/issues/324","number":324,"state":"open","locked":false,"title":"Notification Sound Exclusion Windows - Protocol enhancement","user":{"login":"wesbonelli","id":10502868,"avatar_url":"https://avatars.githubusercontent.com/u/10502868?v=3","gravatar_id":"","url":"https://api.github.com/users/wesbonelli","html_url":"https://github.com/wesbonelli","followers_url":"https://api.github.com/users/wesbonelli/followers","following_url":"https://api.github.com/users/wesbonelli/following{/other_user}","gists_url":"https://api.github.com/users/wesbonelli/gists{/gist_id}","starred_url":"https://api.github.com/users/wesbonelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesbonelli/subscriptions","organizations_url":"https://api.github.com/users/wesbonelli/orgs","repos_url":"https://api.github.com/users/wesbonelli/repos","events_url":"https://api.github.com/users/wesbonelli/events{/privacy}","received_events_url":"https://api.github.com/users/wesbonelli/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-21T19:32:39Z","updated_at":"2017-01-24T03:46:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c662331005abf167b8f83da61fa196522e93a708","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/pulls/324/commits","review_comments_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/pulls/324/comments","review_comment_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/issues/324/comments","statuses_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/statuses/df67c24d3891b83d12d4b82cba0dc79d670a9a59","head":{"label":"wesbonelli:develop","ref":"develop","sha":"df67c24d3891b83d12d4b82cba0dc79d670a9a59","user":{"login":"wesbonelli","id":10502868,"avatar_url":"https://avatars.githubusercontent.com/u/10502868?v=3","gravatar_id":"","url":"https://api.github.com/users/wesbonelli","html_url":"https://github.com/wesbonelli","followers_url":"https://api.github.com/users/wesbonelli/followers","following_url":"https://api.github.com/users/wesbonelli/following{/other_user}","gists_url":"https://api.github.com/users/wesbonelli/gists{/gist_id}","starred_url":"https://api.github.com/users/wesbonelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesbonelli/subscriptions","organizations_url":"https://api.github.com/users/wesbonelli/orgs","repos_url":"https://api.github.com/users/wesbonelli/repos","events_url":"https://api.github.com/users/wesbonelli/events{/privacy}","received_events_url":"https://api.github.com/users/wesbonelli/received_events","type":"User","site_admin":false},"repo":{"id":60724144,"name":"sensus","full_name":"wesbonelli/sensus","owner":{"login":"wesbonelli","id":10502868,"avatar_url":"https://avatars.githubusercontent.com/u/10502868?v=3","gravatar_id":"","url":"https://api.github.com/users/wesbonelli","html_url":"https://github.com/wesbonelli","followers_url":"https://api.github.com/users/wesbonelli/followers","following_url":"https://api.github.com/users/wesbonelli/following{/other_user}","gists_url":"https://api.github.com/users/wesbonelli/gists{/gist_id}","starred_url":"https://api.github.com/users/wesbonelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesbonelli/subscriptions","organizations_url":"https://api.github.com/users/wesbonelli/orgs","repos_url":"https://api.github.com/users/wesbonelli/repos","events_url":"https://api.github.com/users/wesbonelli/events{/privacy}","received_events_url":"https://api.github.com/users/wesbonelli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wesbonelli/sensus","description":"A Cross-Platform System for Mobile Crowd-Sensing","fork":true,"url":"https://api.github.com/repos/wesbonelli/sensus","forks_url":"https://api.github.com/repos/wesbonelli/sensus/forks","keys_url":"https://api.github.com/repos/wesbonelli/sensus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wesbonelli/sensus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wesbonelli/sensus/teams","hooks_url":"https://api.github.com/repos/wesbonelli/sensus/hooks","issue_events_url":"https://api.github.com/repos/wesbonelli/sensus/issues/events{/number}","events_url":"https://api.github.com/repos/wesbonelli/sensus/events","assignees_url":"https://api.github.com/repos/wesbonelli/sensus/assignees{/user}","branches_url":"https://api.github.com/repos/wesbonelli/sensus/branches{/branch}","tags_url":"https://api.github.com/repos/wesbonelli/sensus/tags","blobs_url":"https://api.github.com/repos/wesbonelli/sensus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wesbonelli/sensus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wesbonelli/sensus/git/refs{/sha}","trees_url":"https://api.github.com/repos/wesbonelli/sensus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wesbonelli/sensus/statuses/{sha}","languages_url":"https://api.github.com/repos/wesbonelli/sensus/languages","stargazers_url":"https://api.github.com/repos/wesbonelli/sensus/stargazers","contributors_url":"https://api.github.com/repos/wesbonelli/sensus/contributors","subscribers_url":"https://api.github.com/repos/wesbonelli/sensus/subscribers","subscription_url":"https://api.github.com/repos/wesbonelli/sensus/subscription","commits_url":"https://api.github.com/repos/wesbonelli/sensus/commits{/sha}","git_commits_url":"https://api.github.com/repos/wesbonelli/sensus/git/commits{/sha}","comments_url":"https://api.github.com/repos/wesbonelli/sensus/comments{/number}","issue_comment_url":"https://api.github.com/repos/wesbonelli/sensus/issues/comments{/number}","contents_url":"https://api.github.com/repos/wesbonelli/sensus/contents/{+path}","compare_url":"https://api.github.com/repos/wesbonelli/sensus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wesbonelli/sensus/merges","archive_url":"https://api.github.com/repos/wesbonelli/sensus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wesbonelli/sensus/downloads","issues_url":"https://api.github.com/repos/wesbonelli/sensus/issues{/number}","pulls_url":"https://api.github.com/repos/wesbonelli/sensus/pulls{/number}","milestones_url":"https://api.github.com/repos/wesbonelli/sensus/milestones{/number}","notifications_url":"https://api.github.com/repos/wesbonelli/sensus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wesbonelli/sensus/labels{/name}","releases_url":"https://api.github.com/repos/wesbonelli/sensus/releases{/id}","deployments_url":"https://api.github.com/repos/wesbonelli/sensus/deployments","created_at":"2016-06-08T19:18:17Z","updated_at":"2016-06-08T19:18:19Z","pushed_at":"2017-01-24T03:14:53Z","git_url":"git://github.com/wesbonelli/sensus.git","ssh_url":"git@github.com:wesbonelli/sensus.git","clone_url":"https://github.com/wesbonelli/sensus.git","svn_url":"https://github.com/wesbonelli/sensus","homepage":"https://github.com/predictive-technology-laboratory/sensus/wiki","size":115492,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"predictive-technology-laboratory:develop","ref":"develop","sha":"f0b7a0b16b5a640b123c79012e85511661d098a8","user":{"login":"predictive-technology-laboratory","id":7767826,"avatar_url":"https://avatars.githubusercontent.com/u/7767826?v=3","gravatar_id":"","url":"https://api.github.com/users/predictive-technology-laboratory","html_url":"https://github.com/predictive-technology-laboratory","followers_url":"https://api.github.com/users/predictive-technology-laboratory/followers","following_url":"https://api.github.com/users/predictive-technology-laboratory/following{/other_user}","gists_url":"https://api.github.com/users/predictive-technology-laboratory/gists{/gist_id}","starred_url":"https://api.github.com/users/predictive-technology-laboratory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/predictive-technology-laboratory/subscriptions","organizations_url":"https://api.github.com/users/predictive-technology-laboratory/orgs","repos_url":"https://api.github.com/users/predictive-technology-laboratory/repos","events_url":"https://api.github.com/users/predictive-technology-laboratory/events{/privacy}","received_events_url":"https://api.github.com/users/predictive-technology-laboratory/received_events","type":"Organization","site_admin":false},"repo":{"id":26280126,"name":"sensus","full_name":"predictive-technology-laboratory/sensus","owner":{"login":"predictive-technology-laboratory","id":7767826,"avatar_url":"https://avatars.githubusercontent.com/u/7767826?v=3","gravatar_id":"","url":"https://api.github.com/users/predictive-technology-laboratory","html_url":"https://github.com/predictive-technology-laboratory","followers_url":"https://api.github.com/users/predictive-technology-laboratory/followers","following_url":"https://api.github.com/users/predictive-technology-laboratory/following{/other_user}","gists_url":"https://api.github.com/users/predictive-technology-laboratory/gists{/gist_id}","starred_url":"https://api.github.com/users/predictive-technology-laboratory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/predictive-technology-laboratory/subscriptions","organizations_url":"https://api.github.com/users/predictive-technology-laboratory/orgs","repos_url":"https://api.github.com/users/predictive-technology-laboratory/repos","events_url":"https://api.github.com/users/predictive-technology-laboratory/events{/privacy}","received_events_url":"https://api.github.com/users/predictive-technology-laboratory/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/predictive-technology-laboratory/sensus","description":"A Cross-Platform System for Mobile Crowd-Sensing","fork":false,"url":"https://api.github.com/repos/predictive-technology-laboratory/sensus","forks_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/forks","keys_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/teams","hooks_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/hooks","issue_events_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/issues/events{/number}","events_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/events","assignees_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/assignees{/user}","branches_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/branches{/branch}","tags_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/tags","blobs_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/git/refs{/sha}","trees_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/statuses/{sha}","languages_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/languages","stargazers_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/stargazers","contributors_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/contributors","subscribers_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/subscribers","subscription_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/subscription","commits_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/commits{/sha}","git_commits_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/git/commits{/sha}","comments_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/comments{/number}","issue_comment_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/issues/comments{/number}","contents_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/contents/{+path}","compare_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/merges","archive_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/downloads","issues_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/issues{/number}","pulls_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/pulls{/number}","milestones_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/milestones{/number}","notifications_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/labels{/name}","releases_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/releases{/id}","deployments_url":"https://api.github.com/repos/predictive-technology-laboratory/sensus/deployments","created_at":"2014-11-06T16:58:33Z","updated_at":"2017-01-10T21:36:05Z","pushed_at":"2017-01-24T03:14:54Z","git_url":"git://github.com/predictive-technology-laboratory/sensus.git","ssh_url":"git@github.com:predictive-technology-laboratory/sensus.git","clone_url":"https://github.com/predictive-technology-laboratory/sensus.git","svn_url":"https://github.com/predictive-technology-laboratory/sensus","homepage":"https://github.com/predictive-technology-laboratory/sensus/wiki","size":115206,"stargazers_count":15,"watchers_count":15,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":45,"forks":24,"open_issues":45,"watchers":15,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/predictive-technology-laboratory/sensus/pulls/324"},"html":{"href":"https://github.com/predictive-technology-laboratory/sensus/pull/324"},"issue":{"href":"https://api.github.com/repos/predictive-technology-laboratory/sensus/issues/324"},"comments":{"href":"https://api.github.com/repos/predictive-technology-laboratory/sensus/issues/324/comments"},"review_comments":{"href":"https://api.github.com/repos/predictive-technology-laboratory/sensus/pulls/324/comments"},"review_comment":{"href":"https://api.github.com/repos/predictive-technology-laboratory/sensus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/predictive-technology-laboratory/sensus/pulls/324/commits"},"statuses":{"href":"https://api.github.com/repos/predictive-technology-laboratory/sensus/statuses/df67c24d3891b83d12d4b82cba0dc79d670a9a59"}}}}
{"actor":{"display_login":"MatthewGerber"}}