Skip to content
ConsoleMonster
Class

AttentionItem

ConsoleMonster.Frames

Namespace
ConsoleMonster.Frames
Assembly
ConsoleMonster
Modifiers
sealed

One non-healthy item: its state, identity, short aligned values and a reason.

Inheritance

  • object
  • AttentionItem

Usage

Explore 13 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 5

Accepted by parameters 8

Constructors

public AttentionItem(HealthState state, string identity, string reason, IComparable? order = null) #

Creates an item.

Parameters

state ConsoleMonster.Frames.HealthState required
The item's state; healthy items are ignored.
identity string required
The literal identity, shown in Text.
reason string required
The literal reason, shown Muted.
order System.IComparable? = null optional
Sort key within a state, smallest first; for example a negative age so the oldest comes first.

Properties

public HealthState State { get; } #

The state.

public string Identity { get; } #

The literal identity.

public string Reason { get; } #

The literal reason. Items with the same state and reason can be grouped.

public IComparable? Order { get; } #

The sort key within a state.

public IList<string> Values { get; } #

Short literal values between identity and reason, aligned across items (ages, counts).

Extension Methods

public static AttentionItem AddValue(AttentionItem attentionItem, string item) #

Adds an item to AttentionItem.Values: Short literal values between identity and reason, aligned across items (ages, counts).

Parameters

attentionItem ConsoleMonster.Frames.AttentionItem required
The instance.
item string required
The item.

Returns

AttentionItem The same instance.
AddValues 2 overloads
public static AttentionItem AddValues(AttentionItem attentionItem, params string[] items) #

Adds items to AttentionItem.Values: Short literal values between identity and reason, aligned across items (ages, counts).

Parameters

attentionItem ConsoleMonster.Frames.AttentionItem required
The instance.
items string[] required
The items, in order.

Returns

AttentionItem The same instance.
public static AttentionItem AddValues(AttentionItem attentionItem, IEnumerable<string> items) #

Adds items to AttentionItem.Values: Short literal values between identity and reason, aligned across items (ages, counts).

Parameters

attentionItem ConsoleMonster.Frames.AttentionItem required
The instance.
items System.Collections.Generic.IEnumerable<string> required
The items, in order.

Returns

AttentionItem The same instance.