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

delete(client, id)

@spec delete(HookSniff.t(), String.t()) :: {:ok, map()} | {:error, term()}

Delete a notification

list(client)

@spec list(HookSniff.t()) :: {:ok, map()} | {:error, term()}

List notifications

mark_all_read(client)

@spec mark_all_read(HookSniff.t()) :: {:ok, map()} | {:error, term()}

Mark all as read

mark_read(client, id)

@spec mark_read(HookSniff.t(), String.t()) :: {:ok, map()} | {:error, term()}

Mark one as read

unread_count(client)

@spec unread_count(HookSniff.t()) :: {:ok, map()} | {:error, term()}

Get unread count