From: Wootak Jung Date: Fri, 21 May 2021 06:35:33 +0000 (+0900) Subject: [Bluetooth][Non-ACR] Add public constructor for BluetoothDevice (#3065) X-Git-Tag: submit/tizen_6.0/20210521.065102~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8249d6a42f7f4bbadc05791d46bdf79a3df10775;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Bluetooth][Non-ACR] Add public constructor for BluetoothDevice (#3065) --- diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothDevice.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothDevice.cs index 2500e55f5..6f3586f7b 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothDevice.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothDevice.cs @@ -21,6 +21,7 @@ using System.Collections.Concurrent; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Reflection; +using System.ComponentModel; namespace Tizen.Network.Bluetooth { @@ -62,6 +63,16 @@ namespace Tizen.Network.Bluetooth { } + /// + /// The constructor + /// + /// 9 + [EditorBrowsable(EditorBrowsableState.Never)] + public BluetoothDevice(BluetoothLeDevice leDevice) + { + RemoteDeviceAddress = leDevice?.RemoteAddress; + } + /// /// The address of the device. ///