{"action":"created","issue":{"url":"https://api.github.com/repos/badoo/Chatto/issues/201","repository_url":"https://api.github.com/repos/badoo/Chatto","labels_url":"https://api.github.com/repos/badoo/Chatto/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/badoo/Chatto/issues/201/comments","events_url":"https://api.github.com/repos/badoo/Chatto/issues/201/events","html_url":"https://github.com/badoo/Chatto/issues/201","id":171014665,"number":201,"title":"Having trouble with createPresenterBuilders","user":{"login":"oktapodi","id":184249,"avatar_url":"https://avatars.githubusercontent.com/u/184249?v=3","gravatar_id":"","url":"https://api.github.com/users/oktapodi","html_url":"https://github.com/oktapodi","followers_url":"https://api.github.com/users/oktapodi/followers","following_url":"https://api.github.com/users/oktapodi/following{/other_user}","gists_url":"https://api.github.com/users/oktapodi/gists{/gist_id}","starred_url":"https://api.github.com/users/oktapodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oktapodi/subscriptions","organizations_url":"https://api.github.com/users/oktapodi/orgs","repos_url":"https://api.github.com/users/oktapodi/repos","events_url":"https://api.github.com/users/oktapodi/events{/privacy}","received_events_url":"https://api.github.com/users/oktapodi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-13T15:53:28Z","updated_at":"2016-08-14T04:39:58Z","closed_at":null,"body":"Hi, I'm new to Chattp and not able to fully grasp how all the different builders and presenters fit together.  Ive tried to follow the demo project and modify it to my requirements. Im having trouble with the createPresenterBuilders - here's my code\r\n\r\n```\r\noverride func createPresenterBuilders() -> [ChatItemType: [ChatItemPresenterBuilderProtocol]] {\r\nlet textMessagePresenter = TextMessagePresenterBuilder(viewModelBuilder: TextMessageViewModelDefaultBuilder(), interactionHandler: MyTextMessageHandler())\r\n        \r\n        textMessagePresenter.baseMessageStyle = BaseMessageCollectionViewCellAvatarStyle()\r\n        return [:]\r\n}\r\n```\r\nI get this error when i try to build the above code\r\n`Cannot convert value of type 'MyTextMessageHandler' to expected argument type '_?'`"},"comment":{"url":"https://api.github.com/repos/badoo/Chatto/issues/comments/239655866","html_url":"https://github.com/badoo/Chatto/issues/201#issuecomment-239655866","issue_url":"https://api.github.com/repos/badoo/Chatto/issues/201","id":239655866,"user":{"login":"oktapodi","id":184249,"avatar_url":"https://avatars.githubusercontent.com/u/184249?v=3","gravatar_id":"","url":"https://api.github.com/users/oktapodi","html_url":"https://github.com/oktapodi","followers_url":"https://api.github.com/users/oktapodi/followers","following_url":"https://api.github.com/users/oktapodi/following{/other_user}","gists_url":"https://api.github.com/users/oktapodi/gists{/gist_id}","starred_url":"https://api.github.com/users/oktapodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oktapodi/subscriptions","organizations_url":"https://api.github.com/users/oktapodi/orgs","repos_url":"https://api.github.com/users/oktapodi/repos","events_url":"https://api.github.com/users/oktapodi/events{/privacy}","received_events_url":"https://api.github.com/users/oktapodi/received_events","type":"User","site_admin":false},"created_at":"2016-08-14T04:39:58Z","updated_at":"2016-08-14T04:39:58Z","body":"This is what my interaction handler looks like. \r\n```\r\npublic class MyTextMessageHandler: BaseMessageInteractionHandlerProtocol {\r\n    \r\n    \r\n    public func userDidTapOnFailIcon(viewModel viewModel: MyTextMessageViewModel, failIconView: UIView) {\r\n        print(\"Fail icon\")\r\n    }\r\n    \r\n    public func userDidTapOnAvatar(viewModel viewModel: MyTextMessageViewModel) {\r\n        print(\"Avatar\")\r\n    }\r\n    \r\n    public func userDidTapOnBubble(viewModel viewModel: MyTextMessageViewModel) {\r\n        print(\"Bubble\")\r\n    }\r\n    \r\n    public func userDidBeginLongPressOnBubble(viewModel viewModel: MyTextMessageViewModel) {\r\n        print(\"Long press bubble\")\r\n    }\r\n    \r\n    public func userDidEndLongPressOnBubble(viewModel viewModel: MyTextMessageViewModel) {\r\n        print(\"End long press\")\r\n    }\r\n    \r\n}\r\n```"}}
{"actor":{"display_login":"oktapodi"}}