{"action":"created","issue":{"url":"https://api.github.com/repos/eXigentCoder/krpc-node/issues/13","repository_url":"https://api.github.com/repos/eXigentCoder/krpc-node","labels_url":"https://api.github.com/repos/eXigentCoder/krpc-node/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/eXigentCoder/krpc-node/issues/13/comments","events_url":"https://api.github.com/repos/eXigentCoder/krpc-node/issues/13/events","html_url":"https://github.com/eXigentCoder/krpc-node/issues/13","id":300092646,"number":13,"title":"Make services have a structured hierarchy","user":{"login":"ninjaboynaru","id":24966987,"avatar_url":"https://avatars0.githubusercontent.com/u/24966987?v=4","gravatar_id":"","url":"https://api.github.com/users/ninjaboynaru","html_url":"https://github.com/ninjaboynaru","followers_url":"https://api.github.com/users/ninjaboynaru/followers","following_url":"https://api.github.com/users/ninjaboynaru/following{/other_user}","gists_url":"https://api.github.com/users/ninjaboynaru/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjaboynaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjaboynaru/subscriptions","organizations_url":"https://api.github.com/users/ninjaboynaru/orgs","repos_url":"https://api.github.com/users/ninjaboynaru/repos","events_url":"https://api.github.com/users/ninjaboynaru/events{/privacy}","received_events_url":"https://api.github.com/users/ninjaboynaru/received_events","type":"User","site_admin":false},"labels":[{"id":443554323,"url":"https://api.github.com/repos/eXigentCoder/krpc-node/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-26T02:47:03Z","updated_at":"2018-03-02T05:45:02Z","closed_at":"2018-03-02T05:45:02Z","author_association":"NONE","body":"Having to manauly get the id of the class you want and then pass it to a call is cumbersome.\r\n```\r\nlet response = await client.send(spaceCenter.getActiveVessel());  \r\nlet vesselId = response.results[0].value;  \r\nresponse = await client.send(spaceCenter.vesselGetControl(vesselId));\r\n```\r\nSomething like this would be better\r\n```\r\nlet vessel = await client.services.spaceCenter.activeVessel;\r\nlet control = await vessel.control;\r\ncontrol.sas = true;\r\n```\r\n_I understand this removes the ability to batch send calls._\r\n\r\nIt has already been implemented in [here](https://github.com/lucaelin/krpc.js). I'd be happy to give it a shot and submit a pull request?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eXigentCoder/krpc-node/issues/comments/369827037","html_url":"https://github.com/eXigentCoder/krpc-node/issues/13#issuecomment-369827037","issue_url":"https://api.github.com/repos/eXigentCoder/krpc-node/issues/13","id":369827037,"user":{"login":"ninjaboynaru","id":24966987,"avatar_url":"https://avatars0.githubusercontent.com/u/24966987?v=4","gravatar_id":"","url":"https://api.github.com/users/ninjaboynaru","html_url":"https://github.com/ninjaboynaru","followers_url":"https://api.github.com/users/ninjaboynaru/followers","following_url":"https://api.github.com/users/ninjaboynaru/following{/other_user}","gists_url":"https://api.github.com/users/ninjaboynaru/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjaboynaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjaboynaru/subscriptions","organizations_url":"https://api.github.com/users/ninjaboynaru/orgs","repos_url":"https://api.github.com/users/ninjaboynaru/repos","events_url":"https://api.github.com/users/ninjaboynaru/events{/privacy}","received_events_url":"https://api.github.com/users/ninjaboynaru/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T05:45:02Z","updated_at":"2018-03-02T05:45:02Z","author_association":"NONE","body":"Hay"}}
{"actor":{"display_login":"ninjaboynaru"}}