{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/sarama/issues/305","labels_url":"https://api.github.com/repos/Shopify/sarama/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/sarama/issues/305/comments","events_url":"https://api.github.com/repos/Shopify/sarama/issues/305/events","html_url":"https://github.com/Shopify/sarama/issues/305","id":58790337,"number":305,"title":"Unify ConsumerEvent and ProducerEvent","user":{"login":"wvanbergen","id":15870,"avatar_url":"https://avatars.githubusercontent.com/u/15870?v=3","gravatar_id":"","url":"https://api.github.com/users/wvanbergen","html_url":"https://github.com/wvanbergen","followers_url":"https://api.github.com/users/wvanbergen/followers","following_url":"https://api.github.com/users/wvanbergen/following{/other_user}","gists_url":"https://api.github.com/users/wvanbergen/gists{/gist_id}","starred_url":"https://api.github.com/users/wvanbergen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvanbergen/subscriptions","organizations_url":"https://api.github.com/users/wvanbergen/orgs","repos_url":"https://api.github.com/users/wvanbergen/repos","events_url":"https://api.github.com/users/wvanbergen/events{/privacy}","received_events_url":"https://api.github.com/users/wvanbergen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-02-24T19:24:25Z","updated_at":"2015-03-02T19:16:58Z","closed_at":null,"body":"Can we use one message type instead?\r\n\r\nSee #273. "},"comment":{"url":"https://api.github.com/repos/Shopify/sarama/issues/comments/76787654","html_url":"https://github.com/Shopify/sarama/issues/305#issuecomment-76787654","issue_url":"https://api.github.com/repos/Shopify/sarama/issues/305","id":76787654,"user":{"login":"yagnik","id":777296,"avatar_url":"https://avatars.githubusercontent.com/u/777296?v=3","gravatar_id":"","url":"https://api.github.com/users/yagnik","html_url":"https://github.com/yagnik","followers_url":"https://api.github.com/users/yagnik/followers","following_url":"https://api.github.com/users/yagnik/following{/other_user}","gists_url":"https://api.github.com/users/yagnik/gists{/gist_id}","starred_url":"https://api.github.com/users/yagnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yagnik/subscriptions","organizations_url":"https://api.github.com/users/yagnik/orgs","repos_url":"https://api.github.com/users/yagnik/repos","events_url":"https://api.github.com/users/yagnik/events{/privacy}","received_events_url":"https://api.github.com/users/yagnik/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T19:16:58Z","updated_at":"2015-03-02T19:16:58Z","body":"I might be missing some pieces, but why not use inheritance for this? Event have common field and then producer and cusmer events have their own specific fields.\r\nThat way they both implement common interface with producer adding some niceties around it."}}