From 318598f62a71da64313e18348c3712d0679f191a Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 3 Nov 2024 01:15:26 +0100 Subject: [PATCH] 2.5.1 Make HTTP Default Endpoint public --- CShocker/CShocker.csproj | 2 +- CShocker/Devices/Abstract/OpenShockApi.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CShocker/CShocker.csproj b/CShocker/CShocker.csproj index ff79641..ac1b4b1 100644 --- a/CShocker/CShocker.csproj +++ b/CShocker/CShocker.csproj @@ -7,7 +7,7 @@ Glax https://github.com/C9Glax/CShocker git - 2.5.0 + 2.5.1 diff --git a/CShocker/Devices/Abstract/OpenShockApi.cs b/CShocker/Devices/Abstract/OpenShockApi.cs index e6f723f..45eb6b8 100644 --- a/CShocker/Devices/Abstract/OpenShockApi.cs +++ b/CShocker/Devices/Abstract/OpenShockApi.cs @@ -11,7 +11,7 @@ public abstract class OpenShockApi : Api // ReSharper disable twice MemberCanBeProtected.Global -> Exposed public string Endpoint { get; init; } public string ApiKey { get; init; } - private const string DefaultEndpoint = "https://api.openshock.app"; + public const string DefaultEndpoint = "https://api.openshock.app"; // ReSharper disable once PublicConstructorInAbstractClass -> Exposed public OpenShockApi(DeviceApi apiType, string apiKey, string endpoint = DefaultEndpoint, ILogger? logger = null) : base(apiType, new IntegerRange(0, 100), new IntegerRange(300, 30000), logger)