Skip to main content

apps.notifications.strategies

BaseNotificationStrategy

class BaseNotificationStrategy()

should_send_notification

@staticmethod
def should_send_notification(user: str, type: str)

Based on strategy, user and notification type decide, if notification should be sent to user. Can be used if application allows user to disable specific notification channels or user can customize what notification types he wants to receive.