{"action":"created","comment":{"url":"https://api.github.com/repos/kaaproject/sample-apps/pulls/comments/75470790","id":75470790,"diff_hunk":"@@ -24,21 +24,26 @@\n #include <platform/kaa_client.h>\n #include <utilities/kaa_log.h>\n #include <kaa_notification_manager.h>\n-//#include <gen/kaa_notification_gen.h>\n \n #define KAA_DEMO_UNUSED(x) (void)(x);\n \n-#define KAA_DEMO_RETURN_IF_ERROR(error, message) \\\n-    if ((error)) { \\\n-        printf(message \", error code %d\\n\", (error)); \\\n-        return (error); \\\n-    }\n-\n-\n-\n static kaa_client_t *kaa_client = NULL;\n \n+enum color_t {RED, YELLOW, GREEN};\n \n+static const char *enum_to_str(enum color_t code_color)\n+{\n+    switch(code_color) {\n+        case RED:\n+            return \"CodeRed\";","path":"notificationdemo/source/c/src/kaa_demo.c","position":24,"original_position":24,"commit_id":"8dd2de22a36a9b1832679dc0ca647073724519a0","original_commit_id":"8dd2de22a36a9b1832679dc0ca647073724519a0","user":{"login":"Slash32","id":19823389,"avatar_url":"https://avatars.githubusercontent.com/u/19823389?v=3","gravatar_id":"","url":"https://api.github.com/users/Slash32","html_url":"https://github.com/Slash32","followers_url":"https://api.github.com/users/Slash32/followers","following_url":"https://api.github.com/users/Slash32/following{/other_user}","gists_url":"https://api.github.com/users/Slash32/gists{/gist_id}","starred_url":"https://api.github.com/users/Slash32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slash32/subscriptions","organizations_url":"https://api.github.com/users/Slash32/orgs","repos_url":"https://api.github.com/users/Slash32/repos","events_url":"https://api.github.com/users/Slash32/events{/privacy}","received_events_url":"https://api.github.com/users/Slash32/received_events","type":"User","site_admin":false},"body":"Please add break","created_at":"2016-08-19T12:13:52Z","updated_at":"2016-08-19T12:13:52Z","html_url":"https://github.com/kaaproject/sample-apps/pull/188#discussion_r75470790","pull_request_url":"https://api.github.com/repos/kaaproject/sample-apps/pulls/188","_links":{"self":{"href":"https://api.github.com/repos/kaaproject/sample-apps/pulls/comments/75470790"},"html":{"href":"https://github.com/kaaproject/sample-apps/pull/188#discussion_r75470790"},"pull_request":{"href":"https://api.github.com/repos/kaaproject/sample-apps/pulls/188"}}},"pull_request":{"url":"https://api.github.com/repos/kaaproject/sample-apps/pulls/188","id":81902580,"html_url":"https://github.com/kaaproject/sample-apps/pull/188","diff_url":"https://github.com/kaaproject/sample-apps/pull/188.diff","patch_url":"https://github.com/kaaproject/sample-apps/pull/188.patch","issue_url":"https://api.github.com/repos/kaaproject/sample-apps/issues/188","number":188,"state":"open","locked":false,"title":"APP 153 [C] Fix notification demo","user":{"login":"Dubland","id":10281806,"avatar_url":"https://avatars.githubusercontent.com/u/10281806?v=3","gravatar_id":"","url":"https://api.github.com/users/Dubland","html_url":"https://github.com/Dubland","followers_url":"https://api.github.com/users/Dubland/followers","following_url":"https://api.github.com/users/Dubland/following{/other_user}","gists_url":"https://api.github.com/users/Dubland/gists{/gist_id}","starred_url":"https://api.github.com/users/Dubland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dubland/subscriptions","organizations_url":"https://api.github.com/users/Dubland/orgs","repos_url":"https://api.github.com/users/Dubland/repos","events_url":"https://api.github.com/users/Dubland/events{/privacy}","received_events_url":"https://api.github.com/users/Dubland/received_events","type":"User","site_admin":false},"body":"/cc @vadimol @Slash32 ","created_at":"2016-08-18T23:00:59Z","updated_at":"2016-08-19T12:13:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5d257b68cc1785b3e0352d848322e98a7c461d30","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kaaproject/sample-apps/pulls/188/commits","review_comments_url":"https://api.github.com/repos/kaaproject/sample-apps/pulls/188/comments","review_comment_url":"https://api.github.com/repos/kaaproject/sample-apps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaaproject/sample-apps/issues/188/comments","statuses_url":"https://api.github.com/repos/kaaproject/sample-apps/statuses/8dd2de22a36a9b1832679dc0ca647073724519a0","head":{"label":"Dubland:APP-153","ref":"APP-153","sha":"8dd2de22a36a9b1832679dc0ca647073724519a0","user":{"login":"Dubland","id":10281806,"avatar_url":"https://avatars.githubusercontent.com/u/10281806?v=3","gravatar_id":"","url":"https://api.github.com/users/Dubland","html_url":"https://github.com/Dubland","followers_url":"https://api.github.com/users/Dubland/followers","following_url":"https://api.github.com/users/Dubland/following{/other_user}","gists_url":"https://api.github.com/users/Dubland/gists{/gist_id}","starred_url":"https://api.github.com/users/Dubland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dubland/subscriptions","organizations_url":"https://api.github.com/users/Dubland/orgs","repos_url":"https://api.github.com/users/Dubland/repos","events_url":"https://api.github.com/users/Dubland/events{/privacy}","received_events_url":"https://api.github.com/users/Dubland/received_events","type":"User","site_admin":false},"repo":{"id":54912255,"name":"sample-apps","full_name":"Dubland/sample-apps","owner":{"login":"Dubland","id":10281806,"avatar_url":"https://avatars.githubusercontent.com/u/10281806?v=3","gravatar_id":"","url":"https://api.github.com/users/Dubland","html_url":"https://github.com/Dubland","followers_url":"https://api.github.com/users/Dubland/followers","following_url":"https://api.github.com/users/Dubland/following{/other_user}","gists_url":"https://api.github.com/users/Dubland/gists{/gist_id}","starred_url":"https://api.github.com/users/Dubland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dubland/subscriptions","organizations_url":"https://api.github.com/users/Dubland/orgs","repos_url":"https://api.github.com/users/Dubland/repos","events_url":"https://api.github.com/users/Dubland/events{/privacy}","received_events_url":"https://api.github.com/users/Dubland/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dubland/sample-apps","description":"Sample applications for Kaa Sandbox","fork":true,"url":"https://api.github.com/repos/Dubland/sample-apps","forks_url":"https://api.github.com/repos/Dubland/sample-apps/forks","keys_url":"https://api.github.com/repos/Dubland/sample-apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dubland/sample-apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dubland/sample-apps/teams","hooks_url":"https://api.github.com/repos/Dubland/sample-apps/hooks","issue_events_url":"https://api.github.com/repos/Dubland/sample-apps/issues/events{/number}","events_url":"https://api.github.com/repos/Dubland/sample-apps/events","assignees_url":"https://api.github.com/repos/Dubland/sample-apps/assignees{/user}","branches_url":"https://api.github.com/repos/Dubland/sample-apps/branches{/branch}","tags_url":"https://api.github.com/repos/Dubland/sample-apps/tags","blobs_url":"https://api.github.com/repos/Dubland/sample-apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dubland/sample-apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dubland/sample-apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dubland/sample-apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dubland/sample-apps/statuses/{sha}","languages_url":"https://api.github.com/repos/Dubland/sample-apps/languages","stargazers_url":"https://api.github.com/repos/Dubland/sample-apps/stargazers","contributors_url":"https://api.github.com/repos/Dubland/sample-apps/contributors","subscribers_url":"https://api.github.com/repos/Dubland/sample-apps/subscribers","subscription_url":"https://api.github.com/repos/Dubland/sample-apps/subscription","commits_url":"https://api.github.com/repos/Dubland/sample-apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dubland/sample-apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dubland/sample-apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dubland/sample-apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dubland/sample-apps/contents/{+path}","compare_url":"https://api.github.com/repos/Dubland/sample-apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dubland/sample-apps/merges","archive_url":"https://api.github.com/repos/Dubland/sample-apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dubland/sample-apps/downloads","issues_url":"https://api.github.com/repos/Dubland/sample-apps/issues{/number}","pulls_url":"https://api.github.com/repos/Dubland/sample-apps/pulls{/number}","milestones_url":"https://api.github.com/repos/Dubland/sample-apps/milestones{/number}","notifications_url":"https://api.github.com/repos/Dubland/sample-apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dubland/sample-apps/labels{/name}","releases_url":"https://api.github.com/repos/Dubland/sample-apps/releases{/id}","deployments_url":"https://api.github.com/repos/Dubland/sample-apps/deployments","created_at":"2016-03-28T18:01:29Z","updated_at":"2016-03-28T18:01:35Z","pushed_at":"2016-08-18T22:58:17Z","git_url":"git://github.com/Dubland/sample-apps.git","ssh_url":"git@github.com:Dubland/sample-apps.git","clone_url":"https://github.com/Dubland/sample-apps.git","svn_url":"https://github.com/Dubland/sample-apps","homepage":null,"size":199372,"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":"kaaproject:develop","ref":"develop","sha":"20d662b8690e54a415bba303cf251e01e39dde6c","user":{"login":"kaaproject","id":6984613,"avatar_url":"https://avatars.githubusercontent.com/u/6984613?v=3","gravatar_id":"","url":"https://api.github.com/users/kaaproject","html_url":"https://github.com/kaaproject","followers_url":"https://api.github.com/users/kaaproject/followers","following_url":"https://api.github.com/users/kaaproject/following{/other_user}","gists_url":"https://api.github.com/users/kaaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/kaaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaaproject/subscriptions","organizations_url":"https://api.github.com/users/kaaproject/orgs","repos_url":"https://api.github.com/users/kaaproject/repos","events_url":"https://api.github.com/users/kaaproject/events{/privacy}","received_events_url":"https://api.github.com/users/kaaproject/received_events","type":"Organization","site_admin":false},"repo":{"id":40200503,"name":"sample-apps","full_name":"kaaproject/sample-apps","owner":{"login":"kaaproject","id":6984613,"avatar_url":"https://avatars.githubusercontent.com/u/6984613?v=3","gravatar_id":"","url":"https://api.github.com/users/kaaproject","html_url":"https://github.com/kaaproject","followers_url":"https://api.github.com/users/kaaproject/followers","following_url":"https://api.github.com/users/kaaproject/following{/other_user}","gists_url":"https://api.github.com/users/kaaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/kaaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaaproject/subscriptions","organizations_url":"https://api.github.com/users/kaaproject/orgs","repos_url":"https://api.github.com/users/kaaproject/repos","events_url":"https://api.github.com/users/kaaproject/events{/privacy}","received_events_url":"https://api.github.com/users/kaaproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaaproject/sample-apps","description":"Sample applications for Kaa Sandbox","fork":false,"url":"https://api.github.com/repos/kaaproject/sample-apps","forks_url":"https://api.github.com/repos/kaaproject/sample-apps/forks","keys_url":"https://api.github.com/repos/kaaproject/sample-apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaaproject/sample-apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaaproject/sample-apps/teams","hooks_url":"https://api.github.com/repos/kaaproject/sample-apps/hooks","issue_events_url":"https://api.github.com/repos/kaaproject/sample-apps/issues/events{/number}","events_url":"https://api.github.com/repos/kaaproject/sample-apps/events","assignees_url":"https://api.github.com/repos/kaaproject/sample-apps/assignees{/user}","branches_url":"https://api.github.com/repos/kaaproject/sample-apps/branches{/branch}","tags_url":"https://api.github.com/repos/kaaproject/sample-apps/tags","blobs_url":"https://api.github.com/repos/kaaproject/sample-apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaaproject/sample-apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaaproject/sample-apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaaproject/sample-apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaaproject/sample-apps/statuses/{sha}","languages_url":"https://api.github.com/repos/kaaproject/sample-apps/languages","stargazers_url":"https://api.github.com/repos/kaaproject/sample-apps/stargazers","contributors_url":"https://api.github.com/repos/kaaproject/sample-apps/contributors","subscribers_url":"https://api.github.com/repos/kaaproject/sample-apps/subscribers","subscription_url":"https://api.github.com/repos/kaaproject/sample-apps/subscription","commits_url":"https://api.github.com/repos/kaaproject/sample-apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaaproject/sample-apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaaproject/sample-apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaaproject/sample-apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaaproject/sample-apps/contents/{+path}","compare_url":"https://api.github.com/repos/kaaproject/sample-apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaaproject/sample-apps/merges","archive_url":"https://api.github.com/repos/kaaproject/sample-apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaaproject/sample-apps/downloads","issues_url":"https://api.github.com/repos/kaaproject/sample-apps/issues{/number}","pulls_url":"https://api.github.com/repos/kaaproject/sample-apps/pulls{/number}","milestones_url":"https://api.github.com/repos/kaaproject/sample-apps/milestones{/number}","notifications_url":"https://api.github.com/repos/kaaproject/sample-apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaaproject/sample-apps/labels{/name}","releases_url":"https://api.github.com/repos/kaaproject/sample-apps/releases{/id}","deployments_url":"https://api.github.com/repos/kaaproject/sample-apps/deployments","created_at":"2015-08-04T18:03:04Z","updated_at":"2016-08-19T06:06:23Z","pushed_at":"2016-08-18T23:01:00Z","git_url":"git://github.com/kaaproject/sample-apps.git","ssh_url":"git@github.com:kaaproject/sample-apps.git","clone_url":"https://github.com/kaaproject/sample-apps.git","svn_url":"https://github.com/kaaproject/sample-apps","homepage":null,"size":229678,"stargazers_count":11,"watchers_count":11,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":10,"forks":42,"open_issues":10,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kaaproject/sample-apps/pulls/188"},"html":{"href":"https://github.com/kaaproject/sample-apps/pull/188"},"issue":{"href":"https://api.github.com/repos/kaaproject/sample-apps/issues/188"},"comments":{"href":"https://api.github.com/repos/kaaproject/sample-apps/issues/188/comments"},"review_comments":{"href":"https://api.github.com/repos/kaaproject/sample-apps/pulls/188/comments"},"review_comment":{"href":"https://api.github.com/repos/kaaproject/sample-apps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaaproject/sample-apps/pulls/188/commits"},"statuses":{"href":"https://api.github.com/repos/kaaproject/sample-apps/statuses/8dd2de22a36a9b1832679dc0ca647073724519a0"}}}}
{"actor":{"display_login":"Slash32"}}