{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/Gestures-Samples/pulls/comments/138335647","pull_request_review_id":62115866,"id":138335647,"diff_hunk":"@@ -0,0 +1,105 @@\n+#include \"GesturesProxyNative/GesturesServiceEndpoint.hpp\"\r\n+#include \"GesturesNative/Gesture.hpp\"\r\n+#include \"GesturesCommonNative/Console/Console.hpp\"\r\n+using namespace Microsoft::Gestures::Endpoint;\r\n+using namespace Microsoft::Gestures;\r\n+using namespace Microsoft::Gestures::Common;\r\n+\r\n+// This function will be called upon gesture detection - it will emit the gesture name to the console w/ colors\r\n+static void OnGestureDetected(EventProvider* /*sender*/, const GestureSegmentTriggeredEventArgs& args, Console::Color color)\r\n+{\r\n+\tConsole::SetForegroundColor(Console::Color::Red);\r\n+\tConsole::Write(L\"Gesture detected! : \");\r\n+\tConsole::SetForegroundColor(color);\r\n+\tConsole::WriteLine(args.GetGestureSegment()->GetName());\r\n+\tConsole::ResetColor();\r\n+}\r\n+\r\n+int main(int argc, char** argv)\r\n+{\t\r\n+\tConsole::SetTitle(L\"GesturesServiceStatus[Initializing]\");\r\n+\tConsole::WriteLine(L\"Welcome to Microsoft Gestures Console ! press 'ctrl+c' to exit\");\r\n+\r\n+\t// Step 1: Connect to Microsoft Gestures service  \r\n+\tauto gesturesServiceHostName = argc == 1 ? \"localhost\" : argv[1]; // One can optionally pass the hostname/IP address where the gestures service is hosted\r","path":"ConsoleNative/ConsoleNative.cpp","position":24,"original_position":24,"commit_id":"683877c890184d078233af5dba185270065e76b3","original_commit_id":"683877c890184d078233af5dba185270065e76b3","user":{"login":"YoniSmolin","id":11846732,"avatar_url":"https://avatars0.githubusercontent.com/u/11846732?v=4","gravatar_id":"","url":"https://api.github.com/users/YoniSmolin","html_url":"https://github.com/YoniSmolin","followers_url":"https://api.github.com/users/YoniSmolin/followers","following_url":"https://api.github.com/users/YoniSmolin/following{/other_user}","gists_url":"https://api.github.com/users/YoniSmolin/gists{/gist_id}","starred_url":"https://api.github.com/users/YoniSmolin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YoniSmolin/subscriptions","organizations_url":"https://api.github.com/users/YoniSmolin/orgs","repos_url":"https://api.github.com/users/YoniSmolin/repos","events_url":"https://api.github.com/users/YoniSmolin/events{/privacy}","received_events_url":"https://api.github.com/users/YoniSmolin/received_events","type":"User","site_admin":false},"body":"Good comment. should probably add it to the .Net Core console app for uniformity...","created_at":"2017-09-12T12:44:58Z","updated_at":"2017-09-12T12:44:58Z","html_url":"https://github.com/Microsoft/Gestures-Samples/pull/19#discussion_r138335647","pull_request_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/pulls/19","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/Gestures-Samples/pulls/comments/138335647"},"html":{"href":"https://github.com/Microsoft/Gestures-Samples/pull/19#discussion_r138335647"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/Gestures-Samples/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/Gestures-Samples/pulls/19","id":140336983,"html_url":"https://github.com/Microsoft/Gestures-Samples/pull/19","diff_url":"https://github.com/Microsoft/Gestures-Samples/pull/19.diff","patch_url":"https://github.com/Microsoft/Gestures-Samples/pull/19.patch","issue_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/issues/19","number":19,"state":"open","locked":false,"title":"Added samples which demonstrate MSFT gestures API consumption from .n…","user":{"login":"mosdav","id":13720509,"avatar_url":"https://avatars3.githubusercontent.com/u/13720509?v=4","gravatar_id":"","url":"https://api.github.com/users/mosdav","html_url":"https://github.com/mosdav","followers_url":"https://api.github.com/users/mosdav/followers","following_url":"https://api.github.com/users/mosdav/following{/other_user}","gists_url":"https://api.github.com/users/mosdav/gists{/gist_id}","starred_url":"https://api.github.com/users/mosdav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mosdav/subscriptions","organizations_url":"https://api.github.com/users/mosdav/orgs","repos_url":"https://api.github.com/users/mosdav/repos","events_url":"https://api.github.com/users/mosdav/events{/privacy}","received_events_url":"https://api.github.com/users/mosdav/received_events","type":"User","site_admin":false},"body":"…etcore managed and UWP/desktop native code","created_at":"2017-09-11T13:39:27Z","updated_at":"2017-09-12T12:44:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3c9e498d0809779cd146f0871491055f787e330","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/pulls/19/commits","review_comments_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/pulls/19/comments","review_comment_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/issues/19/comments","statuses_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/statuses/683877c890184d078233af5dba185270065e76b3","head":{"label":"mosdav:modav/native_and_netcore_samples","ref":"modav/native_and_netcore_samples","sha":"683877c890184d078233af5dba185270065e76b3","user":{"login":"mosdav","id":13720509,"avatar_url":"https://avatars3.githubusercontent.com/u/13720509?v=4","gravatar_id":"","url":"https://api.github.com/users/mosdav","html_url":"https://github.com/mosdav","followers_url":"https://api.github.com/users/mosdav/followers","following_url":"https://api.github.com/users/mosdav/following{/other_user}","gists_url":"https://api.github.com/users/mosdav/gists{/gist_id}","starred_url":"https://api.github.com/users/mosdav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mosdav/subscriptions","organizations_url":"https://api.github.com/users/mosdav/orgs","repos_url":"https://api.github.com/users/mosdav/repos","events_url":"https://api.github.com/users/mosdav/events{/privacy}","received_events_url":"https://api.github.com/users/mosdav/received_events","type":"User","site_admin":false},"repo":{"id":100174698,"name":"Gestures-Samples","full_name":"mosdav/Gestures-Samples","owner":{"login":"mosdav","id":13720509,"avatar_url":"https://avatars3.githubusercontent.com/u/13720509?v=4","gravatar_id":"","url":"https://api.github.com/users/mosdav","html_url":"https://github.com/mosdav","followers_url":"https://api.github.com/users/mosdav/followers","following_url":"https://api.github.com/users/mosdav/following{/other_user}","gists_url":"https://api.github.com/users/mosdav/gists{/gist_id}","starred_url":"https://api.github.com/users/mosdav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mosdav/subscriptions","organizations_url":"https://api.github.com/users/mosdav/orgs","repos_url":"https://api.github.com/users/mosdav/repos","events_url":"https://api.github.com/users/mosdav/events{/privacy}","received_events_url":"https://api.github.com/users/mosdav/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mosdav/Gestures-Samples","description":"Project Prague Code Samples","fork":true,"url":"https://api.github.com/repos/mosdav/Gestures-Samples","forks_url":"https://api.github.com/repos/mosdav/Gestures-Samples/forks","keys_url":"https://api.github.com/repos/mosdav/Gestures-Samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mosdav/Gestures-Samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mosdav/Gestures-Samples/teams","hooks_url":"https://api.github.com/repos/mosdav/Gestures-Samples/hooks","issue_events_url":"https://api.github.com/repos/mosdav/Gestures-Samples/issues/events{/number}","events_url":"https://api.github.com/repos/mosdav/Gestures-Samples/events","assignees_url":"https://api.github.com/repos/mosdav/Gestures-Samples/assignees{/user}","branches_url":"https://api.github.com/repos/mosdav/Gestures-Samples/branches{/branch}","tags_url":"https://api.github.com/repos/mosdav/Gestures-Samples/tags","blobs_url":"https://api.github.com/repos/mosdav/Gestures-Samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mosdav/Gestures-Samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mosdav/Gestures-Samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/mosdav/Gestures-Samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mosdav/Gestures-Samples/statuses/{sha}","languages_url":"https://api.github.com/repos/mosdav/Gestures-Samples/languages","stargazers_url":"https://api.github.com/repos/mosdav/Gestures-Samples/stargazers","contributors_url":"https://api.github.com/repos/mosdav/Gestures-Samples/contributors","subscribers_url":"https://api.github.com/repos/mosdav/Gestures-Samples/subscribers","subscription_url":"https://api.github.com/repos/mosdav/Gestures-Samples/subscription","commits_url":"https://api.github.com/repos/mosdav/Gestures-Samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/mosdav/Gestures-Samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/mosdav/Gestures-Samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/mosdav/Gestures-Samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/mosdav/Gestures-Samples/contents/{+path}","compare_url":"https://api.github.com/repos/mosdav/Gestures-Samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mosdav/Gestures-Samples/merges","archive_url":"https://api.github.com/repos/mosdav/Gestures-Samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mosdav/Gestures-Samples/downloads","issues_url":"https://api.github.com/repos/mosdav/Gestures-Samples/issues{/number}","pulls_url":"https://api.github.com/repos/mosdav/Gestures-Samples/pulls{/number}","milestones_url":"https://api.github.com/repos/mosdav/Gestures-Samples/milestones{/number}","notifications_url":"https://api.github.com/repos/mosdav/Gestures-Samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mosdav/Gestures-Samples/labels{/name}","releases_url":"https://api.github.com/repos/mosdav/Gestures-Samples/releases{/id}","deployments_url":"https://api.github.com/repos/mosdav/Gestures-Samples/deployments","created_at":"2017-08-13T12:20:54Z","updated_at":"2017-08-13T12:20:55Z","pushed_at":"2017-09-12T12:03:07Z","git_url":"git://github.com/mosdav/Gestures-Samples.git","ssh_url":"git@github.com:mosdav/Gestures-Samples.git","clone_url":"https://github.com/mosdav/Gestures-Samples.git","svn_url":"https://github.com/mosdav/Gestures-Samples","homepage":"https://aka.ms/gestures","size":12252,"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":"Microsoft:master","ref":"master","sha":"d6362185638175bfeba2b1af315b6770fad51adb","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":95484316,"name":"Gestures-Samples","full_name":"Microsoft/Gestures-Samples","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/Gestures-Samples","description":"Project Prague Code Samples","fork":false,"url":"https://api.github.com/repos/Microsoft/Gestures-Samples","forks_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/forks","keys_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/teams","hooks_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/events","assignees_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/tags","blobs_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/languages","stargazers_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/subscription","commits_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/merges","archive_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/downloads","issues_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/Gestures-Samples/deployments","created_at":"2017-06-26T19:58:46Z","updated_at":"2017-09-01T15:14:12Z","pushed_at":"2017-09-12T12:03:09Z","git_url":"git://github.com/Microsoft/Gestures-Samples.git","ssh_url":"git@github.com:Microsoft/Gestures-Samples.git","clone_url":"https://github.com/Microsoft/Gestures-Samples.git","svn_url":"https://github.com/Microsoft/Gestures-Samples","homepage":"https://aka.ms/gestures","size":9863,"stargazers_count":18,"watchers_count":18,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/Gestures-Samples/pulls/19"},"html":{"href":"https://github.com/Microsoft/Gestures-Samples/pull/19"},"issue":{"href":"https://api.github.com/repos/Microsoft/Gestures-Samples/issues/19"},"comments":{"href":"https://api.github.com/repos/Microsoft/Gestures-Samples/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/Gestures-Samples/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/Gestures-Samples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/Gestures-Samples/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/Gestures-Samples/statuses/683877c890184d078233af5dba185270065e76b3"}},"author_association":"NONE"}}
{"actor":{"display_login":"YoniSmolin"}}