Notifications Services¶
- class services.notifications.notification.NotificationService[source]¶
Bases:
objectNotification Service
- classmethod create(sender: User, receiver: User, post: Post | None, data: Dict[str, Any] | None, type: str) None[source]¶
- classmethod send_comment_notification(sender: User, receiver: User, post: Post, data: Dict[str, Any]) None[source]¶
Send commnet notification
- classmethod send_follow_notification(sender: User, receiver: User) None[source]¶
Send follow notification
- classmethod send_like_notification(sender: User, receiver: User, post: Post) None[source]¶
Send like notification