class Circed::Services::NotificationService

Included Modules

Defined in:

circed/services/notification_service.cr

Constructors

Instance Method Summary

Instance methods inherited from module Circed::Core::NotificationService

notify(event : NotificationEvent, targets : Array(NotificationTarget)) : Void notify

Constructor Detail

def self.new(user_repository : Repositories::UserRepository, channel_repository : Repositories::ChannelRepository) #

[View source]

Instance Method Detail

def notify(event : Core::NotificationEvent, targets : Array(Core::NotificationTarget)) : Void #

[View source]
def notify_batch_join(channel_name : String, nicknames : Array(String)) #

[View source]
def notify_channel_message(sender : String, channel_name : String, message_text : String) #

[View source]
def notify_invite(inviter : String, invited : String, channel_name : String) #

[View source]
def notify_mode_change(channel_name : String, modes : String, set_by : String, targets : Array(String) = [] of String) #

[View source]
def notify_netsplit(affected_users : Array(Domain::User), reason : String) #

[View source]
def notify_nick_change(old_nickname : String, new_nickname : String) #

[View source]
def notify_private_message(sender : String, target : String, message_text : String) #

[View source]
def notify_remote_user_joined(nickname : String, username : String, hostname : String, channel_name : String) #

Remote user notifications (from other servers)


[View source]
def notify_remote_user_parted(nickname : String, username : String, hostname : String, channel_name : String, reason : String | Nil = nil) #

[View source]
def notify_remote_user_quit(nickname : String, username : String, hostname : String, reason : String | Nil = nil) #

[View source]
def notify_server_message(server_name : String, message : String) #

[View source]
def notify_topic_change(channel_name : String, topic : String, set_by : String) #

[View source]
def notify_user_joined(nickname : String, channel_name : String, exclude_user : Bool = true) #

High-level notification methods


[View source]
def notify_user_kicked(channel_name : String, kicked_user : String, kicker : String, reason : String | Nil = nil) #

[View source]
def notify_user_parted(nickname : String, channel_name : String, reason : String | Nil = nil) #

[View source]
def notify_user_quit(nickname : String, reason : String | Nil = nil) #

[View source]