From f98b2f8c68d41a09716c3f93276240c3f1f08f0e Mon Sep 17 00:00:00 2001 From: Philippe Wechsler Date: Sat, 19 Jan 2019 13:59:08 +0100 Subject: [PATCH] versioning, switch to dotnet-standard --- .../InnerCore.Api.DeConz.ColorConverters.csproj | 2 +- InnerCore.Api.DeConz/InnerCore.Api.DeConz.csproj | 4 ++-- InnerCore.Api.DeConz/InnerCore.Api.DeConz.nuspec | 6 +++--- .../Models/Bridge/ChangePasswordRequest.cs | 8 ++++---- README.md | 10 ++++------ 5 files changed, 14 insertions(+), 16 deletions(-) diff --git a/InnerCore.Api.DeConz.ColorConverters/InnerCore.Api.DeConz.ColorConverters.csproj b/InnerCore.Api.DeConz.ColorConverters/InnerCore.Api.DeConz.ColorConverters.csproj index ea2ebeb..6b843ff 100644 --- a/InnerCore.Api.DeConz.ColorConverters/InnerCore.Api.DeConz.ColorConverters.csproj +++ b/InnerCore.Api.DeConz.ColorConverters/InnerCore.Api.DeConz.ColorConverters.csproj @@ -1,7 +1,7 @@ - netcoreapp2.2 + netstandard2.0 Philippe Wechsler InnerCore A simple library to communicate with DeConz Zigbee Gateway diff --git a/InnerCore.Api.DeConz/InnerCore.Api.DeConz.csproj b/InnerCore.Api.DeConz/InnerCore.Api.DeConz.csproj index ec11705..50a3104 100644 --- a/InnerCore.Api.DeConz/InnerCore.Api.DeConz.csproj +++ b/InnerCore.Api.DeConz/InnerCore.Api.DeConz.csproj @@ -1,11 +1,11 @@ - netcoreapp2.2 + netstandard2.0 Philippe Wechsler false InnerCore - 0.5.0 + 1.0.0 https://github.com/MadMonkey87/InnerCore.Api.DeConz https://github.com/MadMonkey87/InnerCore.Api.DeConz https://github.com/MadMonkey87/InnerCore.Api.DeConz/blob/master/LICENSE.txt diff --git a/InnerCore.Api.DeConz/InnerCore.Api.DeConz.nuspec b/InnerCore.Api.DeConz/InnerCore.Api.DeConz.nuspec index 06f41f4..e8ad26c 100644 --- a/InnerCore.Api.DeConz/InnerCore.Api.DeConz.nuspec +++ b/InnerCore.Api.DeConz/InnerCore.Api.DeConz.nuspec @@ -2,7 +2,7 @@ InnerCore.Api.DeConz - 0.5-beta + 1.0 InnerCore.Api.DeConz Philippe Wechsler Philippe Wechsler @@ -10,12 +10,12 @@ https://github.com/MadMonkey87/InnerCore.Api.DeConz false A simple library to communicate with DeConz Zigbee Gateway - password management, update firmware/software, scan/reset/identify devices + initial public release Copyright 2019 Philippe Wechsler deconz zigbee sensor - + diff --git a/InnerCore.Api.DeConz/Models/Bridge/ChangePasswordRequest.cs b/InnerCore.Api.DeConz/Models/Bridge/ChangePasswordRequest.cs index 2e03885..910fe8e 100644 --- a/InnerCore.Api.DeConz/Models/Bridge/ChangePasswordRequest.cs +++ b/InnerCore.Api.DeConz/Models/Bridge/ChangePasswordRequest.cs @@ -6,12 +6,12 @@ namespace InnerCore.Api.DeConz.Models.Bridge [DataContract] public class ChangePasswordRequest { - public ChangePasswordRequest(string usename, string oldPassword, string newPassword) + public ChangePasswordRequest(string username, string oldPassword, string newPassword) { - UserName = usename; + UserName = username; - OldPasswordHash = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes($"{usename}:{oldPassword}")); - NewPasswordHash = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes($"{usename}:{newPassword}")); + OldPasswordHash = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes($"{username}:{oldPassword}")); + NewPasswordHash = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes($"{username}:{newPassword}")); } public ChangePasswordRequest(string oldPassword, string newPassword) : this(Constants.DEFAULT_USERNAME, oldPassword, newPassword) diff --git a/README.md b/README.md index 17a2c02..8a428f3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -InnerCore.Api.DeConz [![Build Status][azure build]][project] [![NuGet][nuget badge]][nuget package] +InnerCore.Api.DeConz [![Build Status][azure build]][project] [![NuGet][nuget badge]][nuget package] [![.NET Standard][dotnet-standard badge]][dotnet-standard doc] ==================== Open source library for communication with the Dresden Elektronik DeConz bridge. @@ -11,10 +11,6 @@ Note however, that - some objects might be missing some properties/features if they are not supported by DeConz - some objects have additional properties/features specific to DeConz - requirements: - - dotnet core 2.2 - - DeConz 2.05.54 or later (earlier versions might work too) - ## State The project is currently in it's alpha state: - not all features have been tested (especially scenes, rules and schedules) @@ -121,4 +117,6 @@ Contributions are welcome. Fork this repository and send a pull request if you h [azure build]: https://innercore.visualstudio.com/InnerCore.Api.DeConz/_apis/build/status/InnerCore.Api.DeConz?branchName=master [project]: https://github.com/MadMonkey87/InnerCore.Api.DeConz [nuget badge]: https://img.shields.io/nuget/v/InnerCore.Api.DeConz.svg -[nuget package]: https://www.nuget.org/packages/InnerCore.Api.DeConz \ No newline at end of file +[nuget package]: https://www.nuget.org/packages/InnerCore.Api.DeConz +[dotnet-standard badge]: http://img.shields.io/badge/.NET_Standard-v2.0-green.svg +[dotnet-standard doc]: https://docs.microsoft.com/da-dk/dotnet/articles/standard/library \ No newline at end of file