{"action":"created","comment":{"url":"https://api.github.com/repos/myconstellation/constellation-packages/pulls/comments/127216398","pull_request_review_id":49777336,"id":127216398,"diff_hunk":"@@ -0,0 +1,57 @@\n+﻿using Constellation;\n+using Constellation.Package;\n+\n+namespace XiaomiSmartHome.Equipement\n+{\n+    /// <summary>\n+    /// Motuon sensor\n+    /// </summary>\n+    [StateObject]\n+    public class motion\n+    {\n+        /// <summary>\n+        /// Model type.\n+        /// </summary>\n+        public string Model { get; set; } = \"motion\";\n+\n+        /// <summary>\n+        /// SID (mac adress).\n+        /// </summary>\n+        public string Sid { get; set; }\n+\n+        /// <summary>\n+        /// Battery type.\n+        /// </summary>\n+        public string Battery { get; set; } = \"CR2450\";\n+\n+        /// <summary>\n+        /// Battery level.\n+        /// </summary>\n+        public int BatteryLevel { get; set; }\n+\n+        /// <summary>\n+        /// Last report.\n+        /// </summary>\n+        public motion_report Report { get; set; }\n+\n+    }\n+\n+    /// <summary>\n+    /// Motion sensor last report\n+    /// </summary>\n+    [StateObject]\n+    public class motion_report","path":"XiaomiSmartHome/XiaomiSmartHome/Equipement/motion.cs","position":43,"original_position":43,"commit_id":"087a866b873dd20ff4fdde73fbc027cddd0e47b7","original_commit_id":"087a866b873dd20ff4fdde73fbc027cddd0e47b7","user":{"login":"Hydro8","id":5537697,"avatar_url":"https://avatars0.githubusercontent.com/u/5537697?v=3","gravatar_id":"","url":"https://api.github.com/users/Hydro8","html_url":"https://github.com/Hydro8","followers_url":"https://api.github.com/users/Hydro8/followers","following_url":"https://api.github.com/users/Hydro8/following{/other_user}","gists_url":"https://api.github.com/users/Hydro8/gists{/gist_id}","starred_url":"https://api.github.com/users/Hydro8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hydro8/subscriptions","organizations_url":"https://api.github.com/users/Hydro8/orgs","repos_url":"https://api.github.com/users/Hydro8/repos","events_url":"https://api.github.com/users/Hydro8/events{/privacy}","received_events_url":"https://api.github.com/users/Hydro8/received_events","type":"User","site_admin":false},"body":"fait :)","created_at":"2017-07-13T13:31:18Z","updated_at":"2017-07-13T13:31:18Z","html_url":"https://github.com/myconstellation/constellation-packages/pull/22#discussion_r127216398","pull_request_url":"https://api.github.com/repos/myconstellation/constellation-packages/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/myconstellation/constellation-packages/pulls/comments/127216398"},"html":{"href":"https://github.com/myconstellation/constellation-packages/pull/22#discussion_r127216398"},"pull_request":{"href":"https://api.github.com/repos/myconstellation/constellation-packages/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/myconstellation/constellation-packages/pulls/22","id":129877866,"html_url":"https://github.com/myconstellation/constellation-packages/pull/22","diff_url":"https://github.com/myconstellation/constellation-packages/pull/22.diff","patch_url":"https://github.com/myconstellation/constellation-packages/pull/22.patch","issue_url":"https://api.github.com/repos/myconstellation/constellation-packages/issues/22","number":22,"state":"open","locked":false,"title":"XiaomiSmartHome release","user":{"login":"Hydro8","id":5537697,"avatar_url":"https://avatars0.githubusercontent.com/u/5537697?v=3","gravatar_id":"","url":"https://api.github.com/users/Hydro8","html_url":"https://github.com/Hydro8","followers_url":"https://api.github.com/users/Hydro8/followers","following_url":"https://api.github.com/users/Hydro8/following{/other_user}","gists_url":"https://api.github.com/users/Hydro8/gists{/gist_id}","starred_url":"https://api.github.com/users/Hydro8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hydro8/subscriptions","organizations_url":"https://api.github.com/users/Hydro8/orgs","repos_url":"https://api.github.com/users/Hydro8/repos","events_url":"https://api.github.com/users/Hydro8/events{/privacy}","received_events_url":"https://api.github.com/users/Hydro8/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-07-11T10:51:15Z","updated_at":"2017-07-13T13:31:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"52bc9b316c75c9bcafe64e11b53e7644d2b4b202","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/myconstellation/constellation-packages/pulls/22/commits","review_comments_url":"https://api.github.com/repos/myconstellation/constellation-packages/pulls/22/comments","review_comment_url":"https://api.github.com/repos/myconstellation/constellation-packages/pulls/comments{/number}","comments_url":"https://api.github.com/repos/myconstellation/constellation-packages/issues/22/comments","statuses_url":"https://api.github.com/repos/myconstellation/constellation-packages/statuses/087a866b873dd20ff4fdde73fbc027cddd0e47b7","head":{"label":"Hydro8:Xiaomi","ref":"Xiaomi","sha":"087a866b873dd20ff4fdde73fbc027cddd0e47b7","user":{"login":"Hydro8","id":5537697,"avatar_url":"https://avatars0.githubusercontent.com/u/5537697?v=3","gravatar_id":"","url":"https://api.github.com/users/Hydro8","html_url":"https://github.com/Hydro8","followers_url":"https://api.github.com/users/Hydro8/followers","following_url":"https://api.github.com/users/Hydro8/following{/other_user}","gists_url":"https://api.github.com/users/Hydro8/gists{/gist_id}","starred_url":"https://api.github.com/users/Hydro8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hydro8/subscriptions","organizations_url":"https://api.github.com/users/Hydro8/orgs","repos_url":"https://api.github.com/users/Hydro8/repos","events_url":"https://api.github.com/users/Hydro8/events{/privacy}","received_events_url":"https://api.github.com/users/Hydro8/received_events","type":"User","site_admin":false},"repo":{"id":96873860,"name":"constellation-packages","full_name":"Hydro8/constellation-packages","owner":{"login":"Hydro8","id":5537697,"avatar_url":"https://avatars0.githubusercontent.com/u/5537697?v=3","gravatar_id":"","url":"https://api.github.com/users/Hydro8","html_url":"https://github.com/Hydro8","followers_url":"https://api.github.com/users/Hydro8/followers","following_url":"https://api.github.com/users/Hydro8/following{/other_user}","gists_url":"https://api.github.com/users/Hydro8/gists{/gist_id}","starred_url":"https://api.github.com/users/Hydro8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hydro8/subscriptions","organizations_url":"https://api.github.com/users/Hydro8/orgs","repos_url":"https://api.github.com/users/Hydro8/repos","events_url":"https://api.github.com/users/Hydro8/events{/privacy}","received_events_url":"https://api.github.com/users/Hydro8/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Hydro8/constellation-packages","description":"Free packages for Constellation","fork":true,"url":"https://api.github.com/repos/Hydro8/constellation-packages","forks_url":"https://api.github.com/repos/Hydro8/constellation-packages/forks","keys_url":"https://api.github.com/repos/Hydro8/constellation-packages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hydro8/constellation-packages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hydro8/constellation-packages/teams","hooks_url":"https://api.github.com/repos/Hydro8/constellation-packages/hooks","issue_events_url":"https://api.github.com/repos/Hydro8/constellation-packages/issues/events{/number}","events_url":"https://api.github.com/repos/Hydro8/constellation-packages/events","assignees_url":"https://api.github.com/repos/Hydro8/constellation-packages/assignees{/user}","branches_url":"https://api.github.com/repos/Hydro8/constellation-packages/branches{/branch}","tags_url":"https://api.github.com/repos/Hydro8/constellation-packages/tags","blobs_url":"https://api.github.com/repos/Hydro8/constellation-packages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hydro8/constellation-packages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hydro8/constellation-packages/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hydro8/constellation-packages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hydro8/constellation-packages/statuses/{sha}","languages_url":"https://api.github.com/repos/Hydro8/constellation-packages/languages","stargazers_url":"https://api.github.com/repos/Hydro8/constellation-packages/stargazers","contributors_url":"https://api.github.com/repos/Hydro8/constellation-packages/contributors","subscribers_url":"https://api.github.com/repos/Hydro8/constellation-packages/subscribers","subscription_url":"https://api.github.com/repos/Hydro8/constellation-packages/subscription","commits_url":"https://api.github.com/repos/Hydro8/constellation-packages/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hydro8/constellation-packages/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hydro8/constellation-packages/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hydro8/constellation-packages/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hydro8/constellation-packages/contents/{+path}","compare_url":"https://api.github.com/repos/Hydro8/constellation-packages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hydro8/constellation-packages/merges","archive_url":"https://api.github.com/repos/Hydro8/constellation-packages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hydro8/constellation-packages/downloads","issues_url":"https://api.github.com/repos/Hydro8/constellation-packages/issues{/number}","pulls_url":"https://api.github.com/repos/Hydro8/constellation-packages/pulls{/number}","milestones_url":"https://api.github.com/repos/Hydro8/constellation-packages/milestones{/number}","notifications_url":"https://api.github.com/repos/Hydro8/constellation-packages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hydro8/constellation-packages/labels{/name}","releases_url":"https://api.github.com/repos/Hydro8/constellation-packages/releases{/id}","deployments_url":"https://api.github.com/repos/Hydro8/constellation-packages/deployments","created_at":"2017-07-11T09:08:17Z","updated_at":"2017-07-11T09:08:19Z","pushed_at":"2017-07-11T10:49:52Z","git_url":"git://github.com/Hydro8/constellation-packages.git","ssh_url":"git@github.com:Hydro8/constellation-packages.git","clone_url":"https://github.com/Hydro8/constellation-packages.git","svn_url":"https://github.com/Hydro8/constellation-packages","homepage":"http://www.myconstellation.io","size":1377,"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":"myconstellation:master","ref":"master","sha":"538501936c61409c9a80c957ca0a718349e78ee4","user":{"login":"myconstellation","id":10864934,"avatar_url":"https://avatars1.githubusercontent.com/u/10864934?v=3","gravatar_id":"","url":"https://api.github.com/users/myconstellation","html_url":"https://github.com/myconstellation","followers_url":"https://api.github.com/users/myconstellation/followers","following_url":"https://api.github.com/users/myconstellation/following{/other_user}","gists_url":"https://api.github.com/users/myconstellation/gists{/gist_id}","starred_url":"https://api.github.com/users/myconstellation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myconstellation/subscriptions","organizations_url":"https://api.github.com/users/myconstellation/orgs","repos_url":"https://api.github.com/users/myconstellation/repos","events_url":"https://api.github.com/users/myconstellation/events{/privacy}","received_events_url":"https://api.github.com/users/myconstellation/received_events","type":"Organization","site_admin":false},"repo":{"id":61618984,"name":"constellation-packages","full_name":"myconstellation/constellation-packages","owner":{"login":"myconstellation","id":10864934,"avatar_url":"https://avatars1.githubusercontent.com/u/10864934?v=3","gravatar_id":"","url":"https://api.github.com/users/myconstellation","html_url":"https://github.com/myconstellation","followers_url":"https://api.github.com/users/myconstellation/followers","following_url":"https://api.github.com/users/myconstellation/following{/other_user}","gists_url":"https://api.github.com/users/myconstellation/gists{/gist_id}","starred_url":"https://api.github.com/users/myconstellation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myconstellation/subscriptions","organizations_url":"https://api.github.com/users/myconstellation/orgs","repos_url":"https://api.github.com/users/myconstellation/repos","events_url":"https://api.github.com/users/myconstellation/events{/privacy}","received_events_url":"https://api.github.com/users/myconstellation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/myconstellation/constellation-packages","description":"Free packages for Constellation","fork":false,"url":"https://api.github.com/repos/myconstellation/constellation-packages","forks_url":"https://api.github.com/repos/myconstellation/constellation-packages/forks","keys_url":"https://api.github.com/repos/myconstellation/constellation-packages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/myconstellation/constellation-packages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/myconstellation/constellation-packages/teams","hooks_url":"https://api.github.com/repos/myconstellation/constellation-packages/hooks","issue_events_url":"https://api.github.com/repos/myconstellation/constellation-packages/issues/events{/number}","events_url":"https://api.github.com/repos/myconstellation/constellation-packages/events","assignees_url":"https://api.github.com/repos/myconstellation/constellation-packages/assignees{/user}","branches_url":"https://api.github.com/repos/myconstellation/constellation-packages/branches{/branch}","tags_url":"https://api.github.com/repos/myconstellation/constellation-packages/tags","blobs_url":"https://api.github.com/repos/myconstellation/constellation-packages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/myconstellation/constellation-packages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/myconstellation/constellation-packages/git/refs{/sha}","trees_url":"https://api.github.com/repos/myconstellation/constellation-packages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/myconstellation/constellation-packages/statuses/{sha}","languages_url":"https://api.github.com/repos/myconstellation/constellation-packages/languages","stargazers_url":"https://api.github.com/repos/myconstellation/constellation-packages/stargazers","contributors_url":"https://api.github.com/repos/myconstellation/constellation-packages/contributors","subscribers_url":"https://api.github.com/repos/myconstellation/constellation-packages/subscribers","subscription_url":"https://api.github.com/repos/myconstellation/constellation-packages/subscription","commits_url":"https://api.github.com/repos/myconstellation/constellation-packages/commits{/sha}","git_commits_url":"https://api.github.com/repos/myconstellation/constellation-packages/git/commits{/sha}","comments_url":"https://api.github.com/repos/myconstellation/constellation-packages/comments{/number}","issue_comment_url":"https://api.github.com/repos/myconstellation/constellation-packages/issues/comments{/number}","contents_url":"https://api.github.com/repos/myconstellation/constellation-packages/contents/{+path}","compare_url":"https://api.github.com/repos/myconstellation/constellation-packages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/myconstellation/constellation-packages/merges","archive_url":"https://api.github.com/repos/myconstellation/constellation-packages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/myconstellation/constellation-packages/downloads","issues_url":"https://api.github.com/repos/myconstellation/constellation-packages/issues{/number}","pulls_url":"https://api.github.com/repos/myconstellation/constellation-packages/pulls{/number}","milestones_url":"https://api.github.com/repos/myconstellation/constellation-packages/milestones{/number}","notifications_url":"https://api.github.com/repos/myconstellation/constellation-packages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/myconstellation/constellation-packages/labels{/name}","releases_url":"https://api.github.com/repos/myconstellation/constellation-packages/releases{/id}","deployments_url":"https://api.github.com/repos/myconstellation/constellation-packages/deployments","created_at":"2016-06-21T09:05:52Z","updated_at":"2017-07-07T09:51:24Z","pushed_at":"2017-07-11T10:51:15Z","git_url":"git://github.com/myconstellation/constellation-packages.git","ssh_url":"git@github.com:myconstellation/constellation-packages.git","clone_url":"https://github.com/myconstellation/constellation-packages.git","svn_url":"https://github.com/myconstellation/constellation-packages","homepage":"http://www.myconstellation.io","size":1361,"stargazers_count":10,"watchers_count":10,"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":2,"forks":11,"open_issues":2,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/myconstellation/constellation-packages/pulls/22"},"html":{"href":"https://github.com/myconstellation/constellation-packages/pull/22"},"issue":{"href":"https://api.github.com/repos/myconstellation/constellation-packages/issues/22"},"comments":{"href":"https://api.github.com/repos/myconstellation/constellation-packages/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/myconstellation/constellation-packages/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/myconstellation/constellation-packages/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/myconstellation/constellation-packages/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/myconstellation/constellation-packages/statuses/087a866b873dd20ff4fdde73fbc027cddd0e47b7"}}}}
{"actor":{"display_login":"Hydro8"}}