class
Circed::Services::NotificationService
- Circed::Services::NotificationService
- Reference
- Object
Included Modules
Defined in:
circed/services/notification_service.crConstructors
Instance Method Summary
- #notify(event : Core::NotificationEvent, targets : Array(Core::NotificationTarget)) : Void
- #notify_batch_join(channel_name : String, nicknames : Array(String))
- #notify_channel_message(sender : String, channel_name : String, message_text : String)
- #notify_invite(inviter : String, invited : String, channel_name : String)
- #notify_mode_change(channel_name : String, modes : String, set_by : String, targets : Array(String) = [] of String)
- #notify_netsplit(affected_users : Array(Domain::User), reason : String)
- #notify_nick_change(old_nickname : String, new_nickname : String)
- #notify_private_message(sender : String, target : String, message_text : String)
-
#notify_remote_user_joined(nickname : String, username : String, hostname : String, channel_name : String)
Remote user notifications (from other servers)
- #notify_remote_user_parted(nickname : String, username : String, hostname : String, channel_name : String, reason : String | Nil = nil)
- #notify_remote_user_quit(nickname : String, username : String, hostname : String, reason : String | Nil = nil)
- #notify_server_message(server_name : String, message : String)
- #notify_topic_change(channel_name : String, topic : String, set_by : String)
-
#notify_user_joined(nickname : String, channel_name : String, exclude_user : Bool = true)
High-level notification methods
- #notify_user_kicked(channel_name : String, kicked_user : String, kicker : String, reason : String | Nil = nil)
- #notify_user_parted(nickname : String, channel_name : String, reason : String | Nil = nil)
- #notify_user_quit(nickname : String, reason : String | Nil = nil)
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)
#
Instance Method Detail
def notify_channel_message(sender : String, channel_name : String, message_text : String)
#
def notify_mode_change(channel_name : String, modes : String, set_by : String, targets : Array(String) = [] of String)
#
def notify_remote_user_joined(nickname : String, username : String, hostname : String, channel_name : String)
#
Remote user notifications (from other servers)
def notify_remote_user_parted(nickname : String, username : String, hostname : String, channel_name : String, reason : String | Nil = nil)
#
def notify_remote_user_quit(nickname : String, username : String, hostname : String, reason : String | Nil = nil)
#
def notify_user_joined(nickname : String, channel_name : String, exclude_user : Bool = true)
#
High-level notification methods
def notify_user_kicked(channel_name : String, kicked_user : String, kicker : String, reason : String | Nil = nil)
#
def notify_user_parted(nickname : String, channel_name : String, reason : String | Nil = nil)
#