C# 클래스 Mycroft.App.MessageEventHandler

The Message Event Handler class. Manages all the events for a mycroft client.
파일 보기 프로젝트 열기: rit-sse-mycroft/app-text-to-speech 1 사용 예제들

공개 메소드들

메소드 설명
Handle ( string msgType, dynamic data = null ) : void

Handles an event of a given type

MessageEventHandler ( ) : System

Constructor for MessageEventhandler

On ( string msgType, ConnectDisconnect del ) : void

Adds a ConnectDisconnect Handler

On ( string msgType, MsgHandler del ) : void

Adds a Message Handler

메소드 상세

Handle() 공개 메소드

Handles an event of a given type
public Handle ( string msgType, dynamic data = null ) : void
msgType string The message type
data dynamic The date to be passed to the handler
리턴 void

MessageEventHandler() 공개 메소드

Constructor for MessageEventhandler
public MessageEventHandler ( ) : System
리턴 System

On() 공개 메소드

Adds a ConnectDisconnect Handler
public On ( string msgType, ConnectDisconnect del ) : void
msgType string The type of message that this should be added to
del ConnectDisconnect The delegate method handling the event
리턴 void

On() 공개 메소드

Adds a Message Handler
public On ( string msgType, MsgHandler del ) : void
msgType string The type of message this should be added to
del MsgHandler The delegate method handling the event
리턴 void