public ModernFanController(HidDevice hidDevice, byte channel) { reportFactory = new CoolitModernOutputReportFactory(hidDevice) { Channel = channel }; cmd = new CommandStateMachine(hidDevice, reportFactory, new CoolitBridgeResponseValidator()); }
public CoolitDevice(HidDevice hidDevice, byte channel = 0) { deviceEntity = hidDevice; Channel = channel; bridgeReportFactory = new CoolitBridgeOutputReportFactory(deviceEntity) { Channel = channel }; modernReportFactory = new CoolitModernOutputReportFactory(deviceEntity) { Channel = channel }; }