Class ParsedIrcMessage
Represents a parsed IRC message, providing information about it
Inheritance
System.Object
ParsedIrcMessage
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: GravyIrc
Assembly: GravyIrc.dll
Syntax
public class ParsedIrcMessage
Constructors
| Improve this Doc View SourceParsedIrcMessage(String)
Initializes a new instance of ParsedIRCMessage, parsing the raw data
Declaration
public ParsedIrcMessage(string rawData)
Parameters
Type | Name | Description |
---|---|---|
System.String | rawData | Raw data to be parsed |
Properties
| Improve this Doc View SourceCommand
The command received
Declaration
public string Command { get; }
Property Value
Type | Description |
---|---|
System.String |
IrcCommand
An Enum representing the IRC command
Declaration
public IrcCommand IrcCommand { get; }
Property Value
Type | Description |
---|---|
IrcCommand |
IsNumeric
Provides you a way to quickly check if the message is a numeric reply
Declaration
public bool IsNumeric { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
NumericReply
An Enum representing the IRC numeric reply
Declaration
public IrcNumericReply NumericReply { get; }
Property Value
Type | Description |
---|---|
IrcNumericReply |
Parameters
Provides all parameters received in the message
Declaration
public string[] Parameters { get; }
Property Value
Type | Description |
---|---|
System.String[] |
Prefix
The prefix of the message
Declaration
public IrcPrefix Prefix { get; }
Property Value
Type | Description |
---|---|
IrcPrefix |
Raw
The raw message received from the server
Declaration
public string Raw { get; }
Property Value
Type | Description |
---|---|
System.String |
Trailing
Represents the last parameters in the message
Declaration
public string Trailing { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceToString()
Returns a string that represents the parsed IRC message
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String that represents the parsed IRC message |
Overrides
System.Object.ToString()