Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ErrorItem.cs
1using System;
2using System.Windows.Media;
4using Waher.Things;
5
7{
11 public class ErrorItem : ColorableItem
12 {
13 private readonly ThingError error;
14
20 : base(Colors.Yellow, Colors.Red)
21 {
22 this.error = Error;
23 }
24
28 public ThingError Error => this.error;
29
33 public string Timestamp
34 {
35 get
36 {
37 return this.error.Timestamp.ToShortDateString() + ", " + this.error.Timestamp.ToLongTimeString();
38 }
39 }
40
44 public string FieldName { get { return string.Empty; } }
45
49 public string Value
50 {
51 get
52 {
53 return this.error.ErrorMessage;
54 }
55 }
56
60 public string Unit
61 {
62 get
63 {
64 return string.Empty;
65 }
66 }
67
71 public string Status
72 {
73 get
74 {
75 return "Error";
76 }
77 }
78
82 public string Type
83 {
84 get
85 {
86 return string.Empty;
87 }
88 }
89
90 public string Alignment
91 {
92 get
93 {
94 return "Left";
95 }
96 }
97
98 }
99}
Represents one item in a sensor data readout.
Definition: ErrorItem.cs:12
ErrorItem(ThingError Error)
Represents one item in a sensor data output.
Definition: ErrorItem.cs:19
Abstract base class for selectable colorable item.
Contains information about an error on a thing
Definition: ThingError.cs:10