diff --git a/OpenCS2hock/Shocker.cs b/OpenCS2hock/Shocker.cs index 2cb9355..e40177b 100644 --- a/OpenCS2hock/Shocker.cs +++ b/OpenCS2hock/Shocker.cs @@ -2,13 +2,20 @@ public abstract class Shocker { - public string ApiKey, Endpoint; - public enum ControlAction { Beep, Vibrate, Shock } - public abstract void Control(ControlAction action, byte intensity, short duration); + protected readonly HttpClient HttpClient; + protected readonly string ApiKey; + protected readonly string Endpoint; + protected string[] ShockerIds; - public Shocker(string endpoint, string apiKey) + public enum ControlAction { Beep, Vibrate, Shock } + + public abstract void Control(ControlAction action, byte intensity, short duration, string? shockerId = null); + + protected Shocker(string endpoint, string apiKey, string[] shockerIds) { this.Endpoint = endpoint; this.ApiKey = apiKey; + this.HttpClient = new HttpClient(); + this.ShockerIds = shockerIds; } } \ No newline at end of file