From ae5429ba657490b072db71999f67920b47c5b197 Mon Sep 17 00:00:00 2001 From: glax Date: Fri, 19 Jan 2024 02:28:10 +0100 Subject: [PATCH] Fix wrong order on base-constructor call --- CShocker/CShocker.csproj | 2 +- CShocker/Shockers/APIS/OpenShockHttp.cs | 2 +- CShocker/Shockers/APIS/PiShockHttp.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CShocker/CShocker.csproj b/CShocker/CShocker.csproj index 8ab0a35..279caaa 100644 --- a/CShocker/CShocker.csproj +++ b/CShocker/CShocker.csproj @@ -7,7 +7,7 @@ Glax https://github.com/C9Glax/CShocker git - 1.2.3 + 1.2.4 diff --git a/CShocker/Shockers/APIS/OpenShockHttp.cs b/CShocker/Shockers/APIS/OpenShockHttp.cs index e9ae6f6..38d8497 100644 --- a/CShocker/Shockers/APIS/OpenShockHttp.cs +++ b/CShocker/Shockers/APIS/OpenShockHttp.cs @@ -92,7 +92,7 @@ public class OpenShockHttp : HttpShocker }; } - public OpenShockHttp(List 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 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) { } } \ No newline at end of file diff --git a/CShocker/Shockers/APIS/PiShockHttp.cs b/CShocker/Shockers/APIS/PiShockHttp.cs index 4071796..214b62a 100644 --- a/CShocker/Shockers/APIS/PiShockHttp.cs +++ b/CShocker/Shockers/APIS/PiShockHttp.cs @@ -9,7 +9,7 @@ namespace CShocker.Shockers.APIS; public class PiShockHttp : HttpShocker { public String Username, ShareCode; - public PiShockHttp(List 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 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;