abstract class Shocker
This commit is contained in:
parent
48097a6319
commit
18543a14e5
14
OpenCS2hock/Shocker.cs
Normal file
14
OpenCS2hock/Shocker.cs
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user