HeroStats Libraries
ChatMessage Members

ChatMessage overview

Public Static (Shared) Fields

ADMIN_CHANNEL_AND_CATEGORY The textual name of the administrative channel and the administrative category
LOGGING_CHANNEL_AND_CATEGORY The textual name of the logging category
START_TIMER_MESSAGE_TEXT The text of the Message portion of the ChatMessage that is created when the update timer is started
STOP_TIMER_MESSAGE_TEXT The text of the Message portion of the ChatMessage that is created when the update timer is stopped

Public Static (Shared) Properties

Expressions Gets the array of all Expression objects being used by HeroStats
StartTimerMessage A static message indicating that the timer has started and messages are being logged.
StopTimerMessage A static message indicating that the timer has stopped and no messages are being logged.

Public Static (Shared) Methods

Equals (inherited from Object) Determines whether the specified Object instances are considered equal.
Initialize Initializes the chat message subsystem. Loads ChatMessageRegexs.dat, among other things.
ReferenceEquals (inherited from Object) Determines whether the specified Object instances are the same instance.
Reinitialize Resets the chat message subsystem, reloading ChatMessageRegexs.dat
StripHighlights Removes pseudo-html markup from the text passed in as the parameter. Removes only <H%gt; and %lt;/H> tags.

Public Instance Constructors

ChatMessage Overloaded. Initializes a new instance of the ChatMessage class.

Public Instance Properties

Category The HeroStats category to which this message applies
Channel Gets the channel the message arrived on
HighlightedMessage A pseudo-html formatted message highlighting with <H> and </H> surrounding the captured values
Item Looks up the key text in the capture variable name-value list and returns the associated value text
Message Gets the text of the message
Regex The regular expression string that matched the message, if any
Timestamp Gets the time the message arrived
Variables Gets a sorted list of capture variable names available in this object. Can be used later in this[string varname] to get the values

Public Instance Methods

ChangeMessage Changes a ChatMessage object to contain the values specified by the parameter.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetContextPowerNames 
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
SetPowerName Adds or changes the "PowerName" capture variable in this message. Useful for cases where the power name isn't known outside of the context of other messages.
ToString (inherited from Object) Returns a String that represents the current Object.

See Also

ChatMessage Class | CityOfHeroes Namespace