C# 클래스 Gablarski.Clients.NotificationHandler

Handles automatically notifying a collection of INotifiers with the events.
파일 보기 프로젝트 열기: ermau/Gablarski

공개 메소드들

메소드 설명
AddNotifier ( INotifier notifier, IEnumerable enabledNotifications ) : void

Adds a notifier.

AddNotifier ( ITextToSpeech notifier, IEnumerable enabledNotifications ) : void

Adds a notifier.

Clear ( ) : void

Clears all notifiers.

Close ( ) : void
NotificationHandler ( GablarskiClient client ) : System

Creates a new instance of NotificationHandler.

Notify ( NotificationType type, string notification ) : void
Notify ( NotificationType type, string notification, NotifyPriority priority ) : void
Notify ( NotificationType type, string notification, string nickname, string phonetic ) : void
Notify ( NotificationType type, string notification, string nickname, string phonetic, NotifyPriority priority ) : void
RemoveNotifier ( INotifier notifier ) : bool

Removes the notifier.

RemoveNotifier ( ITextToSpeech notifier ) : bool

Removes the notifier.

비공개 메소드들

메소드 설명
OnClientDisconnected ( object sender, EventArgs e ) : void
OnUserChangedChannel ( object sender, ChannelChangedEventArgs e ) : void
OnUserDisconnected ( object sender, UserEventArgs e ) : void
OnUserJoined ( object sender, UserEventArgs e ) : void
OnUserKickedFromChannel ( object sender, UserEventArgs e ) : void
OnUserKickedFromServer ( object sender, UserEventArgs e ) : void

메소드 상세

AddNotifier() 공개 메소드

Adds a notifier.
or is null.
public AddNotifier ( INotifier notifier, IEnumerable enabledNotifications ) : void
notifier INotifier The notifier to add.
enabledNotifications IEnumerable The notifications to enable for this .
리턴 void

AddNotifier() 공개 메소드

Adds a notifier.
or is null.
public AddNotifier ( ITextToSpeech notifier, IEnumerable enabledNotifications ) : void
notifier ITextToSpeech The notifier to add.
enabledNotifications IEnumerable The notifications to enable for this .
리턴 void

Clear() 공개 메소드

Clears all notifiers.
public Clear ( ) : void
리턴 void

Close() 공개 메소드

public Close ( ) : void
리턴 void

NotificationHandler() 공개 메소드

Creates a new instance of NotificationHandler.
public NotificationHandler ( GablarskiClient client ) : System
client GablarskiClient
리턴 System

Notify() 공개 메소드

public Notify ( NotificationType type, string notification ) : void
type NotificationType
notification string
리턴 void

Notify() 공개 메소드

public Notify ( NotificationType type, string notification, NotifyPriority priority ) : void
type NotificationType
notification string
priority NotifyPriority
리턴 void

Notify() 공개 메소드

public Notify ( NotificationType type, string notification, string nickname, string phonetic ) : void
type NotificationType
notification string
nickname string
phonetic string
리턴 void

Notify() 공개 메소드

public Notify ( NotificationType type, string notification, string nickname, string phonetic, NotifyPriority priority ) : void
type NotificationType
notification string
nickname string
phonetic string
priority NotifyPriority
리턴 void

RemoveNotifier() 공개 메소드

Removes the notifier.
is null.
public RemoveNotifier ( INotifier notifier ) : bool
notifier INotifier The notifier to remove.
리턴 bool

RemoveNotifier() 공개 메소드

Removes the notifier.
is null.
public RemoveNotifier ( ITextToSpeech notifier ) : bool
notifier ITextToSpeech The notifier to remove.
리턴 bool