C# Class Gablarski.Clients.NotificationHandler

Handles automatically notifying a collection of INotifiers with the events.
Afficher le fichier Open project: ermau/Gablarski

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

AddNotifier() public méthode

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 .
Résultat void

AddNotifier() public méthode

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 .
Résultat void

Clear() public méthode

Clears all notifiers.
public Clear ( ) : void
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

NotificationHandler() public méthode

Creates a new instance of NotificationHandler.
public NotificationHandler ( GablarskiClient client ) : System
client GablarskiClient
Résultat System

Notify() public méthode

public Notify ( NotificationType type, string notification ) : void
type NotificationType
notification string
Résultat void

Notify() public méthode

public Notify ( NotificationType type, string notification, NotifyPriority priority ) : void
type NotificationType
notification string
priority NotifyPriority
Résultat void

Notify() public méthode

public Notify ( NotificationType type, string notification, string nickname, string phonetic ) : void
type NotificationType
notification string
nickname string
phonetic string
Résultat void

Notify() public méthode

public Notify ( NotificationType type, string notification, string nickname, string phonetic, NotifyPriority priority ) : void
type NotificationType
notification string
nickname string
phonetic string
priority NotifyPriority
Résultat void

RemoveNotifier() public méthode

Removes the notifier.
is null.
public RemoveNotifier ( INotifier notifier ) : bool
notifier INotifier The notifier to remove.
Résultat bool

RemoveNotifier() public méthode

Removes the notifier.
is null.
public RemoveNotifier ( ITextToSpeech notifier ) : bool
notifier ITextToSpeech The notifier to remove.
Résultat bool