BluetoothDevice.fromProto constructor

BluetoothDevice.fromProto(
  1. BluetoothDevice p
)

Implementation

BluetoothDevice.fromProto(protos.BluetoothDevice p)
    : id = new DeviceIdentifier(p.remoteId),
      name = p.name,
      type = BluetoothDeviceType.values[p.type.value];