-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Trinkies
committed
Sep 15, 2022
1 parent
56ab4d4
commit 0e0a830
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
namespace MTJR.HardwareMonitor.Model | ||
{ | ||
/// <summary> | ||
/// Describes common properties for <see cref="IoBrokerState"/> | ||
/// </summary> | ||
public class IoBrokerStateCommon | ||
{ | ||
/// <summary> | ||
/// The descriptive name of the state | ||
/// </summary> | ||
public string Name { get; set; } | ||
/// <summary> | ||
/// The value type of the <see cref="IoBrokerState"/> used values are 'string' and 'number' | ||
/// </summary> | ||
public string Type { get; set; } | ||
/// <summary> | ||
/// The value type of see <see cref="IoBrokerState"/> | ||
/// </summary> | ||
public string Unit { get; set; } | ||
/// <summary> | ||
/// Defines if the <see cref="IoBrokerState"/> could be read | ||
/// </summary> | ||
public bool Read { get; set; } | ||
/// <summary> | ||
/// Defines if the <see cref="IoBrokerState"/> could by written | ||
/// </summary> | ||
public bool Write { get; set; } | ||
/// <summary> | ||
/// The role the <see cref="IoBrokerState"/> is visible to | ||
/// </summary> | ||
public string Role { get; set; } | ||
/// <summary> | ||
/// The minimum value of <see cref="IoBrokerState"/> | ||
/// </summary> | ||
public int Min { get; set; } | ||
|
||
/// <summary> | ||
/// The maximum value of <see cref="IoBrokerState"/> | ||
/// </summary> | ||
public int Max { get; set; } | ||
} | ||
} |