Inheritance: System.EventArgs
Esempio n. 1
0
 private void on_message_callback_t(IntPtr opaque,
                                    ref ADLMessageEvent e)
 {
     try
     {
         if (_listener != null)
         {
             _listener.onMessage(MessageEvent.FromNative(e));
         }
     }
     catch (Exception)
     {
     }
 }
Esempio n. 2
0
 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)
 {
 }
 public virtual void onMessage(MessageEvent e)
 {
     if (Message != null)
         Message(this, e);
 }