[Bluetooth][Non-ACR] Add public constructor for BluetoothDevice (#3065)
authorWootak Jung <wootak.jung@samsung.com>
Fri, 21 May 2021 06:35:33 +0000 (15:35 +0900)
committerGitHub <noreply@github.com>
Fri, 21 May 2021 06:35:33 +0000 (15:35 +0900)
src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothDevice.cs

index 2500e55..6f3586f 100644 (file)
@@ -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
 {
@@ -63,6 +64,16 @@ namespace Tizen.Network.Bluetooth
         }
 
         /// <summary>
+        /// The constructor
+        /// </summary>
+        /// <since_tizen> 9 </since_tizen>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public BluetoothDevice(BluetoothLeDevice leDevice)
+        {
+            RemoteDeviceAddress = leDevice?.RemoteAddress;
+        }
+
+        /// <summary>
         /// The address of the device.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>