AccessGrid.CardTemplatePair.Summary (AccessGrid v0.1.0)

Copy Markdown View Source

Minimal representation of a template pair, as returned by AccessGrid.Console.list_card_template_pairs/1.

Holds the pair's identity plus platform-keyed summaries of its member templates. For the full pair representation (returned from AccessGrid.Console.read_template/2 when the resolved id belongs to a pair), see AccessGrid.CardTemplatePair.

Summary

Functions

Creates a CardTemplatePair.Summary struct from an API response map.

Types

t()

@type t() :: %AccessGrid.CardTemplatePair.Summary{
  android_template: AccessGrid.CardTemplate.Summary.t() | nil,
  created_at: String.t() | nil,
  id: String.t() | nil,
  ios_template: AccessGrid.CardTemplate.Summary.t() | nil,
  name: String.t() | nil
}

Functions

from_response(data)

@spec from_response(map()) :: t()

Creates a CardTemplatePair.Summary struct from an API response map.