Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Waher.Mock.SniffItem Class Reference

Represents one item in a sniffer output. More...

Inheritance diagram for Waher.Mock.SniffItem:
Waher.Mock.ColorableItem Waher.Mock.SelectableItem

Public Member Functions

 SniffItem (DateTime Timestamp, SniffItemType Type, string Message, byte[] Data, Color ForegroundColor, Color BackgroundColor)
 Represents one item in a sniffer output. More...
 

Protected Member Functions

async Task Raise (EventHandler h)
 Raises an event. More...
 
virtual Task OnSelected ()
 Raises the Selected event. More...
 
virtual Task OnDeselected ()
 Raises the Deselected event. More...
 

Properties

DateTime Timestamp [get]
 Timestamp of event. More...
 
SniffItemType Type [get]
 Sniff item type. More...
 
string Time [get]
 Time of day of event, as a string. More...
 
string Message [get]
 Message More...
 
byte[] Data [get]
 Optional binary data. More...
 
Color ForegroundColor [get, set]
 Foreground color More...
 
string ForegroundColorString [get]
 Foreground color, as a string More...
 
Color BackgroundColor [get, set]
 Background color More...
 
string BackgroundColorString [get]
 Background color, as a string More...
 
bool IsSelected [get, set]
 If the node is selected. More...
 

Events

EventHandler Selected = null
 Event raised when the node has been selected. More...
 
EventHandler Deselected = null
 Event raised when the node has been deselected. More...
 

Detailed Description

Represents one item in a sniffer output.

Definition at line 58 of file SniffItem.cs.

Constructor & Destructor Documentation

◆ SniffItem()

Waher.Mock.SniffItem.SniffItem ( DateTime  Timestamp,
SniffItemType  Type,
string  Message,
byte[]  Data,
Color  ForegroundColor,
Color  BackgroundColor 
)

Represents one item in a sniffer output.

Parameters
TimestampTimestamp of event.
TypeType of sniff record.
MessageMessage
DataOptional binary data.
ForegroundColorForeground Color
BackgroundColorBackground Color

Definition at line 74 of file SniffItem.cs.

Member Function Documentation

◆ OnDeselected()

virtual Task Waher.Mock.SelectableItem.OnDeselected ( )
protectedvirtualinherited

Raises the Deselected event.

Definition at line 82 of file SelectableItem.cs.

◆ OnSelected()

virtual Task Waher.Mock.SelectableItem.OnSelected ( )
protectedvirtualinherited

Raises the Selected event.

Definition at line 74 of file SelectableItem.cs.

◆ Raise()

async Task Waher.Mock.SelectableItem.Raise ( EventHandler  h)
protectedinherited

Raises an event.

Parameters
hEvent handler.

Definition at line 25 of file SelectableItem.cs.

Property Documentation

◆ BackgroundColor

Color Waher.Mock.ColorableItem.BackgroundColor
getsetinherited

Background color

Definition at line 45 of file ColorableItem.cs.

◆ BackgroundColorString

string Waher.Mock.ColorableItem.BackgroundColorString
getinherited

Background color, as a string

Definition at line 54 of file ColorableItem.cs.

◆ Data

byte [] Waher.Mock.SniffItem.Data
get

Optional binary data.

Definition at line 106 of file SniffItem.cs.

◆ ForegroundColor

Color Waher.Mock.ColorableItem.ForegroundColor
getsetinherited

Foreground color

Definition at line 28 of file ColorableItem.cs.

◆ ForegroundColorString

string Waher.Mock.ColorableItem.ForegroundColorString
getinherited

Foreground color, as a string

Definition at line 37 of file ColorableItem.cs.

◆ IsSelected

bool Waher.Mock.SelectableItem.IsSelected
getsetinherited

If the node is selected.

Definition at line 44 of file SelectableItem.cs.

◆ Message

string Waher.Mock.SniffItem.Message
get

Message

Definition at line 101 of file SniffItem.cs.

◆ Time

string Waher.Mock.SniffItem.Time
get

Time of day of event, as a string.

Definition at line 96 of file SniffItem.cs.

◆ Timestamp

DateTime Waher.Mock.SniffItem.Timestamp
get

Timestamp of event.

Definition at line 86 of file SniffItem.cs.

◆ Type

SniffItemType Waher.Mock.SniffItem.Type
get

Sniff item type.

Definition at line 91 of file SniffItem.cs.

Event Documentation

◆ Deselected

EventHandler Waher.Mock.SelectableItem.Deselected = null
inherited

Event raised when the node has been deselected.

Definition at line 69 of file SelectableItem.cs.

◆ Selected

EventHandler Waher.Mock.SelectableItem.Selected = null
inherited

Event raised when the node has been selected.

Definition at line 64 of file SelectableItem.cs.


The documentation for this class was generated from the following file: