C# Class IrcShark.Chatting.Irc.IrcLine

Represents a raw irc line received over an irc connection.
Allows to analyze a raw irc line. The raw line is automatically broken down to it single propertys according to rfc 1459. They can be easily accessed by the given class propertys.
Inheritance: IIrcObject
显示文件 Open project: hapm/IrcShark Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool

Compares this object with another one.

GetHashCode ( ) : int

Returns a hashcode of this object.

IrcLine ( IrcClient client, string line ) : System

Initializes a new instance of the IrcLine class from the the given raw string.

IrcLine ( IrcClient client, string prefix, string command, string parameters ) : System

Initializes a new instance of the IrcLine class based on the parameters given.

The parameters array can only have one parameter with spaces in it, and this one need to be the last one!

IrcLine ( IrcLine source ) : System

Initializes a new instance of the IrcLine class as a copy of another IrcLine object.

ToString ( ) : string

Recreates the raw irc line as it was read from server.

Method Details

Equals() public method

Compares this object with another one.
public Equals ( object obj ) : bool
obj object /// The to compare with. ///
return bool

GetHashCode() public method

Returns a hashcode of this object.
public GetHashCode ( ) : int
return int

IrcLine() public method

Initializes a new instance of the IrcLine class from the the given raw string.
If the format of the raw string can't be parsed as an irc line, an InvalidLineFormatException is thrown.
public IrcLine ( IrcClient client, string line ) : System
client IrcClient /// The , this line was received by. ///
line string /// The raw line as a . ///
return System

IrcLine() public method

Initializes a new instance of the IrcLine class based on the parameters given.
The parameters array can only have one parameter with spaces in it, and this one need to be the last one!
/// This exception is thrown if prefix, command or anyone of the parameters /// excepting the last, have a space in them. ///
public IrcLine ( IrcClient client, string prefix, string command, string parameters ) : System
client IrcClient /// The this line belongs to. ///
prefix string /// The prefix of the line. ///
command string /// The command of the line. ///
parameters string /// An array of parameters. ///
return System

IrcLine() public method

Initializes a new instance of the IrcLine class as a copy of another IrcLine object.
public IrcLine ( IrcLine source ) : System
source IrcLine /// The to copy. ///
return System

ToString() public method

Recreates the raw irc line as it was read from server.
public ToString ( ) : string
return string