RelationDefaultContent

@JsonClass(generateAdapter = true)
data class RelationDefaultContent(    @Json(name = "rel_type") val type: String?,     @Json(name = "event_id") val eventId: String?,     @Json(name = "m.in_reply_to") val inReplyTo: ReplyToContent? = null,     @Json(name = "option") val option: Int? = null,     @Json(name = "is_falling_back") val isFallingBack: Boolean? = null) : RelationContent

Constructors

Link copied to clipboard
fun RelationDefaultContent(    @Json(name = "rel_type") type: String?,     @Json(name = "event_id") eventId: String?,     @Json(name = "m.in_reply_to") inReplyTo: ReplyToContent? = null,     @Json(name = "option") option: Int? = null,     @Json(name = "is_falling_back") isFallingBack: Boolean? = null)

Properties

Link copied to clipboard
open override val eventId: String?
Link copied to clipboard
open override val inReplyTo: ReplyToContent? = null
Link copied to clipboard
open override val isFallingBack: Boolean? = null

This flag indicates that the message should be rendered as a reply fallback, when isFallingBack = false.

Link copied to clipboard
open override val option: Int? = null
Link copied to clipboard
open override val type: String?

See RelationType for known possible values.

Extensions

Link copied to clipboard
fun RelationDefaultContent?.isReply(): Boolean
Link copied to clipboard
fun RelationDefaultContent.shouldRenderInThread(): Boolean