ExStreamClient.Model.NotificationThreadMessageNewEvent (ExStreamClient v0.2.0)

Copy Markdown View Source

Schema representing a NotificationThreadMessageNewEvent

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.NotificationThreadMessageNewEvent{
  channel: ExStreamClient.Model.ChannelResponse.t(),
  channel_custom: %{optional(String.t()) => any()} | nil,
  channel_id: String.t() | nil,
  channel_member_count: integer() | nil,
  channel_message_count: integer() | nil,
  channel_type: String.t() | nil,
  cid: String.t() | nil,
  created_at: DateTime.t() | integer() | String.t(),
  custom: %{optional(String.t()) => any()},
  message: ExStreamClient.Model.MessageResponse.t(),
  message_id: String.t(),
  parent_author: String.t() | nil,
  received_at: (DateTime.t() | integer() | String.t()) | nil,
  team: String.t() | nil,
  thread_id: String.t(),
  thread_participants:
    [ExStreamClient.Model.UserResponseCommonFields.t()] | nil,
  type: String.t(),
  unread_thread_messages: integer() | nil,
  unread_threads: integer() | nil,
  watcher_count: integer()
}

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()