HookSniff.Notifications (hooksniff v1.2.0)
Notification management.
Summary
Functions
Delete a notification
List notifications
Mark all as read
Mark one as read
Get unread count
Functions
@spec delete(HookSniff.t(), String.t()) :: {:ok, map()} | {:error, term()}
Delete a notification
@spec list(HookSniff.t()) :: {:ok, map()} | {:error, term()}
List notifications
@spec mark_all_read(HookSniff.t()) :: {:ok, map()} | {:error, term()}
Mark all as read
@spec mark_read(HookSniff.t(), String.t()) :: {:ok, map()} | {:error, term()}
Mark one as read
@spec unread_count(HookSniff.t()) :: {:ok, map()} | {:error, term()}
Get unread count