{"action":"closed","issue":{"url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/850","labels_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/850/labels{/name}","comments_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/850/comments","events_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/850/events","html_url":"https://github.com/jessesquires/JSQMessagesViewController/issues/850","id":60459115,"number":850,"title":"How to initialize NSObject for JSQMessageData in swift?","user":{"login":"datomnurdin","id":5416242,"avatar_url":"https://avatars.githubusercontent.com/u/5416242?v=3","gravatar_id":"","url":"https://api.github.com/users/datomnurdin","html_url":"https://github.com/datomnurdin","followers_url":"https://api.github.com/users/datomnurdin/followers","following_url":"https://api.github.com/users/datomnurdin/following{/other_user}","gists_url":"https://api.github.com/users/datomnurdin/gists{/gist_id}","starred_url":"https://api.github.com/users/datomnurdin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datomnurdin/subscriptions","organizations_url":"https://api.github.com/users/datomnurdin/orgs","repos_url":"https://api.github.com/users/datomnurdin/repos","events_url":"https://api.github.com/users/datomnurdin/events{/privacy}","received_events_url":"https://api.github.com/users/datomnurdin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-10T07:03:35Z","updated_at":"2015-03-10T09:23:40Z","closed_at":"2015-03-10T09:23:40Z","body":"I want to create NSObject called Message. How possible I initialize this class based on JSQMessageData in swift?\r\n\r\n```\r\n- (NSString *)senderId;\r\n- (NSString *)senderDisplayName;\r\n- (NSDate *)date;\r\n- (BOOL)isMediaMessage;\r\n- (NSUInteger)hash;\r\n\r\n- (NSString *)text;\r\n- (id<JSQMessageMediaData>)media;\r\n```"}}