ArchAstro.Types.NotificationPreference (archastro v0.2.0)

Copy Markdown

A single per-channel notification preference for the authenticated viewer, scoped to a notification type and optional app.

Summary

Types

t()

@type t() :: %ArchAstro.Types.NotificationPreference{
  app_id: String.t() | ArchAstro.Unset.t(),
  channel: String.t(),
  created_at: DateTime.t() | ArchAstro.Unset.t(),
  enabled: boolean(),
  id: String.t(),
  type: String.t(),
  updated_at: DateTime.t() | ArchAstro.Unset.t()
}

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()