ArchAstro. Types. ChatRoomModel
(archastro v0.2.0)
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
@type t() :: %ArchAstro.Types.ChatRoomModel{ after_cursor: String.t() | ArchAstro.Unset.t(), agent: ArchAstro.Types.Agent.t() | ArchAstro.Unset.t(), before_cursor: String.t() | ArchAstro.Unset.t(), is_transient: boolean(), members: [ArchAstro.Types.ChatMember.t()], messages: [ArchAstro.Types.Message.t()], messages_loaded_on_last_update: integer() | ArchAstro.Unset.t(), team: ArchAstro.Types.Team.t() | ArchAstro.Unset.t(), thread: ArchAstro.Types.Thread.t() }
Functions
@spec from_map(ArchAstro.JSON.object()) :: t()
@spec matches?(ArchAstro.JSON.t()) :: boolean()
@spec to_map(t()) :: ArchAstro.JSON.object()