Public Fields
This commit is contained in:
parent
3703d50d71
commit
3340bb227b
@ -7,7 +7,7 @@
|
|||||||
<Authors>Glax</Authors>
|
<Authors>Glax</Authors>
|
||||||
<RepositoryUrl>https://github.com/C9Glax/CShocker</RepositoryUrl>
|
<RepositoryUrl>https://github.com/C9Glax/CShocker</RepositoryUrl>
|
||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
<Version>1.1</Version>
|
<Version>1.1.2</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -6,8 +6,8 @@ namespace CShocker.Shockers.Abstract;
|
|||||||
public abstract class HttpShocker : Shocker
|
public abstract class HttpShocker : Shocker
|
||||||
{
|
{
|
||||||
protected readonly HttpClient HttpClient = new();
|
protected readonly HttpClient HttpClient = new();
|
||||||
protected string Endpoint { get; init; }
|
public string Endpoint { get; init; }
|
||||||
protected string ApiKey { 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)
|
protected HttpShocker(List<string> shockerIds, IntensityRange intensityRange, DurationRange durationRange, string endpoint, string apiKey, ILogger? logger = null) : base(shockerIds, intensityRange, durationRange, logger)
|
||||||
{
|
{
|
||||||
|
@ -5,9 +5,9 @@ namespace CShocker.Shockers.Abstract;
|
|||||||
|
|
||||||
public abstract class Shocker
|
public abstract class Shocker
|
||||||
{
|
{
|
||||||
protected readonly List<string> ShockerIds;
|
public readonly List<string> ShockerIds;
|
||||||
protected readonly IntensityRange IntensityRange;
|
public readonly IntensityRange IntensityRange;
|
||||||
protected readonly DurationRange DurationRange;
|
public readonly DurationRange DurationRange;
|
||||||
protected readonly ILogger? Logger;
|
protected readonly ILogger? Logger;
|
||||||
|
|
||||||
public void Control(ControlAction action, string? shockerId = null, int? intensity = null, int? duration = null)
|
public void Control(ControlAction action, string? shockerId = null, int? intensity = null, int? duration = null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user