ArchAstro.SDK.Types.ChatRoomModel (archastro v0.3.2)

Copy Markdown

A point-in-time snapshot of a chat room's state, including its loaded messages, member roster, and pagination cursors. Returned when loading or refreshing a thread's message list.

Summary

Types

t()

@type t() :: %ArchAstro.SDK.Types.ChatRoomModel{
  after_cursor: String.t() | ArchAstro.SDK.Unset.t(),
  agent: ArchAstro.SDK.Types.Agent.t() | ArchAstro.SDK.Unset.t(),
  before_cursor: String.t() | ArchAstro.SDK.Unset.t(),
  is_transient: boolean(),
  members: [ArchAstro.SDK.Types.ChatMember.t()],
  messages: [ArchAstro.SDK.Types.Message.t()],
  messages_loaded_on_last_update: integer() | ArchAstro.SDK.Unset.t(),
  team: ArchAstro.SDK.Types.Team.t() | ArchAstro.SDK.Unset.t(),
  thread: ArchAstro.SDK.Types.Thread.t()
}

Functions

from_map(data)

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

matches?(value)

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

to_map(value)

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