internal static MessageEvent FromNative(CDOMessageEvent messageEvnt) { MessageEvent result = new MessageEvent(); result._srcUserId = messageEvnt.srcUserId; result._data = messageEvnt.data.body; return result; }
private void on_message_callback_t(IntPtr opaque, ref CDOMessageEvent e) { try { if (_listener != null) _listener.onMessage(MessageEvent.FromNative(e)); } catch (Exception ) { } }