C# Class Gablarski.Clients.NotificationHandler

Handles automatically notifying a collection of INotifiers with the events.
Mostra file Open project: ermau/Gablarski

Public Methods

Method 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

Method 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 method

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 .
return void

AddNotifier() public method

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 .
return void

Clear() public method

Clears all notifiers.
public Clear ( ) : void
return void

Close() public method

public Close ( ) : void
return void

NotificationHandler() public method

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

Notify() public method

public Notify ( NotificationType type, string notification ) : void
type NotificationType
notification string
return void

Notify() public method

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

Notify() public method

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

Notify() public method

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

RemoveNotifier() public method

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

RemoveNotifier() public method

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