C# Class NetIRC.Messages.ParsedMessage

Datei anzeigen Open project: kevin-brown/NetIRC Class Usage Examples

Public Methods

Method Description
GetCTCP ( ) : string

Gets the CTCP message or null

GetCTCP ( string message ) : string

Gets the CTCP message or null

GetCTCPCommand ( ) : string

Gets the CTCP command

GetCTCPCommand ( string message ) : string

Gets the CTCP command

GetCTCPParameter ( ) : string

Gets the CTCP arguments

GetCTCPParameter ( string message ) : string

Gets the CTCP arguments

GetChannel ( ) : Channel

Gets the Channel the message is targeted at or null

GetChannel ( string channel ) : Channel

Gets or generates a Channel object from the ChannelFactory

GetUser ( ) : User

Gets the User who sent the message or null

GetUser ( string userString ) : User

Gets or generates a User object from the UserFactory

GetUserFromMask ( string userMask ) : User

Gets or generates a User object from the UserFactory

GetUserFromNick ( string nick ) : User

Gets or generates a User object from the UserFactory

HasCTCPParameter ( ) : bool

Checks if the ctcp message contains parameters

HasCTCPParameter ( string message ) : bool

Checks if the ctcp message contains parameters

IsCTCP ( ) : bool

Checks if the message is a Client-to-client protocol message

IsCTCP ( string message ) : bool

Checks if the message is a Client-to-client protocol message

IsChannel ( ) : bool

Determines whether the message is targeted at a channel

IsChannel ( string channel ) : bool

Determines whether the given channel is valid

IsNumeric ( ) : bool

Checks if the message is a numeric one

IsUser ( ) : bool

Determines whether the message is originated from a user

IsUser ( string userMask ) : bool

Determines whether the given userMask is valid

ParsedMessage ( Client client, string message ) : System

Method Details

GetCTCP() public method

Gets the CTCP message or null
public GetCTCP ( ) : string
return string

GetCTCP() public static method

Gets the CTCP message or null
public static GetCTCP ( string message ) : string
message string
return string

GetCTCPCommand() public method

Gets the CTCP command
public GetCTCPCommand ( ) : string
return string

GetCTCPCommand() public static method

Gets the CTCP command
public static GetCTCPCommand ( string message ) : string
message string
return string

GetCTCPParameter() public method

Gets the CTCP arguments
public GetCTCPParameter ( ) : string
return string

GetCTCPParameter() public static method

Gets the CTCP arguments
public static GetCTCPParameter ( string message ) : string
message string
return string

GetChannel() public method

Gets the Channel the message is targeted at or null
public GetChannel ( ) : Channel
return Channel

GetChannel() public method

Gets or generates a Channel object from the ChannelFactory
public GetChannel ( string channel ) : Channel
channel string
return Channel

GetUser() public method

Gets the User who sent the message or null
public GetUser ( ) : User
return User

GetUser() public method

Gets or generates a User object from the UserFactory
public GetUser ( string userString ) : User
userString string
return User

GetUserFromMask() public method

Gets or generates a User object from the UserFactory
public GetUserFromMask ( string userMask ) : User
userMask string
return User

GetUserFromNick() public method

Gets or generates a User object from the UserFactory
public GetUserFromNick ( string nick ) : User
nick string
return User

HasCTCPParameter() public method

Checks if the ctcp message contains parameters
public HasCTCPParameter ( ) : bool
return bool

HasCTCPParameter() public static method

Checks if the ctcp message contains parameters
public static HasCTCPParameter ( string message ) : bool
message string
return bool

IsCTCP() public method

Checks if the message is a Client-to-client protocol message
public IsCTCP ( ) : bool
return bool

IsCTCP() public static method

Checks if the message is a Client-to-client protocol message
public static IsCTCP ( string message ) : bool
message string
return bool

IsChannel() public method

Determines whether the message is targeted at a channel
public IsChannel ( ) : bool
return bool

IsChannel() public method

Determines whether the given channel is valid
public IsChannel ( string channel ) : bool
channel string
return bool

IsNumeric() public method

Checks if the message is a numeric one
public IsNumeric ( ) : bool
return bool

IsUser() public method

Determines whether the message is originated from a user
public IsUser ( ) : bool
return bool

IsUser() public method

Determines whether the given userMask is valid
public IsUser ( string userMask ) : bool
userMask string
return bool

ParsedMessage() public method

public ParsedMessage ( Client client, string message ) : System
client Client
message string
return System