C# 클래스 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.
상속: IIrcObject
파일 보기 프로젝트 열기: hapm/IrcShark 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Equals() 공개 메소드

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

GetHashCode() 공개 메소드

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

IrcLine() 공개 메소드

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 . ///
리턴 System

IrcLine() 공개 메소드

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. ///
리턴 System

IrcLine() 공개 메소드

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. ///
리턴 System

ToString() 공개 메소드

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