Beispiel #1
0
 /// <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;
 }
Beispiel #2
0
 /// <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;
 }
Beispiel #3
0
 /// <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;
 }