// %BANNER_BEGIN% // --------------------------------------------------------------------- // %COPYRIGHT_BEGIN% // Copyright (c) (2018-2022) Magic Leap, Inc. All Rights Reserved. // Use of this file is governed by the Software License Agreement, located here: https://www.magicleap.com/software-license-agreement-ml2 // Terms and conditions applicable to third-party materials accompanying this distribution may also be found in the top-level NOTICE file appearing herein. // %COPYRIGHT_END% // --------------------------------------------------------------------- // %BANNER_END% namespace UnityEngine.XR.MagicLeap { /// /// MLWebRTC class contains the API to interface with the /// WebRTC C API. /// public partial class MLWebRTC { /// /// Class that represents an ice server used by the MLWebRTC API. /// public partial struct IceServer { /// /// Gets the uri of the ice server. /// public string Uri { get; private set; } /// /// Gets the username to log into the ice server. /// public string UserName { get; private set; } /// /// Gets the password to log into the ice server. /// public string Password { get; private set; } /// /// Factory method used to create a new IceServer object. /// /// The uri of the ice server. /// The username to log into the ice server. /// The password to log into the ice server. /// An ice candidate object with the given handle. public static IceServer Create(string uri, string userName = null, string password = null) { IceServer iceServer = new IceServer() { Uri = uri, UserName = userName, Password = password, }; return iceServer; } public override string ToString() { return $"Uri : {Uri} ; Username : {UserName} ; Password : {Password}"; } } } }