C# 클래스 Helpmebot.Legacy.LegacyCommandParser

A command parser
파일 보기 프로젝트 열기: helpmebot/helpmebot 1 사용 예제들

공개 메소드들

메소드 설명
FindRedirection ( string &args ) : string

Finds the redirection.

HandleCommand ( Helpmebot.Legacy.Model.LegacyUser source, string destination, string command, string args ) : void

Handles the command.

IsRecognisedMessage ( string &message, bool &overrideSilence, IIrcClient client ) : bool

Tests against recognised message formats

Allowed formats: !command !helpmebot command Helpmebot: command Helpmebot command Helpmebot, command Helpmebot> command

LegacyCommandParser ( ICommandServiceHelper commandServiceHelper, ILogger logger ) : System

Initialises a new instance of the LegacyCommandParser class.

비공개 메소드들

메소드 설명
HandleCommandResponseHandler ( Helpmebot.Legacy.Model.LegacyUser source, string destination, string directedTo, CommandResponseHandler response ) : void

Handles the command response handler.

ParseRawLineForMessage ( string &message, string nickname, string trigger ) : bool

The parse raw line for message.

메소드 상세

FindRedirection() 공개 정적인 메소드

Finds the redirection.
public static FindRedirection ( string &args ) : string
args string /// The args. ///
리턴 string

HandleCommand() 공개 메소드

Handles the command.
public HandleCommand ( Helpmebot.Legacy.Model.LegacyUser source, string destination, string command, string args ) : void
source Helpmebot.Legacy.Model.LegacyUser /// The source. ///
destination string /// The destination. ///
command string /// The command. ///
args string /// The args. ///
리턴 void

IsRecognisedMessage() 공개 메소드

Tests against recognised message formats
Allowed formats: !command !helpmebot command Helpmebot: command Helpmebot command Helpmebot, command Helpmebot> command
public IsRecognisedMessage ( string &message, bool &overrideSilence, IIrcClient client ) : bool
message string /// the message received ///
overrideSilence bool /// ref: whether this message format overrides any imposed silence ///
client IIrcClient /// The client. ///
리턴 bool

LegacyCommandParser() 공개 메소드

Initialises a new instance of the LegacyCommandParser class.
public LegacyCommandParser ( ICommandServiceHelper commandServiceHelper, ILogger logger ) : System
commandServiceHelper ICommandServiceHelper /// The command Service Helper. ///
logger ILogger /// The logger. ///
리턴 System