Public Fields

This commit is contained in:
glax 2024-01-17 19:33:57 +01:00
parent 3703d50d71
commit 3340bb227b
3 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@
<Authors>Glax</Authors>
<RepositoryUrl>https://github.com/C9Glax/CShocker</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Version>1.1</Version>
<Version>1.1.2</Version>
</PropertyGroup>
<ItemGroup>

View File

@ -6,8 +6,8 @@ namespace CShocker.Shockers.Abstract;
public abstract class HttpShocker : Shocker
{
protected readonly HttpClient HttpClient = new();
protected string Endpoint { get; init; }
protected string ApiKey { get; init; }
public string Endpoint { get; init; }
public string ApiKey { get; init; }
protected HttpShocker(List<string> shockerIds, IntensityRange intensityRange, DurationRange durationRange, string endpoint, string apiKey, ILogger? logger = null) : base(shockerIds, intensityRange, durationRange, logger)
{

View File

@ -5,9 +5,9 @@ namespace CShocker.Shockers.Abstract;
public abstract class Shocker
{
protected readonly List<string> ShockerIds;
protected readonly IntensityRange IntensityRange;
protected readonly DurationRange DurationRange;
public readonly List<string> ShockerIds;
public readonly IntensityRange IntensityRange;
public readonly DurationRange DurationRange;
protected readonly ILogger? Logger;
public void Control(ControlAction action, string? shockerId = null, int? intensity = null, int? duration = null)