Marking "old" Api as Obsoloete
This commit is contained in:
@ -13,12 +13,8 @@
|
||||
<RepositoryUrl>https://github.com/Locxion/GoveeCSharpConnector</RepositoryUrl>
|
||||
<PackageLicenseUrl>https://github.com/Locxion/GoveeCSharpConnector/blob/main/LICENSE</PackageLicenseUrl>
|
||||
<Version>1.1.2</Version>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
<PackageReadmeFile>../README.md</PackageReadmeFile>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<!-- Add a README.md next to the csproj -->
|
||||
<None Include="README.md" Pack="true" PackagePath=""/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.Net.Http.Json" Version="8.0.0" />
|
||||
<PackageReference Include="System.Reactive" Version="6.0.0" />
|
||||
|
@ -1,6 +1,7 @@
|
||||
using GoveeCSharpConnector.Objects;
|
||||
|
||||
namespace GoveeCSharpConnector.Interfaces;
|
||||
[Obsolete("New Api Reference: https://developer.govee.com/reference/" ,true)]
|
||||
|
||||
public interface IGoveeApiService
|
||||
{
|
||||
@ -9,6 +10,8 @@ public interface IGoveeApiService
|
||||
/// Request Api Key in the Mobile Phone App.
|
||||
/// </summary>
|
||||
/// <param name="apiKey">Api Key as String</param>
|
||||
[Obsolete("New Api Reference: https://developer.govee.com/reference/" ,true)]
|
||||
|
||||
void SetApiKey(string apiKey);
|
||||
|
||||
/// <summary>
|
||||
@ -26,6 +29,8 @@ public interface IGoveeApiService
|
||||
/// Requests all Devices registered to Api Key Govee Account
|
||||
/// </summary>
|
||||
/// <returns>List of GoveeApiDevices</returns>
|
||||
[Obsolete("New Api Reference: https://developer.govee.com/reference/" ,true)]
|
||||
|
||||
Task<List<GoveeApiDevice>> GetDevices();
|
||||
|
||||
/// <summary>
|
||||
@ -34,6 +39,8 @@ public interface IGoveeApiService
|
||||
/// <param name="deviceId">Device Id Guid as string</param>
|
||||
/// <param name="deviceModel">Device Model Number as string</param>
|
||||
/// <returns>GoveeApiStat Object</returns>
|
||||
[Obsolete("New Api Reference: https://developer.govee.com/reference/" ,true)]
|
||||
|
||||
Task<GoveeApiState> GetDeviceState(string deviceId, string deviceModel);
|
||||
|
||||
/// <summary>
|
||||
@ -43,6 +50,8 @@ public interface IGoveeApiService
|
||||
/// <param name="deviceModel">Device Model Number as string</param>
|
||||
/// <param name="on"></param>
|
||||
/// <returns></returns>
|
||||
[Obsolete("New Api Reference: https://developer.govee.com/reference/" ,true)]
|
||||
|
||||
Task ToggleState(string deviceId, string deviceModel, bool on);
|
||||
|
||||
/// <summary>
|
||||
@ -52,6 +61,8 @@ public interface IGoveeApiService
|
||||
/// <param name="deviceModel">Device Model Number as string</param>
|
||||
/// <param name="value">Brightness in Percent as Int</param>
|
||||
/// <returns></returns>
|
||||
[Obsolete("New Api Reference: https://developer.govee.com/reference/" ,true)]
|
||||
|
||||
Task SetBrightness(string deviceId, string deviceModel, int value);
|
||||
|
||||
/// <summary>
|
||||
@ -61,6 +72,8 @@ public interface IGoveeApiService
|
||||
/// <param name="deviceModel">Device Model Number as string</param>
|
||||
/// <param name="color">Rgb Color</param>
|
||||
/// <returns></returns>
|
||||
[Obsolete("New Api Reference: https://developer.govee.com/reference/" ,true)]
|
||||
|
||||
Task SetColor(string deviceId, string deviceModel, RgbColor color);
|
||||
|
||||
/// <summary>
|
||||
@ -70,5 +83,7 @@ public interface IGoveeApiService
|
||||
/// <param name="deviceModel">Device Model Number as string</param>
|
||||
/// <param name="value">Color Temp in Kelvin as Int</param>
|
||||
/// <returns></returns>
|
||||
[Obsolete("New Api Reference: https://developer.govee.com/reference/" ,true)]
|
||||
|
||||
Task SetColorTemp(string deviceId, string deviceModel, int value);
|
||||
}
|
@ -6,6 +6,7 @@ using GoveeCSharpConnector.Objects;
|
||||
|
||||
namespace GoveeCSharpConnector.Services;
|
||||
|
||||
[Obsolete("New Api Reference: https://developer.govee.com/reference/" ,true)]
|
||||
public class GoveeApiService : IGoveeApiService
|
||||
{
|
||||
private string _apiKey = string.Empty;
|
||||
|
Reference in New Issue
Block a user