ADL.ConnectionDescription.toNative C# (CSharp) Method

toNative() private method

private toNative ( ) : ADLConnectionDescription
return ADLConnectionDescription
        internal ADLConnectionDescription toNative()
        {
            var cd = new ADLConnectionDescription();
            cd.autopublishAudio = autopublishAudio;
            cd.autopublishVideo = autopublishVideo;
            cd.scopeId = StringHelper.toNative(scopeId);
            cd.url = StringHelper.toNative(url);
            cd.authDetails = authDetails.toNative();
            cd.videoStream = videoStream.toNative();
            return cd;
        }

Usage Example

Beispiel #1
0
        /**
         * CloudeoService - Connectivity
         * =====================================================================
         */

        /// <inheritdoc />
        public void connect(Responder <object> responder,
                            ConnectionDescription connDescription)
        {
            if (!isPlatformInitialized <object>(responder))
            {
                return;
            }

            var cdn = connDescription.toNative();

            NativeAPI.adl_connect(
                _voidRCallback,
                _platformHandle,
                saveResponder(responder),
                ref cdn);
        }