/// <summary> /// Initializes a new instance of the <see cref="BluetoothAdapter"/> class. /// </summary> /// <param name="client">The Bluetooth client.</param> /// <param name="device">The Bluetooth device info.</param> internal BluetoothAdapter(BluetoothClient client, BluetoothDevice device) { _client = client; Device = device; Address = device?.Address; }
/// <summary> /// Initializes a new instance of the <see cref="BluetoothAdapter"/> class. /// </summary> /// <param name="device">The remote Bluetooth device.</param> public BluetoothAdapter(BluetoothDevice device) : this(device.Address) { Device = device; }
/// <summary> /// Initializes a new instance of the <see cref="BluetoothAdapter"/> class. /// </summary> /// <param name="device">The remote Bluetooth device.</param> /// <param name="service">The remote Bluetooth device service name.</param> public BluetoothAdapter(BluetoothDevice device, String service) : this(device.Address, service) { Device = device; }