Post

data class Post(val text: String, val entities: ReadOnlyList<PostEntity> = persistentListOf(), val facets: ReadOnlyList<Facet> = persistentListOf(), val reply: PostReplyRef? = null, val embed: PostEmbedUnion? = null, val langs: ReadOnlyList<Language> = persistentListOf(), val labels: PostLabelsUnion? = null, val tags: ReadOnlyList<String> = persistentListOf(), val createdAt: Timestamp)

Constructors

Link copied to clipboard
constructor(text: String, entities: ReadOnlyList<PostEntity> = persistentListOf(), facets: ReadOnlyList<Facet> = persistentListOf(), reply: PostReplyRef? = null, embed: PostEmbedUnion? = null, langs: ReadOnlyList<Language> = persistentListOf(), labels: PostLabelsUnion? = null, tags: ReadOnlyList<String> = persistentListOf(), createdAt: Timestamp)

Properties

Link copied to clipboard

Client-declared timestamp when this post was originally created.

Link copied to clipboard
val embed: PostEmbedUnion? = null
Link copied to clipboard
Link copied to clipboard

Annotations of text (mentions, URLs, hashtags, etc)

Link copied to clipboard
val labels: PostLabelsUnion? = null

Self-label values for this post. Effectively content warnings.

Link copied to clipboard

Indicates human language of post primary text content.

Link copied to clipboard
val reply: PostReplyRef? = null
Link copied to clipboard

Additional hashtags, in addition to any included in post text and facets.

Link copied to clipboard

The primary post content. May be an empty string, if there are embeds.