Formatting
This commit is contained in:
@ -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; }
|
||||
|
||||
|
@ -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")]
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user