Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }