From 39525791cb7aff7e509e28590eed716e539ffff7 Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Sun, 9 Jan 2022 14:29:41 +0100 Subject: [PATCH] [1.4.0] Cleanup --- Changelog.md | 33 ++++++++++ Iot-Interfaces/Iot-Interfaces.csproj | 13 ++-- Iot-Interfaces/Language/Senml.cs | 90 ++++++++++++++-------------- README.md | 4 ++ 4 files changed, 89 insertions(+), 51 deletions(-) create mode 100644 Changelog.md diff --git a/Changelog.md b/Changelog.md new file mode 100644 index 0000000..1298833 --- /dev/null +++ b/Changelog.md @@ -0,0 +1,33 @@ +# Changelog + +## 1.4.0 - 2022-01-09 - Cleanup +### New Features +* add changelog.md +### Bugfixes +### Changes +* add link to utils in readme + +## 1.3.0 - 2021-01-09 - Default netcore +### New Features +### Bugfixes +### Changes +* Netcore is now the default projekt + +## 1.2.0 - 2019-11-25 - Add netcore +### New Features +* add netcore version +### Bugfixes +### Changes +* Using newer C# language version + +## 1.1.0 - 2019-05-29 - Add documentation +### New Features +* Add Readme.md, Licence, Contribution.md +### Bugfixes +### Changes + +## 1.0.0.0 - 2019-02-14 - Init +### New Features +* Init release +### Bugfixes +### Changes \ No newline at end of file diff --git a/Iot-Interfaces/Iot-Interfaces.csproj b/Iot-Interfaces/Iot-Interfaces.csproj index 2cbf228..b3d4dbc 100644 --- a/Iot-Interfaces/Iot-Interfaces.csproj +++ b/Iot-Interfaces/Iot-Interfaces.csproj @@ -5,13 +5,12 @@ BlubbFish.Utils.IoT.Interfaces Iot-Interfaces Interfaces.IoT.Utils.BlubbFish - 1.0.0 - 1.0.0 + 1.4.0 de-DE Interfaces for IoT-Stuff BlubbFish BlubbFish - Copyright © BlubbFish 2018 - 02.05.2018 + Copyright © BlubbFish 2018 - 09.01.2022 LICENSE http://git.blubbfish.net/vs_utils/Iot-Interfaces http://git.blubbfish.net/vs_utils/Iot-Interfaces.git @@ -23,10 +22,12 @@ - - - + + + + + True diff --git a/Iot-Interfaces/Language/Senml.cs b/Iot-Interfaces/Language/Senml.cs index ac7203f..270d103 100644 --- a/Iot-Interfaces/Language/Senml.cs +++ b/Iot-Interfaces/Language/Senml.cs @@ -1,48 +1,48 @@ -using System; -using System.ComponentModel; +using System; +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; - -namespace BlubbFish.Utils.IoT.Interfaces.Language { - public abstract class Senml { - [SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")] - public String n { get; } - [SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")] - public String u { get; } - [SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")] - public Int32 t { get; } - - public enum Units { - [Description("%")] - Percent, - [Description("count")] - CounterValue, - [Description("W")] - Watt, - [Description("J")] - Joule, - [Description("Cel")] - Celsius, - [Description("lx")] - Lux - } - - public Senml(String name, Units unit) { - this.n = name; - this.u = Helper.GetEnumDescription(unit); - this.t = 0; - } - - } - public class SenmlBool : Senml { - [SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")] + +namespace BlubbFish.Utils.IoT.Interfaces.Language { + public abstract class Senml { + [SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")] + public String n { get; } + [SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")] + public String u { get; } + [SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")] + public Int32 t { get; } + + public enum Units { + [Description("%")] + Percent, + [Description("count")] + CounterValue, + [Description("W")] + Watt, + [Description("J")] + Joule, + [Description("Cel")] + Celsius, + [Description("lx")] + Lux + } + + public Senml(String name, Units unit) { + this.n = name; + this.u = Helper.GetEnumDescription(unit); + this.t = 0; + } + + } + public class SenmlBool : Senml { + [SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")] public Boolean bv { get; } - - public SenmlBool(String name, Units unit, Boolean level) : base(name, unit) => this.bv = level; - } - public class SenmlDouble : Senml { - [SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")] + + public SenmlBool(String name, Units unit, Boolean level) : base(name, unit) => this.bv = level; + } + public class SenmlDouble : Senml { + [SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")] public Double v { get; } - - public SenmlDouble(String name, Units unit, Double level) : base(name, unit) => this.v = level; - } -} + + public SenmlDouble(String name, Units unit, Double level) : base(name, unit) => this.v = level; + } +} diff --git a/README.md b/README.md index 8d7769b..d16fe5b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # BlubbFish.Utils.IoT.Interfaces (Iot-Interfaces) Library that provides Interfaces for IoT stuff + +## Linking to +### Internal +* BlubbFish.Utils ([Utils](http://git.blubbfish.net/vs_utils/Utils)) \ No newline at end of file