C# Класс Gablarski.Clients.NotificationHandler

Handles automatically notifying a collection of INotifiers with the events.
Показать файл Открыть проект

Открытые методы

Метод Описание
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