# Class MessageConventions | EchoHub Documentation
Cross-protocol message conventions. Action messages (/me) use the IRC CTCP ACTION wire format 0x01 + &quot;ACTION &quot; + text + 0x01 as the stored content, so IRC clients interoperate natively (irssi's /me arrives in exactly this shape) and the TUI renders &quot;* nick text&quot;. In end-to-end encrypted rooms the marker encrypts along with the text.

# Class MessageConventions

Namespace
  EchoHub.Core.Constants

Assembly
  EchoHub.Core.dll

Cross-protocol message conventions. Action messages (`/me`) use the IRC CTCP ACTION wire format 0x01 + "ACTION " + text + 0x01 as the stored content, so IRC clients interoperate natively (irssi's /me arrives in exactly this shape) and the TUI renders "* nick text". In end-to-end encrypted rooms the marker encrypts along with the text.

    public static class MessageConventions

Inheritance
  object
  MessageConventions

Inherited Members
  object.GetType()
  object.MemberwiseClone()
  object.ToString()
  object.Equals(object)
  object.Equals(object, object)
  object.ReferenceEquals(object, object)
  object.GetHashCode()

## Fields

### ActionPrefix

    public const string ActionPrefix = "\u0001ACTION "

#### Field Value

string

### ActionSuffix

    public const string ActionSuffix = "\u0001"

#### Field Value

string

## Methods

### FormatAction(string)

    public static string FormatAction(string text)

#### Parameters

`text` string

#### Returns

string

### TryParseAction(string, out string?)

    public static bool TryParseAction(string content, out string? actionText)

#### Parameters

`content` string
`actionText` string

#### Returns

bool