Implementation
This commit is contained in:
@ -0,0 +1,10 @@
|
||||
using CShocker.Ranges;
|
||||
|
||||
namespace CShocker.Shockers.ShockerSettings.Abstract;
|
||||
|
||||
public abstract record AShockerSettings(string[] ShockerIds, IntensityRange Intensity, DurationRange Duration)
|
||||
{
|
||||
internal readonly string[] ShockerIds = ShockerIds;
|
||||
internal readonly IntensityRange Intensity = Intensity;
|
||||
internal readonly DurationRange Duration = Duration;
|
||||
}
|
10
CShocker/Shockers/ShockerSettings/HttpShockerSettings.cs
Normal file
10
CShocker/Shockers/ShockerSettings/HttpShockerSettings.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using CShocker.Ranges;
|
||||
using CShocker.Shockers.ShockerSettings.Abstract;
|
||||
|
||||
namespace CShocker.Shockers.ShockerSettings;
|
||||
|
||||
public abstract record HttpShockerSettings(string[] ShockerIds, IntensityRange Intensity, DurationRange Duration, string ApiKey, string Endpoint) : AShockerSettings(ShockerIds, Intensity, Duration)
|
||||
{
|
||||
internal readonly HttpClient HttpClient = new ();
|
||||
internal readonly string ApiKey = ApiKey, Endpoint = Endpoint;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
using CShocker.Ranges;
|
||||
using CShocker.Shockers.ShockerSettings.Abstract;
|
||||
|
||||
namespace CShocker.Shockers.ShockerSettings;
|
||||
|
||||
public record SerialShockerSettings(string[] ShockerIds, IntensityRange Intensity, DurationRange Duration) : AShockerSettings(ShockerIds, Intensity, Duration)
|
||||
{
|
||||
|
||||
}
|
Reference in New Issue
Block a user