abstract class Shocker

This commit is contained in:
glax 2024-01-13 21:44:04 +01:00
parent 48097a6319
commit 18543a14e5

14
OpenCS2hock/Shocker.cs Normal file
View File

@ -0,0 +1,14 @@
namespace OpenCS2hock;
public abstract class Shocker
{
public string ApiKey, Endpoint;
public enum ControlAction { Beep, Vibrate, Shock }
public abstract void Control(ControlAction action, byte intensity, short duration);
public Shocker(string endpoint, string apiKey)
{
this.Endpoint = endpoint;
this.ApiKey = apiKey;
}
}