View Source ExshomePlayer.Schemas.Track (Exshome - Elixir Smart Home v0.1.7)

Player track data.

Link to this section Summary

Link to this section Types

@type t() :: %ExshomePlayer.Schemas.Track{
  __meta__: term(),
  id: term(),
  inserted_at: term(),
  path: String.t() | nil,
  title: String.t() | nil,
  type: :url | :file,
  updated_at: term()

Link to this section Functions

Link to this function

changeset(struct, params \\ %{})

View Source
@spec changeset(t(), map()) :: Ecto.Changeset.t(t())
@spec create!(map()) :: t()
@spec create(map()) :: {:ok, t()} | {:error, Ecto.Changeset.t(t())}
@spec delete!(t()) :: :ok
@spec get!(String.t()) :: t()
Link to this function


View Source
@spec get_or_create_by_path(String.t()) :: t()
@spec list() :: [t()]
@spec refresh_tracklist() :: :ok
@spec update!(t(), map()) :: t()
@spec update(t(), map()) :: {:ok, t()} | {:error, Ecto.Changeset.t(t())}
@spec url(t()) :: String.t()