Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
39525791cb |
33
Changelog.md
Normal file
33
Changelog.md
Normal file
@ -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
|
@ -5,13 +5,12 @@
|
||||
<RootNamespace>BlubbFish.Utils.IoT.Interfaces</RootNamespace>
|
||||
<AssemblyName>Iot-Interfaces</AssemblyName>
|
||||
<PackageId>Interfaces.IoT.Utils.BlubbFish</PackageId>
|
||||
<AssemblyVersion>1.0.0</AssemblyVersion>
|
||||
<FileVersion>1.0.0</FileVersion>
|
||||
<Version>1.4.0</Version>
|
||||
<NeutralLanguage>de-DE</NeutralLanguage>
|
||||
<Description>Interfaces for IoT-Stuff</Description>
|
||||
<Authors>BlubbFish</Authors>
|
||||
<Company>BlubbFish</Company>
|
||||
<Copyright>Copyright © BlubbFish 2018 - 02.05.2018</Copyright>
|
||||
<Copyright>Copyright © BlubbFish 2018 - 09.01.2022</Copyright>
|
||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||
<PackageProjectUrl>http://git.blubbfish.net/vs_utils/Iot-Interfaces</PackageProjectUrl>
|
||||
<RepositoryUrl>http://git.blubbfish.net/vs_utils/Iot-Interfaces.git</RepositoryUrl>
|
||||
@ -23,10 +22,12 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="../CONTRIBUTING.md" />
|
||||
<Content Include="../LICENSE" />
|
||||
<Content Include="../README.md" />
|
||||
<Content Include="../CHANGELOG.md" />
|
||||
<Content Include="../CONTRIBUTING.md" />
|
||||
<Content Include="../LICENSE" />
|
||||
<Content Include="../README.md" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="..\LICENSE">
|
||||
<Pack>True</Pack>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user