module CrystalGauntlet::Notifications
Extended Modules
Defined in:
lib/notifications.crConstant Summary
-
NOTIFICATION_STRINGS =
{"authored_level_featured" => "Your level <b>%{level_name}</b> has been featured!", "authored_level_rated" => "Your level <b>%{level_name}</b> has been rated!", "like_milestone" => "Your level <b>%{level_name}</b> has reached <b>%{amount}</b> likes!", "download_milestone" => "Your level <b>%{level_name}</b> has reached <b>%{amount}</b> downloads!"}
Instance Method Summary
- #clear_previous_notifications(account_id : Int32, type : String, target : Int32)
- #format_notification(type : String, target : Int32 | Nil, details : NotificationDetails | Nil = nil, html_safe : Bool = false)
- #send_notification(account_id : Int32, type : String, target : Int32 | Nil, details : NotificationDetails | Nil = nil)
Instance Method Detail
def format_notification(type : String, target : Int32 | Nil, details : NotificationDetails | Nil = nil, html_safe : Bool = false)
#
def send_notification(account_id : Int32, type : String, target : Int32 | Nil, details : NotificationDetails | Nil = nil)
#