{"action":"opened","issue":{"url":"https://api.github.com/repos/phetsims/capacitor-lab-basics/issues/27","repository_url":"https://api.github.com/repos/phetsims/capacitor-lab-basics","labels_url":"https://api.github.com/repos/phetsims/capacitor-lab-basics/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/phetsims/capacitor-lab-basics/issues/27/comments","events_url":"https://api.github.com/repos/phetsims/capacitor-lab-basics/issues/27/events","html_url":"https://github.com/phetsims/capacitor-lab-basics/issues/27","id":146407948,"number":27,"title":"CircuitSwitch refactor","user":{"login":"andrewadare","id":154163,"avatar_url":"https://avatars.githubusercontent.com/u/154163?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewadare","html_url":"https://github.com/andrewadare","followers_url":"https://api.github.com/users/andrewadare/followers","following_url":"https://api.github.com/users/andrewadare/following{/other_user}","gists_url":"https://api.github.com/users/andrewadare/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewadare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewadare/subscriptions","organizations_url":"https://api.github.com/users/andrewadare/orgs","repos_url":"https://api.github.com/users/andrewadare/repos","events_url":"https://api.github.com/users/andrewadare/events{/privacy}","received_events_url":"https://api.github.com/users/andrewadare/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-06T19:19:31Z","updated_at":"2016-04-06T19:19:31Z","closed_at":null,"body":"There is a substantial amount of duplicated code, and the constructor should be rethought. It takes a lot of code to create each switch, and it is not an intuitive API.\r\n"}}