{"action":"created","comment":{"url":"https://api.github.com/repos/ms-iot/adafruitsample/pulls/comments/46732731","id":46732731,"diff_hunk":"@@ -0,0 +1,196 @@\n+﻿using System;\n+using System.Diagnostics;\n+using System.Net.Http;\n+using System.Threading;\n+using System.Threading.Tasks;\n+using Windows.Devices.Adc;\n+using Windows.Media.SpeechSynthesis;\n+using Windows.UI.Xaml.Controls;\n+using Windows.UI.Xaml.Navigation;\n+\n+using Microsoft.IoT.AdcMcp3008;\n+// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409\n+\n+namespace Lesson_204V2\n+\n+{\n+    /// <summary>\n+    /// An empty page that can be used on its own or navigated to within a Frame.\n+    /// </summary>\n+    public sealed partial class MainPage : Page\n+    {\n+        // Use for configuration of the MCP3008 class voltage formula\n+        const float ReferenceVoltage = 5.0F;\n+\n+        // Values for which channels we will be using from the ADC chip\n+        const byte LowPotentiometerADCChannel = 0;\n+        const byte HighPotentiometerADCChannel = 1;\n+        const byte CDSADCChannel = 2;\n+\n+        // Some strings to let us know the current state.\n+        const string JustRightLightString = \"Ah, just right\";\n+        const string LowLightString = \"I need a light\";\n+        const string HighLightString = \"I need to wear shades\";\n+\n+        // Some internal state information\n+        enum eState { unknown, JustRight, TooBright, TooDark};\n+        eState CurrentState = eState.unknown;","path":"Lesson_204V2/FullSolution/MainPage.xaml.cs","position":37,"original_position":37,"commit_id":"a2ecd83b2fc8223baf33b0b9ae802e684978ecb7","original_commit_id":"a2ecd83b2fc8223baf33b0b9ae802e684978ecb7","user":{"login":"neilshipp","id":13340176,"avatar_url":"https://avatars.githubusercontent.com/u/13340176?v=3","gravatar_id":"","url":"https://api.github.com/users/neilshipp","html_url":"https://github.com/neilshipp","followers_url":"https://api.github.com/users/neilshipp/followers","following_url":"https://api.github.com/users/neilshipp/following{/other_user}","gists_url":"https://api.github.com/users/neilshipp/gists{/gist_id}","starred_url":"https://api.github.com/users/neilshipp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neilshipp/subscriptions","organizations_url":"https://api.github.com/users/neilshipp/orgs","repos_url":"https://api.github.com/users/neilshipp/repos","events_url":"https://api.github.com/users/neilshipp/events{/privacy}","received_events_url":"https://api.github.com/users/neilshipp/received_events","type":"User","site_admin":false},"body":"Are these public or private?  Below you clearly declare synthesizer as private.  Why not adcController and the AdcChannels?","created_at":"2015-12-04T21:11:08Z","updated_at":"2015-12-04T21:11:08Z","html_url":"https://github.com/ms-iot/adafruitsample/pull/14#discussion_r46732731","pull_request_url":"https://api.github.com/repos/ms-iot/adafruitsample/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/ms-iot/adafruitsample/pulls/comments/46732731"},"html":{"href":"https://github.com/ms-iot/adafruitsample/pull/14#discussion_r46732731"},"pull_request":{"href":"https://api.github.com/repos/ms-iot/adafruitsample/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/ms-iot/adafruitsample/pulls/14","id":52717465,"html_url":"https://github.com/ms-iot/adafruitsample/pull/14","diff_url":"https://github.com/ms-iot/adafruitsample/pull/14.diff","patch_url":"https://github.com/ms-iot/adafruitsample/pull/14.patch","issue_url":"https://api.github.com/repos/ms-iot/adafruitsample/issues/14","number":14,"state":"open","locked":false,"title":"Revised Lesson204 for ADC Provider","user":{"login":"DavidShoe","id":12055131,"avatar_url":"https://avatars.githubusercontent.com/u/12055131?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidShoe","html_url":"https://github.com/DavidShoe","followers_url":"https://api.github.com/users/DavidShoe/followers","following_url":"https://api.github.com/users/DavidShoe/following{/other_user}","gists_url":"https://api.github.com/users/DavidShoe/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidShoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidShoe/subscriptions","organizations_url":"https://api.github.com/users/DavidShoe/orgs","repos_url":"https://api.github.com/users/DavidShoe/repos","events_url":"https://api.github.com/users/DavidShoe/events{/privacy}","received_events_url":"https://api.github.com/users/DavidShoe/received_events","type":"User","site_admin":false},"body":"We will leave the V1 project up for people to reference but this V2 will replace it in the flow for new people.","created_at":"2015-12-04T20:30:46Z","updated_at":"2015-12-04T21:11:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36a84599d25163c6995ca3b82cfb9dada9af3d57","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ms-iot/adafruitsample/pulls/14/commits","review_comments_url":"https://api.github.com/repos/ms-iot/adafruitsample/pulls/14/comments","review_comment_url":"https://api.github.com/repos/ms-iot/adafruitsample/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ms-iot/adafruitsample/issues/14/comments","statuses_url":"https://api.github.com/repos/ms-iot/adafruitsample/statuses/a2ecd83b2fc8223baf33b0b9ae802e684978ecb7","head":{"label":"DavidShoe:master","ref":"master","sha":"a2ecd83b2fc8223baf33b0b9ae802e684978ecb7","user":{"login":"DavidShoe","id":12055131,"avatar_url":"https://avatars.githubusercontent.com/u/12055131?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidShoe","html_url":"https://github.com/DavidShoe","followers_url":"https://api.github.com/users/DavidShoe/followers","following_url":"https://api.github.com/users/DavidShoe/following{/other_user}","gists_url":"https://api.github.com/users/DavidShoe/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidShoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidShoe/subscriptions","organizations_url":"https://api.github.com/users/DavidShoe/orgs","repos_url":"https://api.github.com/users/DavidShoe/repos","events_url":"https://api.github.com/users/DavidShoe/events{/privacy}","received_events_url":"https://api.github.com/users/DavidShoe/received_events","type":"User","site_admin":false},"repo":{"id":43083743,"name":"adafruitsample","full_name":"DavidShoe/adafruitsample","owner":{"login":"DavidShoe","id":12055131,"avatar_url":"https://avatars.githubusercontent.com/u/12055131?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidShoe","html_url":"https://github.com/DavidShoe","followers_url":"https://api.github.com/users/DavidShoe/followers","following_url":"https://api.github.com/users/DavidShoe/following{/other_user}","gists_url":"https://api.github.com/users/DavidShoe/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidShoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidShoe/subscriptions","organizations_url":"https://api.github.com/users/DavidShoe/orgs","repos_url":"https://api.github.com/users/DavidShoe/repos","events_url":"https://api.github.com/users/DavidShoe/events{/privacy}","received_events_url":"https://api.github.com/users/DavidShoe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DavidShoe/adafruitsample","description":"","fork":true,"url":"https://api.github.com/repos/DavidShoe/adafruitsample","forks_url":"https://api.github.com/repos/DavidShoe/adafruitsample/forks","keys_url":"https://api.github.com/repos/DavidShoe/adafruitsample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DavidShoe/adafruitsample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DavidShoe/adafruitsample/teams","hooks_url":"https://api.github.com/repos/DavidShoe/adafruitsample/hooks","issue_events_url":"https://api.github.com/repos/DavidShoe/adafruitsample/issues/events{/number}","events_url":"https://api.github.com/repos/DavidShoe/adafruitsample/events","assignees_url":"https://api.github.com/repos/DavidShoe/adafruitsample/assignees{/user}","branches_url":"https://api.github.com/repos/DavidShoe/adafruitsample/branches{/branch}","tags_url":"https://api.github.com/repos/DavidShoe/adafruitsample/tags","blobs_url":"https://api.github.com/repos/DavidShoe/adafruitsample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DavidShoe/adafruitsample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DavidShoe/adafruitsample/git/refs{/sha}","trees_url":"https://api.github.com/repos/DavidShoe/adafruitsample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DavidShoe/adafruitsample/statuses/{sha}","languages_url":"https://api.github.com/repos/DavidShoe/adafruitsample/languages","stargazers_url":"https://api.github.com/repos/DavidShoe/adafruitsample/stargazers","contributors_url":"https://api.github.com/repos/DavidShoe/adafruitsample/contributors","subscribers_url":"https://api.github.com/repos/DavidShoe/adafruitsample/subscribers","subscription_url":"https://api.github.com/repos/DavidShoe/adafruitsample/subscription","commits_url":"https://api.github.com/repos/DavidShoe/adafruitsample/commits{/sha}","git_commits_url":"https://api.github.com/repos/DavidShoe/adafruitsample/git/commits{/sha}","comments_url":"https://api.github.com/repos/DavidShoe/adafruitsample/comments{/number}","issue_comment_url":"https://api.github.com/repos/DavidShoe/adafruitsample/issues/comments{/number}","contents_url":"https://api.github.com/repos/DavidShoe/adafruitsample/contents/{+path}","compare_url":"https://api.github.com/repos/DavidShoe/adafruitsample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DavidShoe/adafruitsample/merges","archive_url":"https://api.github.com/repos/DavidShoe/adafruitsample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DavidShoe/adafruitsample/downloads","issues_url":"https://api.github.com/repos/DavidShoe/adafruitsample/issues{/number}","pulls_url":"https://api.github.com/repos/DavidShoe/adafruitsample/pulls{/number}","milestones_url":"https://api.github.com/repos/DavidShoe/adafruitsample/milestones{/number}","notifications_url":"https://api.github.com/repos/DavidShoe/adafruitsample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DavidShoe/adafruitsample/labels{/name}","releases_url":"https://api.github.com/repos/DavidShoe/adafruitsample/releases{/id}","created_at":"2015-09-24T18:01:08Z","updated_at":"2015-09-24T18:01:08Z","pushed_at":"2015-12-04T20:29:00Z","git_url":"git://github.com/DavidShoe/adafruitsample.git","ssh_url":"git@github.com:DavidShoe/adafruitsample.git","clone_url":"https://github.com/DavidShoe/adafruitsample.git","svn_url":"https://github.com/DavidShoe/adafruitsample","homepage":null,"size":295,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"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":"ms-iot:master","ref":"master","sha":"65064df2980963c74be28deac343e586d09c8ba6","user":{"login":"ms-iot","id":7927770,"avatar_url":"https://avatars.githubusercontent.com/u/7927770?v=3","gravatar_id":"","url":"https://api.github.com/users/ms-iot","html_url":"https://github.com/ms-iot","followers_url":"https://api.github.com/users/ms-iot/followers","following_url":"https://api.github.com/users/ms-iot/following{/other_user}","gists_url":"https://api.github.com/users/ms-iot/gists{/gist_id}","starred_url":"https://api.github.com/users/ms-iot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ms-iot/subscriptions","organizations_url":"https://api.github.com/users/ms-iot/orgs","repos_url":"https://api.github.com/users/ms-iot/repos","events_url":"https://api.github.com/users/ms-iot/events{/privacy}","received_events_url":"https://api.github.com/users/ms-iot/received_events","type":"Organization","site_admin":false},"repo":{"id":41512117,"name":"adafruitsample","full_name":"ms-iot/adafruitsample","owner":{"login":"ms-iot","id":7927770,"avatar_url":"https://avatars.githubusercontent.com/u/7927770?v=3","gravatar_id":"","url":"https://api.github.com/users/ms-iot","html_url":"https://github.com/ms-iot","followers_url":"https://api.github.com/users/ms-iot/followers","following_url":"https://api.github.com/users/ms-iot/following{/other_user}","gists_url":"https://api.github.com/users/ms-iot/gists{/gist_id}","starred_url":"https://api.github.com/users/ms-iot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ms-iot/subscriptions","organizations_url":"https://api.github.com/users/ms-iot/orgs","repos_url":"https://api.github.com/users/ms-iot/repos","events_url":"https://api.github.com/users/ms-iot/events{/privacy}","received_events_url":"https://api.github.com/users/ms-iot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ms-iot/adafruitsample","description":"","fork":false,"url":"https://api.github.com/repos/ms-iot/adafruitsample","forks_url":"https://api.github.com/repos/ms-iot/adafruitsample/forks","keys_url":"https://api.github.com/repos/ms-iot/adafruitsample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ms-iot/adafruitsample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ms-iot/adafruitsample/teams","hooks_url":"https://api.github.com/repos/ms-iot/adafruitsample/hooks","issue_events_url":"https://api.github.com/repos/ms-iot/adafruitsample/issues/events{/number}","events_url":"https://api.github.com/repos/ms-iot/adafruitsample/events","assignees_url":"https://api.github.com/repos/ms-iot/adafruitsample/assignees{/user}","branches_url":"https://api.github.com/repos/ms-iot/adafruitsample/branches{/branch}","tags_url":"https://api.github.com/repos/ms-iot/adafruitsample/tags","blobs_url":"https://api.github.com/repos/ms-iot/adafruitsample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ms-iot/adafruitsample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ms-iot/adafruitsample/git/refs{/sha}","trees_url":"https://api.github.com/repos/ms-iot/adafruitsample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ms-iot/adafruitsample/statuses/{sha}","languages_url":"https://api.github.com/repos/ms-iot/adafruitsample/languages","stargazers_url":"https://api.github.com/repos/ms-iot/adafruitsample/stargazers","contributors_url":"https://api.github.com/repos/ms-iot/adafruitsample/contributors","subscribers_url":"https://api.github.com/repos/ms-iot/adafruitsample/subscribers","subscription_url":"https://api.github.com/repos/ms-iot/adafruitsample/subscription","commits_url":"https://api.github.com/repos/ms-iot/adafruitsample/commits{/sha}","git_commits_url":"https://api.github.com/repos/ms-iot/adafruitsample/git/commits{/sha}","comments_url":"https://api.github.com/repos/ms-iot/adafruitsample/comments{/number}","issue_comment_url":"https://api.github.com/repos/ms-iot/adafruitsample/issues/comments{/number}","contents_url":"https://api.github.com/repos/ms-iot/adafruitsample/contents/{+path}","compare_url":"https://api.github.com/repos/ms-iot/adafruitsample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ms-iot/adafruitsample/merges","archive_url":"https://api.github.com/repos/ms-iot/adafruitsample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ms-iot/adafruitsample/downloads","issues_url":"https://api.github.com/repos/ms-iot/adafruitsample/issues{/number}","pulls_url":"https://api.github.com/repos/ms-iot/adafruitsample/pulls{/number}","milestones_url":"https://api.github.com/repos/ms-iot/adafruitsample/milestones{/number}","notifications_url":"https://api.github.com/repos/ms-iot/adafruitsample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ms-iot/adafruitsample/labels{/name}","releases_url":"https://api.github.com/repos/ms-iot/adafruitsample/releases{/id}","created_at":"2015-08-27T21:24:19Z","updated_at":"2015-12-04T20:42:21Z","pushed_at":"2015-12-04T20:30:47Z","git_url":"git://github.com/ms-iot/adafruitsample.git","ssh_url":"git@github.com:ms-iot/adafruitsample.git","clone_url":"https://github.com/ms-iot/adafruitsample.git","svn_url":"https://github.com/ms-iot/adafruitsample","homepage":null,"size":579,"stargazers_count":7,"watchers_count":7,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":1,"forks":11,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ms-iot/adafruitsample/pulls/14"},"html":{"href":"https://github.com/ms-iot/adafruitsample/pull/14"},"issue":{"href":"https://api.github.com/repos/ms-iot/adafruitsample/issues/14"},"comments":{"href":"https://api.github.com/repos/ms-iot/adafruitsample/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/ms-iot/adafruitsample/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/ms-iot/adafruitsample/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ms-iot/adafruitsample/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/ms-iot/adafruitsample/statuses/a2ecd83b2fc8223baf33b0b9ae802e684978ecb7"}}}}