Table of Contents

Class StatusHelperSunamo

Namespace
SunamoThisApp.Helpers
Assembly
SunamoThisApp.dll

Helper class for parsing status message prefixes and determining message types.

public class StatusHelperSunamo
Inheritance
StatusHelperSunamo
Inherited Members
Extension Methods

Fields

AppealPrefix

The prefix string for appeal messages.

public const string AppealPrefix = "appeal:"

Field Value

string

ErrorPrefix

The prefix string for error messages.

public const string ErrorPrefix = "error:"

Field Value

string

InfoPrefix

The prefix string for short informational messages.

public const string InfoPrefix = "info:"

Field Value

string

InformationPrefix

The prefix string for informational messages.

public const string InformationPrefix = "information:"

Field Value

string

SuccessPrefix

The prefix string for success messages.

public const string SuccessPrefix = "success:"

Field Value

string

WarningPrefix

The prefix string for warning messages.

public const string WarningPrefix = "warning:"

Field Value

string

Methods

IsStatusMessage(string)

Determines the message type from the text prefix without modifying the input.

public static TypeOfMessageTA IsStatusMessage(string text)

Parameters

text string

The text to analyze for a status prefix.

Returns

TypeOfMessageTA

The detected message type, or Ordinal if no prefix matched.

IsStatusMessage(ref string)

Determines the message type from the text prefix and trims the matched prefix from the text. If no prefix matches, returns Ordinal.

public static TypeOfMessageTA IsStatusMessage(ref string text)

Parameters

text string

The text to analyze and trim. Modified in place if a prefix is found.

Returns

TypeOfMessageTA

The detected message type.