CShock/CShocker/Shockers/Abstract/HttpShocker.cs
2024-01-17 19:33:57 +01:00

17 lines
577 B
C#

using CShocker.Ranges;
using Microsoft.Extensions.Logging;
namespace CShocker.Shockers.Abstract;
public abstract class HttpShocker : Shocker
{
protected readonly HttpClient HttpClient = new();
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)
{
Endpoint = endpoint;
ApiKey = apiKey;
}
}