Notified (notified v0.0.2)

This module is the facade for managing notifications with notified

Link to this section Summary

Link to this section Types

Specs

message() :: String.t()
Link to this type

notification()

Specs

notification() :: Notified.Notification.t()
Link to this type

search_term()

Specs

search_term() :: String.t()

Specs

subject() :: String.t()

Specs

tags() :: [String.t()]

Link to this section Functions

Specs

clear() :: :ok | {:error, term()}

Specs

count_unseen() :: non_neg_integer()
Link to this function

create(subject, message, tags)

Specs

create(subject(), message(), tags()) ::
  {:ok, notification()} | {:error, Ecto.Changeset.t()}
Link to this function

delete(notification)

Specs

delete(notification()) :: {:ok, notification()} | {:error, Ecto.Changeset.t()}

Specs

get!(integer()) :: notification()
Link to this function

mark_seen(notification)

Specs

mark_seen(notification()) ::
  {:ok, notification()} | {:error, Ecto.Changeset.t()}
Link to this function

search(search_term, opts)

Specs

search(search_term(), list()) :: [notification()]
Link to this function

search_count(search_term)

Specs

search_count(search_term()) :: non_neg_integer()