Compare commits

..

No commits in common. "master" and "v1.3.0" have entirely different histories.

4 changed files with 51 additions and 89 deletions

View File

@ -1,33 +0,0 @@
# 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

View File

@ -5,12 +5,13 @@
<RootNamespace>BlubbFish.Utils.IoT.Interfaces</RootNamespace> <RootNamespace>BlubbFish.Utils.IoT.Interfaces</RootNamespace>
<AssemblyName>Iot-Interfaces</AssemblyName> <AssemblyName>Iot-Interfaces</AssemblyName>
<PackageId>Interfaces.IoT.Utils.BlubbFish</PackageId> <PackageId>Interfaces.IoT.Utils.BlubbFish</PackageId>
<Version>1.4.0</Version> <AssemblyVersion>1.0.0</AssemblyVersion>
<FileVersion>1.0.0</FileVersion>
<NeutralLanguage>de-DE</NeutralLanguage> <NeutralLanguage>de-DE</NeutralLanguage>
<Description>Interfaces for IoT-Stuff</Description> <Description>Interfaces for IoT-Stuff</Description>
<Authors>BlubbFish</Authors> <Authors>BlubbFish</Authors>
<Company>BlubbFish</Company> <Company>BlubbFish</Company>
<Copyright>Copyright © BlubbFish 2018 - 09.01.2022</Copyright> <Copyright>Copyright © BlubbFish 2018 - 02.05.2018</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile> <PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageProjectUrl>http://git.blubbfish.net/vs_utils/Iot-Interfaces</PackageProjectUrl> <PackageProjectUrl>http://git.blubbfish.net/vs_utils/Iot-Interfaces</PackageProjectUrl>
<RepositoryUrl>http://git.blubbfish.net/vs_utils/Iot-Interfaces.git</RepositoryUrl> <RepositoryUrl>http://git.blubbfish.net/vs_utils/Iot-Interfaces.git</RepositoryUrl>
@ -22,12 +23,10 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="../CHANGELOG.md" /> <Content Include="../CONTRIBUTING.md" />
<Content Include="../CONTRIBUTING.md" /> <Content Include="../LICENSE" />
<Content Include="../LICENSE" /> <Content Include="../README.md" />
<Content Include="../README.md" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\LICENSE"> <None Include="..\LICENSE">
<Pack>True</Pack> <Pack>True</Pack>

View File

@ -1,48 +1,48 @@
using System; using System;
using System.ComponentModel; using System.ComponentModel;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
namespace BlubbFish.Utils.IoT.Interfaces.Language { namespace BlubbFish.Utils.IoT.Interfaces.Language {
public abstract class Senml { public abstract class Senml {
[SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")] [SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")]
public String n { get; } public String n { get; }
[SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")] [SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")]
public String u { get; } public String u { get; }
[SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")] [SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")]
public Int32 t { get; } public Int32 t { get; }
public enum Units { public enum Units {
[Description("%")] [Description("%")]
Percent, Percent,
[Description("count")] [Description("count")]
CounterValue, CounterValue,
[Description("W")] [Description("W")]
Watt, Watt,
[Description("J")] [Description("J")]
Joule, Joule,
[Description("Cel")] [Description("Cel")]
Celsius, Celsius,
[Description("lx")] [Description("lx")]
Lux Lux
} }
public Senml(String name, Units unit) { public Senml(String name, Units unit) {
this.n = name; this.n = name;
this.u = Helper.GetEnumDescription(unit); this.u = Helper.GetEnumDescription(unit);
this.t = 0; this.t = 0;
} }
} }
public class SenmlBool : Senml { public class SenmlBool : Senml {
[SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")] [SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")]
public Boolean bv { get; } public Boolean bv { get; }
public SenmlBool(String name, Units unit, Boolean level) : base(name, unit) => this.bv = level; public SenmlBool(String name, Units unit, Boolean level) : base(name, unit) => this.bv = level;
} }
public class SenmlDouble : Senml { public class SenmlDouble : Senml {
[SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")] [SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Must be lowercase")]
public Double v { get; } 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;
} }
} }

View File

@ -1,6 +1,2 @@
# BlubbFish.Utils.IoT.Interfaces (Iot-Interfaces) # BlubbFish.Utils.IoT.Interfaces (Iot-Interfaces)
Library that provides Interfaces for IoT stuff Library that provides Interfaces for IoT stuff
## Linking to
### Internal
* BlubbFish.Utils ([Utils](http://git.blubbfish.net/vs_utils/Utils))