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