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
ErrorPrefix
The prefix string for error messages.
public const string ErrorPrefix = "error:"
Field Value
InfoPrefix
The prefix string for short informational messages.
public const string InfoPrefix = "info:"
Field Value
InformationPrefix
The prefix string for informational messages.
public const string InformationPrefix = "information:"
Field Value
SuccessPrefix
The prefix string for success messages.
public const string SuccessPrefix = "success:"
Field Value
WarningPrefix
The prefix string for warning messages.
public const string WarningPrefix = "warning:"
Field Value
Methods
IsStatusMessage(string)
Determines the message type from the text prefix without modifying the input.
public static TypeOfMessageTA IsStatusMessage(string text)
Parameters
textstringThe 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
textstringThe text to analyze and trim. Modified in place if a prefix is found.
Returns
- TypeOfMessageTA
The detected message type.