C# 클래스 Squishy.Irc.Commands.Command

Basic Command Class, Inherit your Commands from here. Automatically creates one instance per IrcClient when the Class is loaded, using the default constructor.
파일 보기 프로젝트 열기: jaddie/WCell-Utility-Bot 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Aliases string[]

공개 메소드들

메소드 설명
Process ( CmdTrigger trigger ) : void

Is called when the command is triggered (case-insensitive).

보호된 메소드들

메소드 설명
Command ( ) : System

In the Constructor you deliver the alias names. Calling this ctor automatically sets the Instance to the newly invoked instance.

OnFail ( CmdTrigger trigger ) : void

An array of possible server-side replies to this Command. If this command is executed, the response from the server will again be replied to the user who initiated this.

Is triggered when the processing throws an Exception.

비공개 메소드들

메소드 설명
ExecutedNotify ( CmdTrigger trigger ) : void
FailNotify ( CmdTrigger trigger, Exception ex ) : void

메소드 상세

Command() 보호된 메소드

In the Constructor you deliver the alias names. Calling this ctor automatically sets the Instance to the newly invoked instance.
protected Command ( ) : System
리턴 System

OnFail() 보호된 메소드

An array of possible server-side replies to this Command. If this command is executed, the response from the server will again be replied to the user who initiated this. Is triggered when the processing throws an Exception.
protected OnFail ( CmdTrigger trigger ) : void
trigger CmdTrigger
리턴 void

Process() 공개 추상적인 메소드

Is called when the command is triggered (case-insensitive).
public abstract Process ( CmdTrigger trigger ) : void
trigger CmdTrigger
리턴 void

프로퍼티 상세

Aliases 공개적으로 프로퍼티

All Aliases which can trigger the Process method of this Command.
public string[] Aliases
리턴 string[]