Пример #1
0
        internal static MediaConnTypeChangedEvent FromNative(
            ADLMediaConnTypeChangedEvent mediaConnTypeChangedEvnt)
        {
            MediaConnTypeChangedEvent result = new MediaConnTypeChangedEvent();

            result._scopeId   = mediaConnTypeChangedEvnt.scopeId.body;
            result._mediaType =
                MediaType.FromString(mediaConnTypeChangedEvnt.mediaType.body);
            result._connType = ConnectionType.FromString(
                mediaConnTypeChangedEvnt.connectionType.body);
            return(result);
        }
Пример #2
0
 private void on_media_conn_type_changed_callback_t(IntPtr opaque,
                                                    ref ADLMediaConnTypeChangedEvent e)
 {
     try
     {
         if (_listener != null)
         {
             _listener.onMediaConnTypeChanged(
                 MediaConnTypeChangedEvent.FromNative(e));
         }
     }
     catch (Exception)
     {
     }
 }
        private void on_media_conn_type_changed_callback_t(IntPtr opaque,
            ref ADLMediaConnTypeChangedEvent e)
        {
            try
            {

                if (_listener != null)
                    _listener.onMediaConnTypeChanged(
                        MediaConnTypeChangedEvent.FromNative(e));
            }
            catch (Exception )
            {
            }
        }
 internal static MediaConnTypeChangedEvent FromNative(
     ADLMediaConnTypeChangedEvent mediaConnTypeChangedEvnt)
 {
     MediaConnTypeChangedEvent result = new MediaConnTypeChangedEvent();
     result._scopeId = mediaConnTypeChangedEvnt.scopeId.body;
     result._mediaType =
         MediaType.FromString(mediaConnTypeChangedEvnt.mediaType.body);
     result._connType = ConnectionType.FromString(
         mediaConnTypeChangedEvnt.connectionType.body);
     return result;
 }