Implementation

This commit is contained in:
2024-01-17 04:11:30 +01:00
parent cb432f2b4a
commit 422379cceb
16 changed files with 244 additions and 5 deletions

View File

@ -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;
}

View 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;
}

View File

@ -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)
{
}