{"action":"created","comment":{"url":"https://api.github.com/repos/openhab/openhab/pulls/comments/25051045","id":25051045,"diff_hunk":"@@ -0,0 +1,258 @@\n+/**\n+ * Copyright (c) 2010-2014, openHAB.org and others.\n+ *\n+ * All rights reserved. This program and the accompanying materials\n+ * are made available under the terms of the Eclipse Public License v1.0\n+ * which accompanies this distribution, and is available at\n+ * http://www.eclipse.org/legal/epl-v10.html\n+ */\n+package org.openhab.binding.satel.config;\n+\n+import java.util.HashMap;\n+import java.util.Map;\n+\n+import org.openhab.binding.satel.SatelBindingConfig;\n+import org.openhab.binding.satel.internal.event.IntegraStateEvent;\n+import org.openhab.binding.satel.internal.event.SatelEvent;\n+import org.openhab.binding.satel.internal.protocol.SatelMessage;\n+import org.openhab.binding.satel.internal.protocol.command.ControlObjectCommand;\n+import org.openhab.binding.satel.internal.protocol.command.IntegraStateCommand;\n+import org.openhab.binding.satel.internal.types.DoorsState;\n+import org.openhab.binding.satel.internal.types.InputState;\n+import org.openhab.binding.satel.internal.types.IntegraType;\n+import org.openhab.binding.satel.internal.types.ObjectType;\n+import org.openhab.binding.satel.internal.types.OutputControl;\n+import org.openhab.binding.satel.internal.types.OutputState;\n+import org.openhab.binding.satel.internal.types.StateType;\n+import org.openhab.binding.satel.internal.types.ZoneControl;\n+import org.openhab.binding.satel.internal.types.ZoneState;\n+import org.openhab.core.items.Item;\n+import org.openhab.core.library.items.ContactItem;\n+import org.openhab.core.library.items.NumberItem;\n+import org.openhab.core.library.items.SwitchItem;\n+import org.openhab.core.library.types.DecimalType;\n+import org.openhab.core.library.types.OnOffType;\n+import org.openhab.core.library.types.OpenClosedType;\n+import org.openhab.core.types.Command;\n+import org.openhab.core.types.State;\n+import org.openhab.model.item.binding.BindingConfigParseException;\n+\n+/**\n+ * This class implements binding configuration for all items that represents\n+ * Integra zones/inputs/outputs state.\n+ * \n+ * @author Krzysztof Goworek\n+ * @since 1.7.0\n+ */\n+public class IntegraStateBindingConfig implements SatelBindingConfig {\n+\n+\tprivate static final DecimalType DECIMAL_ONE = new DecimalType(1);\n+\n+\tprivate StateType stateType;\n+\tprivate int objectNumber;\n+\tprivate Map<String, String> options;","path":"bundles/binding/org.openhab.binding.satel/src/main/java/org/openhab/binding/satel/config/IntegraStateBindingConfig.java","position":53,"original_position":53,"commit_id":"797c841fbef835c3769e41be04995ae1024cc824","original_commit_id":"797c841fbef835c3769e41be04995ae1024cc824","user":{"login":"teichsta","id":2108636,"avatar_url":"https://avatars.githubusercontent.com/u/2108636?v=3","gravatar_id":"","url":"https://api.github.com/users/teichsta","html_url":"https://github.com/teichsta","followers_url":"https://api.github.com/users/teichsta/followers","following_url":"https://api.github.com/users/teichsta/following{/other_user}","gists_url":"https://api.github.com/users/teichsta/gists{/gist_id}","starred_url":"https://api.github.com/users/teichsta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teichsta/subscriptions","organizations_url":"https://api.github.com/users/teichsta/orgs","repos_url":"https://api.github.com/users/teichsta/repos","events_url":"https://api.github.com/users/teichsta/events{/privacy}","received_events_url":"https://api.github.com/users/teichsta/received_events","type":"User","site_admin":false},"body":"please add some javadoc describing the purpose of the member variables","created_at":"2015-02-20T06:13:43Z","updated_at":"2015-02-20T06:13:43Z","html_url":"https://github.com/openhab/openhab/pull/1750#discussion_r25051045","pull_request_url":"https://api.github.com/repos/openhab/openhab/pulls/1750","_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab/pulls/comments/25051045"},"html":{"href":"https://github.com/openhab/openhab/pull/1750#discussion_r25051045"},"pull_request":{"href":"https://api.github.com/repos/openhab/openhab/pulls/1750"}}},"pull_request":{"url":"https://api.github.com/repos/openhab/openhab/pulls/1750","id":25167561,"html_url":"https://github.com/openhab/openhab/pull/1750","diff_url":"https://github.com/openhab/openhab/pull/1750.diff","patch_url":"https://github.com/openhab/openhab/pull/1750.patch","issue_url":"https://api.github.com/repos/openhab/openhab/issues/1750","number":1750,"state":"open","locked":false,"title":"[new binding] Initial version of Satel Integra security system binding","user":{"login":"druciak","id":998582,"avatar_url":"https://avatars.githubusercontent.com/u/998582?v=3","gravatar_id":"","url":"https://api.github.com/users/druciak","html_url":"https://github.com/druciak","followers_url":"https://api.github.com/users/druciak/followers","following_url":"https://api.github.com/users/druciak/following{/other_user}","gists_url":"https://api.github.com/users/druciak/gists{/gist_id}","starred_url":"https://api.github.com/users/druciak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/druciak/subscriptions","organizations_url":"https://api.github.com/users/druciak/orgs","repos_url":"https://api.github.com/users/druciak/repos","events_url":"https://api.github.com/users/druciak/events{/privacy}","received_events_url":"https://api.github.com/users/druciak/received_events","type":"User","site_admin":false},"body":"This PR replaces  #1723.","created_at":"2014-11-27T19:35:37Z","updated_at":"2015-02-20T06:13:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b157e49dc31a0408117fef803ca105b600fecb66","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openhab/openhab/pulls/1750/commits","review_comments_url":"https://api.github.com/repos/openhab/openhab/pulls/1750/comments","review_comment_url":"https://api.github.com/repos/openhab/openhab/pulls/comments/{number}","comments_url":"https://api.github.com/repos/openhab/openhab/issues/1750/comments","statuses_url":"https://api.github.com/repos/openhab/openhab/statuses/797c841fbef835c3769e41be04995ae1024cc824","head":{"label":"druciak:satel_binding","ref":"satel_binding","sha":"797c841fbef835c3769e41be04995ae1024cc824","user":{"login":"druciak","id":998582,"avatar_url":"https://avatars.githubusercontent.com/u/998582?v=3","gravatar_id":"","url":"https://api.github.com/users/druciak","html_url":"https://github.com/druciak","followers_url":"https://api.github.com/users/druciak/followers","following_url":"https://api.github.com/users/druciak/following{/other_user}","gists_url":"https://api.github.com/users/druciak/gists{/gist_id}","starred_url":"https://api.github.com/users/druciak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/druciak/subscriptions","organizations_url":"https://api.github.com/users/druciak/orgs","repos_url":"https://api.github.com/users/druciak/repos","events_url":"https://api.github.com/users/druciak/events{/privacy}","received_events_url":"https://api.github.com/users/druciak/received_events","type":"User","site_admin":false},"repo":{"id":24363310,"name":"openhab","full_name":"druciak/openhab","owner":{"login":"druciak","id":998582,"avatar_url":"https://avatars.githubusercontent.com/u/998582?v=3","gravatar_id":"","url":"https://api.github.com/users/druciak","html_url":"https://github.com/druciak","followers_url":"https://api.github.com/users/druciak/followers","following_url":"https://api.github.com/users/druciak/following{/other_user}","gists_url":"https://api.github.com/users/druciak/gists{/gist_id}","starred_url":"https://api.github.com/users/druciak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/druciak/subscriptions","organizations_url":"https://api.github.com/users/druciak/orgs","repos_url":"https://api.github.com/users/druciak/repos","events_url":"https://api.github.com/users/druciak/events{/privacy}","received_events_url":"https://api.github.com/users/druciak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/druciak/openhab","description":"Source code of the open Home Automation Bus (openHAB)","fork":true,"url":"https://api.github.com/repos/druciak/openhab","forks_url":"https://api.github.com/repos/druciak/openhab/forks","keys_url":"https://api.github.com/repos/druciak/openhab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/druciak/openhab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/druciak/openhab/teams","hooks_url":"https://api.github.com/repos/druciak/openhab/hooks","issue_events_url":"https://api.github.com/repos/druciak/openhab/issues/events{/number}","events_url":"https://api.github.com/repos/druciak/openhab/events","assignees_url":"https://api.github.com/repos/druciak/openhab/assignees{/user}","branches_url":"https://api.github.com/repos/druciak/openhab/branches{/branch}","tags_url":"https://api.github.com/repos/druciak/openhab/tags","blobs_url":"https://api.github.com/repos/druciak/openhab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/druciak/openhab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/druciak/openhab/git/refs{/sha}","trees_url":"https://api.github.com/repos/druciak/openhab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/druciak/openhab/statuses/{sha}","languages_url":"https://api.github.com/repos/druciak/openhab/languages","stargazers_url":"https://api.github.com/repos/druciak/openhab/stargazers","contributors_url":"https://api.github.com/repos/druciak/openhab/contributors","subscribers_url":"https://api.github.com/repos/druciak/openhab/subscribers","subscription_url":"https://api.github.com/repos/druciak/openhab/subscription","commits_url":"https://api.github.com/repos/druciak/openhab/commits{/sha}","git_commits_url":"https://api.github.com/repos/druciak/openhab/git/commits{/sha}","comments_url":"https://api.github.com/repos/druciak/openhab/comments{/number}","issue_comment_url":"https://api.github.com/repos/druciak/openhab/issues/comments/{number}","contents_url":"https://api.github.com/repos/druciak/openhab/contents/{+path}","compare_url":"https://api.github.com/repos/druciak/openhab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/druciak/openhab/merges","archive_url":"https://api.github.com/repos/druciak/openhab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/druciak/openhab/downloads","issues_url":"https://api.github.com/repos/druciak/openhab/issues{/number}","pulls_url":"https://api.github.com/repos/druciak/openhab/pulls{/number}","milestones_url":"https://api.github.com/repos/druciak/openhab/milestones{/number}","notifications_url":"https://api.github.com/repos/druciak/openhab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/druciak/openhab/labels{/name}","releases_url":"https://api.github.com/repos/druciak/openhab/releases{/id}","created_at":"2014-09-23T08:36:31Z","updated_at":"2015-01-08T18:12:51Z","pushed_at":"2015-01-17T21:32:21Z","git_url":"git://github.com/druciak/openhab.git","ssh_url":"git@github.com:druciak/openhab.git","clone_url":"https://github.com/druciak/openhab.git","svn_url":"https://github.com/druciak/openhab","homepage":null,"size":140890,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"openhab:master","ref":"master","sha":"47a2b2848350c7454f51478627b8b4939ed41ecc","user":{"login":"openhab","id":1007353,"avatar_url":"https://avatars.githubusercontent.com/u/1007353?v=3","gravatar_id":"","url":"https://api.github.com/users/openhab","html_url":"https://github.com/openhab","followers_url":"https://api.github.com/users/openhab/followers","following_url":"https://api.github.com/users/openhab/following{/other_user}","gists_url":"https://api.github.com/users/openhab/gists{/gist_id}","starred_url":"https://api.github.com/users/openhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhab/subscriptions","organizations_url":"https://api.github.com/users/openhab/orgs","repos_url":"https://api.github.com/users/openhab/repos","events_url":"https://api.github.com/users/openhab/events{/privacy}","received_events_url":"https://api.github.com/users/openhab/received_events","type":"Organization","site_admin":false},"repo":{"id":12983151,"name":"openhab","full_name":"openhab/openhab","owner":{"login":"openhab","id":1007353,"avatar_url":"https://avatars.githubusercontent.com/u/1007353?v=3","gravatar_id":"","url":"https://api.github.com/users/openhab","html_url":"https://github.com/openhab","followers_url":"https://api.github.com/users/openhab/followers","following_url":"https://api.github.com/users/openhab/following{/other_user}","gists_url":"https://api.github.com/users/openhab/gists{/gist_id}","starred_url":"https://api.github.com/users/openhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhab/subscriptions","organizations_url":"https://api.github.com/users/openhab/orgs","repos_url":"https://api.github.com/users/openhab/repos","events_url":"https://api.github.com/users/openhab/events{/privacy}","received_events_url":"https://api.github.com/users/openhab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openhab/openhab","description":"Source code of the open Home Automation Bus (openHAB)","fork":false,"url":"https://api.github.com/repos/openhab/openhab","forks_url":"https://api.github.com/repos/openhab/openhab/forks","keys_url":"https://api.github.com/repos/openhab/openhab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openhab/openhab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openhab/openhab/teams","hooks_url":"https://api.github.com/repos/openhab/openhab/hooks","issue_events_url":"https://api.github.com/repos/openhab/openhab/issues/events{/number}","events_url":"https://api.github.com/repos/openhab/openhab/events","assignees_url":"https://api.github.com/repos/openhab/openhab/assignees{/user}","branches_url":"https://api.github.com/repos/openhab/openhab/branches{/branch}","tags_url":"https://api.github.com/repos/openhab/openhab/tags","blobs_url":"https://api.github.com/repos/openhab/openhab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openhab/openhab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openhab/openhab/git/refs{/sha}","trees_url":"https://api.github.com/repos/openhab/openhab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openhab/openhab/statuses/{sha}","languages_url":"https://api.github.com/repos/openhab/openhab/languages","stargazers_url":"https://api.github.com/repos/openhab/openhab/stargazers","contributors_url":"https://api.github.com/repos/openhab/openhab/contributors","subscribers_url":"https://api.github.com/repos/openhab/openhab/subscribers","subscription_url":"https://api.github.com/repos/openhab/openhab/subscription","commits_url":"https://api.github.com/repos/openhab/openhab/commits{/sha}","git_commits_url":"https://api.github.com/repos/openhab/openhab/git/commits{/sha}","comments_url":"https://api.github.com/repos/openhab/openhab/comments{/number}","issue_comment_url":"https://api.github.com/repos/openhab/openhab/issues/comments/{number}","contents_url":"https://api.github.com/repos/openhab/openhab/contents/{+path}","compare_url":"https://api.github.com/repos/openhab/openhab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openhab/openhab/merges","archive_url":"https://api.github.com/repos/openhab/openhab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openhab/openhab/downloads","issues_url":"https://api.github.com/repos/openhab/openhab/issues{/number}","pulls_url":"https://api.github.com/repos/openhab/openhab/pulls{/number}","milestones_url":"https://api.github.com/repos/openhab/openhab/milestones{/number}","notifications_url":"https://api.github.com/repos/openhab/openhab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openhab/openhab/labels{/name}","releases_url":"https://api.github.com/repos/openhab/openhab/releases{/id}","created_at":"2013-09-20T20:28:43Z","updated_at":"2015-02-20T06:05:32Z","pushed_at":"2015-02-20T06:05:32Z","git_url":"git://github.com/openhab/openhab.git","ssh_url":"git@github.com:openhab/openhab.git","clone_url":"https://github.com/openhab/openhab.git","svn_url":"https://github.com/openhab/openhab","homepage":null,"size":190411,"stargazers_count":1097,"watchers_count":1097,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":657,"mirror_url":null,"open_issues_count":434,"forks":657,"open_issues":434,"watchers":1097,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab/pulls/1750"},"html":{"href":"https://github.com/openhab/openhab/pull/1750"},"issue":{"href":"https://api.github.com/repos/openhab/openhab/issues/1750"},"comments":{"href":"https://api.github.com/repos/openhab/openhab/issues/1750/comments"},"review_comments":{"href":"https://api.github.com/repos/openhab/openhab/pulls/1750/comments"},"review_comment":{"href":"https://api.github.com/repos/openhab/openhab/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/openhab/openhab/pulls/1750/commits"},"statuses":{"href":"https://api.github.com/repos/openhab/openhab/statuses/797c841fbef835c3769e41be04995ae1024cc824"}}}}