ArchAstro.Types.ThreadReadStatus (archastro v0.2.0)

Copy Markdown

The read status of a thread for a specific user, indicating how far they have read and how many messages remain unread.

Summary

Types

t()

@type t() :: %ArchAstro.Types.ThreadReadStatus{
  last_read_message: String.t() | ArchAstro.Unset.t(),
  thread: String.t(),
  unread_count: integer()
}

Functions

from_map(data)

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

matches?(value)

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

to_map(value)

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