{"action":"closed","issue":{"url":"https://api.github.com/repos/MFlisar/RxBus2/issues/1","repository_url":"https://api.github.com/repos/MFlisar/RxBus2","labels_url":"https://api.github.com/repos/MFlisar/RxBus2/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/MFlisar/RxBus2/issues/1/comments","events_url":"https://api.github.com/repos/MFlisar/RxBus2/issues/1/events","html_url":"https://github.com/MFlisar/RxBus2/issues/1","id":212104001,"number":1,"title":"Improved setup possibilities for handling sub classes","user":{"login":"MFlisar","id":2437726,"avatar_url":"https://avatars2.githubusercontent.com/u/2437726?v=3","gravatar_id":"","url":"https://api.github.com/users/MFlisar","html_url":"https://github.com/MFlisar","followers_url":"https://api.github.com/users/MFlisar/followers","following_url":"https://api.github.com/users/MFlisar/following{/other_user}","gists_url":"https://api.github.com/users/MFlisar/gists{/gist_id}","starred_url":"https://api.github.com/users/MFlisar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MFlisar/subscriptions","organizations_url":"https://api.github.com/users/MFlisar/orgs","repos_url":"https://api.github.com/users/MFlisar/repos","events_url":"https://api.github.com/users/MFlisar/events{/privacy}","received_events_url":"https://api.github.com/users/MFlisar/received_events","type":"User","site_admin":false},"labels":[{"id":547220264,"url":"https://api.github.com/repos/MFlisar/RxBus2/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-06T12:09:14Z","updated_at":"2017-03-07T01:53:44Z","closed_at":"2017-03-07T01:53:44Z","body":"If you have following:\r\n\r\n* `BaseClass`\r\n* `A extends BaseClass`\r\n* `B extends BaseClass`\r\n\r\nyou currently have to take care to send `A` and `B` as casted events if you want any `BaseClass` observers to get the events (and then only those `BaseClass` observers get the event, not the concrete sub class observers). It would be better to tell the bus that you want to listen to `BaseClass` and any inherited class instead. This setup is more flexible and more error prone.\r\n\r\nCurrently I have no *fast* idea how to achieve that...\r\n\r\n**Maybe someone has a good idea?**"}}
{"actor":{"display_login":"MFlisar"}}