Fix wrong order on base-constructor call
This commit is contained in:
@ -92,7 +92,7 @@ public class OpenShockHttp : HttpShocker
|
||||
};
|
||||
}
|
||||
|
||||
public OpenShockHttp(List<string> shockerIds, IntensityRange intensityRange, DurationRange durationRange, string apiKey, string endpoint = "https://api.shocklink.net", ILogger? logger = null) : base(shockerIds, intensityRange, durationRange, endpoint, apiKey, ShockerApi.OpenShockHttp, logger)
|
||||
public OpenShockHttp(List<string> shockerIds, IntensityRange intensityRange, DurationRange durationRange, string apiKey, string endpoint = "https://api.shocklink.net", ILogger? logger = null) : base(shockerIds, intensityRange, durationRange, apiKey, endpoint, ShockerApi.OpenShockHttp, logger)
|
||||
{
|
||||
}
|
||||
}
|
@ -9,7 +9,7 @@ namespace CShocker.Shockers.APIS;
|
||||
public class PiShockHttp : HttpShocker
|
||||
{
|
||||
public String Username, ShareCode;
|
||||
public PiShockHttp(List<string> shockerIds, IntensityRange intensityRange, DurationRange durationRange, string apiKey, string username, string shareCode, string endpoint = "https://do.pishock.com/api/apioperate", ILogger? logger = null) : base(shockerIds, intensityRange, durationRange, endpoint, apiKey, ShockerApi.PiShockHttp, logger)
|
||||
public PiShockHttp(List<string> shockerIds, IntensityRange intensityRange, DurationRange durationRange, string apiKey, string username, string shareCode, string endpoint = "https://do.pishock.com/api/apioperate", ILogger? logger = null) : base(shockerIds, intensityRange, durationRange, apiKey, endpoint, ShockerApi.PiShockHttp, logger)
|
||||
{
|
||||
this.Username = username;
|
||||
this.ShareCode = shareCode;
|
||||
|
Reference in New Issue
Block a user