C# Class NetIRC.Client

Afficher le fichier Open project: kevin-brown/NetIRC Class Usage Examples

Private Properties

Свойство Type Description
ReadStream void
RegisterMessages void
RegisterWriters void
TriggerOnAction void
TriggerOnChannelJoin void
TriggerOnChannelLeave void
TriggerOnConnect void
TriggerOnDisconnect void
TriggerOnNotice void
TriggerOnUserMode void
TriggerOnVersion void
TriggerOnVersionReply void
TriggerOnWelcome void
TriggerOnWho void

Méthodes publiques

Méthode Description
Away ( string message ) : Away
Client ( ) : System
Connect ( string server, int port, bool ssl, User user ) : void

Connect to a specified server.

Disconnect ( ) : void

Disconnects the connected user forcefully.

JoinChannel ( Channel channel ) : void

Join a specified channel based on the given Channel object.

JoinChannel ( string name ) : void

Join a channel specified by the name.

LeaveChannel ( Channel channel ) : void

Leave a specified channel based on the given Channel object.

LeaveChannel ( string name ) : void

Leave a channel specified by the name.

NotAway ( ) : NotAway
Quit ( ) : Quit
Quit ( string reason ) : Quit
RegisterMessage ( Type type ) : void

Registers a message that will be checked when new messages are received.

RegisterWriter ( Type type ) : void
Send ( Messages message ) : void

Send a message to the connected server.

TriggerOnMessage ( User source, string message ) : void
UnregisterMessage ( Type type ) : void
UnregisterWriter ( Type type ) : void

Méthodes protégées

Méthode Description
TriggerOnSend ( SendMessageEventArgs e ) : void

Private Methods

Méthode Description
ReadStream ( ) : void
RegisterMessages ( ) : void
RegisterWriters ( ) : void
TriggerOnAction ( User user, string action ) : void
TriggerOnChannelJoin ( Channel channel ) : void
TriggerOnChannelLeave ( Channel channel ) : void
TriggerOnConnect ( ) : void
TriggerOnDisconnect ( ) : void
TriggerOnNotice ( User user, string notice ) : void
TriggerOnUserMode ( string modes ) : void
TriggerOnVersion ( User source ) : void
TriggerOnVersionReply ( User source, string version ) : void
TriggerOnWelcome ( string message ) : void
TriggerOnWho ( User user, string message ) : void

Method Details

Away() public méthode

public Away ( string message ) : Away
message string
Résultat NetIRC.Messages.Send.Away

Client() public méthode

public Client ( ) : System
Résultat System

Connect() public méthode

Connect to a specified server.
public Connect ( string server, int port, bool ssl, User user ) : void
server string The host of the server to connect to.
port int The port to connect to on the server.
ssl bool True for SSL, false if not.
user User The NetIRC.User to use for connecting to the server.
Résultat void

Disconnect() public méthode

Disconnects the connected user forcefully.
public Disconnect ( ) : void
Résultat void

JoinChannel() public méthode

Join a specified channel based on the given Channel object.
public JoinChannel ( Channel channel ) : void
channel Channel The Channel to be used for connecting.
Résultat void

JoinChannel() public méthode

Join a channel specified by the name.
public JoinChannel ( string name ) : void
name string The name of the channel.
Résultat void

LeaveChannel() public méthode

Leave a specified channel based on the given Channel object.
public LeaveChannel ( Channel channel ) : void
channel Channel
Résultat void

LeaveChannel() public méthode

Leave a channel specified by the name.
public LeaveChannel ( string name ) : void
name string The name of the channel.
Résultat void

NotAway() public méthode

public NotAway ( ) : NotAway
Résultat NetIRC.Messages.Send.NotAway

Quit() public méthode

public Quit ( ) : Quit
Résultat NetIRC.Messages.Send.Quit

Quit() public méthode

public Quit ( string reason ) : Quit
reason string
Résultat NetIRC.Messages.Send.Quit

RegisterMessage() public méthode

Registers a message that will be checked when new messages are received.
public RegisterMessage ( Type type ) : void
type System.Type The type of the Message object that messages will be checked against.
Résultat void

RegisterWriter() public méthode

public RegisterWriter ( Type type ) : void
type System.Type
Résultat void

Send() public méthode

Send a message to the connected server.
public Send ( Messages message ) : void
message Messages The NetIRC.SendMessage instance to be sent.
Résultat void

TriggerOnMessage() public méthode

public TriggerOnMessage ( User source, string message ) : void
source User
message string
Résultat void

TriggerOnSend() protected méthode

protected TriggerOnSend ( SendMessageEventArgs e ) : void
e SendMessageEventArgs
Résultat void

UnregisterMessage() public méthode

public UnregisterMessage ( Type type ) : void
type System.Type
Résultat void

UnregisterWriter() public méthode

public UnregisterWriter ( Type type ) : void
type System.Type
Résultat void