ExStreamClient.Model.Reaction (ExStreamClient v0.2.0)

Copy Markdown View Source

Schema representing a Reaction

Summary

Functions

Components could just be enums that are typed - so we need to decode those as enums as they will just be stings

Types

t()

@type t() :: %ExStreamClient.Model.Reaction{
  activity_id: String.t(),
  children_counts: %{optional(String.t()) => any()} | nil,
  created_at: DateTime.t() | integer() | String.t(),
  data: %{optional(String.t()) => any()} | nil,
  deleted_at: (DateTime.t() | integer() | String.t()) | nil,
  id: String.t() | nil,
  kind: String.t(),
  latest_children: %{optional(String.t()) => [t()]} | nil,
  moderation: %{optional(String.t()) => any()} | nil,
  own_children: %{optional(String.t()) => [t()]} | nil,
  parent: String.t() | nil,
  score: float() | nil,
  target_feeds: [String.t()] | nil,
  target_feeds_extra_data: %{optional(String.t()) => any()} | nil,
  updated_at: DateTime.t() | integer() | String.t(),
  user: ExStreamClient.Model.User.t() | nil,
  user_id: String.t()
}

Functions

decode(map)

Components could just be enums that are typed - so we need to decode those as enums as they will just be stings

nested_components()