2.5.1 Make HTTP Default Endpoint public
This commit is contained in:
parent
cf0a7c630d
commit
318598f62a
@ -7,7 +7,7 @@
|
|||||||
<Authors>Glax</Authors>
|
<Authors>Glax</Authors>
|
||||||
<RepositoryUrl>https://github.com/C9Glax/CShocker</RepositoryUrl>
|
<RepositoryUrl>https://github.com/C9Glax/CShocker</RepositoryUrl>
|
||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
<Version>2.5.0</Version>
|
<Version>2.5.1</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -11,7 +11,7 @@ public abstract class OpenShockApi : Api
|
|||||||
// ReSharper disable twice MemberCanBeProtected.Global -> Exposed
|
// ReSharper disable twice MemberCanBeProtected.Global -> Exposed
|
||||||
public string Endpoint { get; init; }
|
public string Endpoint { get; init; }
|
||||||
public string ApiKey { 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
|
// 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)
|
public OpenShockApi(DeviceApi apiType, string apiKey, string endpoint = DefaultEndpoint, ILogger? logger = null) : base(apiType, new IntegerRange(0, 100), new IntegerRange(300, 30000), logger)
|
||||||
|
Loading…
Reference in New Issue
Block a user