Formatting

This commit is contained in:
2024-01-20 20:25:31 +01:00
parent d861c95ec3
commit 2d47aa7492
6 changed files with 14 additions and 9 deletions

View File

@ -6,6 +6,7 @@ namespace CShocker.Shockers.Abstract;
public abstract class HttpShocker : Shocker
{
protected readonly HttpClient HttpClient = new();
// ReSharper disable twice MemberCanBeProtected.Global external usage
public string Endpoint { get; init; }
public string ApiKey { get; init; }

View File

@ -10,13 +10,13 @@ namespace CShocker.Shockers.Abstract;
public abstract class SerialShocker : Shocker
{
public SerialPortInfo SerialPortI;
protected SerialPort serialPort;
protected readonly SerialPort SerialPort;
protected SerialShocker(List<string> shockerIds, IntensityRange intensityRange, DurationRange durationRange, SerialPortInfo serialPortI, int baudRate, ShockerApi apiType, ILogger? logger = null) : base(shockerIds, intensityRange, durationRange, apiType, logger)
{
this.SerialPortI = serialPortI;
this.serialPort = new SerialPort(serialPortI.PortName, baudRate);
this.serialPort.Open();
this.SerialPort = new SerialPort(serialPortI.PortName, baudRate);
this.SerialPort.Open();
}
[SupportedOSPlatform("windows")]

View File

@ -6,6 +6,7 @@ namespace CShocker.Shockers.Abstract;
public abstract class Shocker
{
// ReSharper disable 4 times MemberCanBePrivate.Global external use
public readonly List<string> ShockerIds;
public readonly IntensityRange IntensityRange;
public readonly DurationRange DurationRange;