ExStreamClient.Model.MessageNewEvent (ExStreamClient v0.1.11)

View Source

Schema representing a MessageNewEvent

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.MessageNewEvent{
  channel: ExStreamClient.Model.Channel.t() | nil,
  channel_custom: %{optional(String.t()) => any()} | nil,
  channel_id: String.t(),
  channel_last_message_at: String.t() | nil,
  channel_member_count: integer() | nil,
  channel_type: String.t(),
  cid: String.t(),
  created_at: DateTime.t() | integer() | String.t(),
  members: [ExStreamClient.Model.ChannelMember.t()] | nil,
  message: ExStreamClient.Model.Message.t() | nil,
  message_id: String.t() | nil,
  team: String.t() | nil,
  thread_participants: [ExStreamClient.Model.User.t()] | nil,
  type: String.t(),
  user: ExStreamClient.Model.User.t() | 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()