コード例 #1
0
        internal static MessageEvent FromNative(ADLMessageEvent messageEvnt)
        {
            MessageEvent result = new MessageEvent();

            result._srcUserId = messageEvnt.srcUserId;
            result._data      = messageEvnt.data.body;
            return(result);
        }
コード例 #2
0
 private void on_message_callback_t(IntPtr opaque,
                                    ref ADLMessageEvent e)
 {
     try
     {
         if (_listener != null)
         {
             _listener.onMessage(MessageEvent.FromNative(e));
         }
     }
     catch (Exception)
     {
     }
 }
コード例 #3
0
 private void on_message_callback_t(IntPtr opaque,
     ref ADLMessageEvent e)
 {
     try
     {
         if (_listener != null)
             _listener.onMessage(MessageEvent.FromNative(e));
     }
     catch (Exception )
     {
     }
 }
コード例 #4
0
 internal static MessageEvent FromNative(ADLMessageEvent messageEvnt)
 {
     MessageEvent result = new MessageEvent();
     result._srcUserId = messageEvnt.srcUserId;
     result._data = messageEvnt.data.body;
     return result;
 }