{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/smarthome/pulls/comments/32308738","id":32308738,"diff_hunk":"@@ -0,0 +1,90 @@\n+/**\n+ * Copyright (c) 2014-2015 openHAB UG (haftungsbeschraenkt) and others.\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+\n+package org.eclipse.smarthome.core.library.types;\n+\n+import java.util.Formatter;\n+import java.util.SortedMap;\n+import java.util.TreeMap;\n+\n+import org.eclipse.smarthome.core.library.types.StringType;\n+import org.eclipse.smarthome.core.types.Command;\n+import org.eclipse.smarthome.core.types.ComplexType;\n+import org.eclipse.smarthome.core.types.PrimitiveType;\n+import org.eclipse.smarthome.core.types.State;\n+\n+\n+/**\n+ * This type can be used for items that are dealing with telephony functionality.\n+ * \n+ * @author Thomas.Eichstaedt-Engelen / Initially CallType\n+ * @author Gaël L'hopital - port to Eclipse SmartHome\n+ * \n+ */\n+public class GenericComplexType implements ComplexType, Command, State {\n+\t\n+\tprivate SortedMap<String, PrimitiveType> typeDetails = new TreeMap<String, PrimitiveType>();\n+\t\n+\tpublic GenericComplexType(StringType...elements) {\n+\t\tfor (StringType element : elements) {\n+\t\t\tString[] parts = element.toString().split(\"=\");\n+\t\t\tif (elements.length == 2) {","path":"bundles/core/org.eclipse.smarthome.core.library/src/main/java/org/eclipse/smarthome/core/library/types/GenericComplexType.java","position":36,"original_position":36,"commit_id":"787e94cafc24eb8e4314c62dfc507fb2638034e6","original_commit_id":"787e94cafc24eb8e4314c62dfc507fb2638034e6","user":{"login":"clinique","id":3328789,"avatar_url":"https://avatars.githubusercontent.com/u/3328789?v=3","gravatar_id":"","url":"https://api.github.com/users/clinique","html_url":"https://github.com/clinique","followers_url":"https://api.github.com/users/clinique/followers","following_url":"https://api.github.com/users/clinique/following{/other_user}","gists_url":"https://api.github.com/users/clinique/gists{/gist_id}","starred_url":"https://api.github.com/users/clinique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clinique/subscriptions","organizations_url":"https://api.github.com/users/clinique/orgs","repos_url":"https://api.github.com/users/clinique/repos","events_url":"https://api.github.com/users/clinique/events{/privacy}","received_events_url":"https://api.github.com/users/clinique/received_events","type":"User","site_admin":false},"body":"...and then dropping the key/value slipping constructor ? I agree","created_at":"2015-06-12T11:39:45Z","updated_at":"2015-06-12T11:39:45Z","html_url":"https://github.com/eclipse/smarthome/pull/236#discussion_r32308738","pull_request_url":"https://api.github.com/repos/eclipse/smarthome/pulls/236","_links":{"self":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/comments/32308738"},"html":{"href":"https://github.com/eclipse/smarthome/pull/236#discussion_r32308738"},"pull_request":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/236"}}},"pull_request":{"url":"https://api.github.com/repos/eclipse/smarthome/pulls/236","id":31954976,"html_url":"https://github.com/eclipse/smarthome/pull/236","diff_url":"https://github.com/eclipse/smarthome/pull/236.diff","patch_url":"https://github.com/eclipse/smarthome/pull/236.patch","issue_url":"https://api.github.com/repos/eclipse/smarthome/issues/236","number":236,"state":"open","locked":false,"title":"Importing CallType and Item","user":{"login":"clinique","id":3328789,"avatar_url":"https://avatars.githubusercontent.com/u/3328789?v=3","gravatar_id":"","url":"https://api.github.com/users/clinique","html_url":"https://github.com/clinique","followers_url":"https://api.github.com/users/clinique/followers","following_url":"https://api.github.com/users/clinique/following{/other_user}","gists_url":"https://api.github.com/users/clinique/gists{/gist_id}","starred_url":"https://api.github.com/users/clinique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clinique/subscriptions","organizations_url":"https://api.github.com/users/clinique/orgs","repos_url":"https://api.github.com/users/clinique/repos","events_url":"https://api.github.com/users/clinique/events{/privacy}","received_events_url":"https://api.github.com/users/clinique/received_events","type":"User","site_admin":false},"body":"Signed-off-by: sysadmin <glhopital@gmail.com>","created_at":"2015-03-25T19:01:42Z","updated_at":"2015-06-12T11:39:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd5774b0d213d2cb4673f33c1c1edb9e5f133cb2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eclipse/smarthome/pulls/236/commits","review_comments_url":"https://api.github.com/repos/eclipse/smarthome/pulls/236/comments","review_comment_url":"https://api.github.com/repos/eclipse/smarthome/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/smarthome/issues/236/comments","statuses_url":"https://api.github.com/repos/eclipse/smarthome/statuses/787e94cafc24eb8e4314c62dfc507fb2638034e6","head":{"label":"clinique:CallType","ref":"CallType","sha":"787e94cafc24eb8e4314c62dfc507fb2638034e6","user":{"login":"clinique","id":3328789,"avatar_url":"https://avatars.githubusercontent.com/u/3328789?v=3","gravatar_id":"","url":"https://api.github.com/users/clinique","html_url":"https://github.com/clinique","followers_url":"https://api.github.com/users/clinique/followers","following_url":"https://api.github.com/users/clinique/following{/other_user}","gists_url":"https://api.github.com/users/clinique/gists{/gist_id}","starred_url":"https://api.github.com/users/clinique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clinique/subscriptions","organizations_url":"https://api.github.com/users/clinique/orgs","repos_url":"https://api.github.com/users/clinique/repos","events_url":"https://api.github.com/users/clinique/events{/privacy}","received_events_url":"https://api.github.com/users/clinique/received_events","type":"User","site_admin":false},"repo":{"id":32462354,"name":"smarthome","full_name":"clinique/smarthome","owner":{"login":"clinique","id":3328789,"avatar_url":"https://avatars.githubusercontent.com/u/3328789?v=3","gravatar_id":"","url":"https://api.github.com/users/clinique","html_url":"https://github.com/clinique","followers_url":"https://api.github.com/users/clinique/followers","following_url":"https://api.github.com/users/clinique/following{/other_user}","gists_url":"https://api.github.com/users/clinique/gists{/gist_id}","starred_url":"https://api.github.com/users/clinique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clinique/subscriptions","organizations_url":"https://api.github.com/users/clinique/orgs","repos_url":"https://api.github.com/users/clinique/repos","events_url":"https://api.github.com/users/clinique/events{/privacy}","received_events_url":"https://api.github.com/users/clinique/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/clinique/smarthome","description":"Eclipse SmartHome project","fork":true,"url":"https://api.github.com/repos/clinique/smarthome","forks_url":"https://api.github.com/repos/clinique/smarthome/forks","keys_url":"https://api.github.com/repos/clinique/smarthome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clinique/smarthome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clinique/smarthome/teams","hooks_url":"https://api.github.com/repos/clinique/smarthome/hooks","issue_events_url":"https://api.github.com/repos/clinique/smarthome/issues/events{/number}","events_url":"https://api.github.com/repos/clinique/smarthome/events","assignees_url":"https://api.github.com/repos/clinique/smarthome/assignees{/user}","branches_url":"https://api.github.com/repos/clinique/smarthome/branches{/branch}","tags_url":"https://api.github.com/repos/clinique/smarthome/tags","blobs_url":"https://api.github.com/repos/clinique/smarthome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clinique/smarthome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clinique/smarthome/git/refs{/sha}","trees_url":"https://api.github.com/repos/clinique/smarthome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clinique/smarthome/statuses/{sha}","languages_url":"https://api.github.com/repos/clinique/smarthome/languages","stargazers_url":"https://api.github.com/repos/clinique/smarthome/stargazers","contributors_url":"https://api.github.com/repos/clinique/smarthome/contributors","subscribers_url":"https://api.github.com/repos/clinique/smarthome/subscribers","subscription_url":"https://api.github.com/repos/clinique/smarthome/subscription","commits_url":"https://api.github.com/repos/clinique/smarthome/commits{/sha}","git_commits_url":"https://api.github.com/repos/clinique/smarthome/git/commits{/sha}","comments_url":"https://api.github.com/repos/clinique/smarthome/comments{/number}","issue_comment_url":"https://api.github.com/repos/clinique/smarthome/issues/comments{/number}","contents_url":"https://api.github.com/repos/clinique/smarthome/contents/{+path}","compare_url":"https://api.github.com/repos/clinique/smarthome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clinique/smarthome/merges","archive_url":"https://api.github.com/repos/clinique/smarthome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clinique/smarthome/downloads","issues_url":"https://api.github.com/repos/clinique/smarthome/issues{/number}","pulls_url":"https://api.github.com/repos/clinique/smarthome/pulls{/number}","milestones_url":"https://api.github.com/repos/clinique/smarthome/milestones{/number}","notifications_url":"https://api.github.com/repos/clinique/smarthome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clinique/smarthome/labels{/name}","releases_url":"https://api.github.com/repos/clinique/smarthome/releases{/id}","created_at":"2015-03-18T14:04:36Z","updated_at":"2015-03-18T14:04:40Z","pushed_at":"2015-06-12T09:40:06Z","git_url":"git://github.com/clinique/smarthome.git","ssh_url":"git@github.com:clinique/smarthome.git","clone_url":"https://github.com/clinique/smarthome.git","svn_url":"https://github.com/clinique/smarthome","homepage":null,"size":8695,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"eclipse:master","ref":"master","sha":"6ba012b76d5e85be4659c107dc46100b3af9a4f7","user":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":15778981,"name":"smarthome","full_name":"eclipse/smarthome","owner":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipse/smarthome","description":"Eclipse SmartHome project","fork":false,"url":"https://api.github.com/repos/eclipse/smarthome","forks_url":"https://api.github.com/repos/eclipse/smarthome/forks","keys_url":"https://api.github.com/repos/eclipse/smarthome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/smarthome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/smarthome/teams","hooks_url":"https://api.github.com/repos/eclipse/smarthome/hooks","issue_events_url":"https://api.github.com/repos/eclipse/smarthome/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/smarthome/events","assignees_url":"https://api.github.com/repos/eclipse/smarthome/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/smarthome/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/smarthome/tags","blobs_url":"https://api.github.com/repos/eclipse/smarthome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/smarthome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/smarthome/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/smarthome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/smarthome/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/smarthome/languages","stargazers_url":"https://api.github.com/repos/eclipse/smarthome/stargazers","contributors_url":"https://api.github.com/repos/eclipse/smarthome/contributors","subscribers_url":"https://api.github.com/repos/eclipse/smarthome/subscribers","subscription_url":"https://api.github.com/repos/eclipse/smarthome/subscription","commits_url":"https://api.github.com/repos/eclipse/smarthome/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/smarthome/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/smarthome/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/smarthome/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/smarthome/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/smarthome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/smarthome/merges","archive_url":"https://api.github.com/repos/eclipse/smarthome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/smarthome/downloads","issues_url":"https://api.github.com/repos/eclipse/smarthome/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/smarthome/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/smarthome/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/smarthome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/smarthome/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/smarthome/releases{/id}","created_at":"2014-01-09T20:47:19Z","updated_at":"2015-06-11T11:29:12Z","pushed_at":"2015-06-12T10:07:21Z","git_url":"git://github.com/eclipse/smarthome.git","ssh_url":"git@github.com:eclipse/smarthome.git","clone_url":"https://github.com/eclipse/smarthome.git","svn_url":"https://github.com/eclipse/smarthome","homepage":null,"size":13827,"stargazers_count":151,"watchers_count":151,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":144,"mirror_url":null,"open_issues_count":10,"forks":144,"open_issues":10,"watchers":151,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/236"},"html":{"href":"https://github.com/eclipse/smarthome/pull/236"},"issue":{"href":"https://api.github.com/repos/eclipse/smarthome/issues/236"},"comments":{"href":"https://api.github.com/repos/eclipse/smarthome/issues/236/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/236/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/236/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/smarthome/statuses/787e94cafc24eb8e4314c62dfc507fb2638034e6"}}}}