Skip to content
ConsoleMonster
Class

AttentionList

ConsoleMonster.Frames

Namespace
ConsoleMonster.Frames
Assembly
ConsoleMonster
Modifiers
sealed

The Needs attention list: every non-healthy item, worst first. It is never capped outside ConsoleViewLength.Summary, and identical reasons for several targets become one item that still names every target.

Inheritance

  • object
  • AttentionList

Usage

Explore 31 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.

Accepted by parameters 16

Constructors

public AttentionList() #

Properties

public string Noun { get; set; } #

The singular noun for the items, for example partnership.

public string? PluralNoun { get; set; } #

The plural noun; null adds an s.

public long? OutOf { get; set; } #

The total the items come from, for 3 of 12 partnerships; null shows only the item count.

public IList<AttentionItem> Items { get; } #

The items, in any order.

public int GroupAtLeast { get; set; } #

Identical state and reason for this many items or more become one grouped item (default 3).

public string Title { get; set; } #

The section title.

Extension Methods

public static AttentionList AddItem(AttentionList attentionList, AttentionItem item) #

Adds an item to AttentionList.Items: The items, in any order.

Parameters

attentionList ConsoleMonster.Frames.AttentionList required
The instance.
item ConsoleMonster.Frames.AttentionItem required
The item.

Returns

AttentionList The same instance.
AddItems 2 overloads
public static AttentionList AddItems(AttentionList attentionList, params AttentionItem[] items) #

Adds items to AttentionList.Items: The items, in any order.

Parameters

attentionList ConsoleMonster.Frames.AttentionList required
The instance.
items ConsoleMonster.Frames.AttentionItem[] required
The items, in order.

Returns

AttentionList The same instance.
public static AttentionList AddItems(AttentionList attentionList, IEnumerable<AttentionItem> items) #

Adds items to AttentionList.Items: The items, in any order.

Parameters

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

Returns

AttentionList The same instance.
public static AttentionList GroupAtLeast(AttentionList attentionList, int value) #

Sets AttentionList.GroupAtLeast: Identical state and reason for this many items or more become one grouped item (default 3).

Parameters

attentionList ConsoleMonster.Frames.AttentionList required
The instance.
value int required
The value.

Returns

AttentionList The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::ConsoleMonster.Frames.AttentionList { GroupAtLeast = value };    attentionList.GroupAtLeast(value);
public static AttentionList Noun(AttentionList attentionList, string value) #

Sets AttentionList.Noun: The singular noun for the items, for example partnership.

Parameters

attentionList ConsoleMonster.Frames.AttentionList required
The instance.
value string required
The value.

Returns

AttentionList The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::ConsoleMonster.Frames.AttentionList { Noun = value };    attentionList.Noun(value);
public static AttentionList OutOf(AttentionList attentionList, long? value) #

Sets AttentionList.OutOf: The total the items come from, for 3 of 12 partnerships; null shows only the item count.

Parameters

attentionList ConsoleMonster.Frames.AttentionList required
The instance.
value long? required
The value.

Returns

AttentionList The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::ConsoleMonster.Frames.AttentionList { OutOf = value };    attentionList.OutOf(value);
public static AttentionList PluralNoun(AttentionList attentionList, string? value) #

Sets AttentionList.PluralNoun: The plural noun; null adds an s.

Parameters

attentionList ConsoleMonster.Frames.AttentionList required
The instance.
value string? required
The value.

Returns

AttentionList The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ConsoleMonster.Frames.AttentionList { PluralNoun = value };    attentionList.PluralNoun(value);
public static AttentionList Title(AttentionList attentionList, string value) #

Sets AttentionList.Title: The section title.

Parameters

attentionList ConsoleMonster.Frames.AttentionList required
The instance.
value string required
The value.

Returns

AttentionList The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::ConsoleMonster.Frames.AttentionList { Title = value };    attentionList.Title(value);