module CrystalGauntlet::Notifications

Extended Modules

Defined in:

lib/notifications.cr

Constant 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

Instance Method Detail

def clear_previous_notifications(account_id : Int32, type : String, target : Int32) #

[View source]
def format_notification(type : String, target : Int32 | Nil, details : NotificationDetails | Nil = nil, html_safe : Bool = false) #

[View source]
def send_notification(account_id : Int32, type : String, target : Int32 | Nil, details : NotificationDetails | Nil = nil) #

[View source]