TextContentPart

Base of the three content parts that carry nothing but text, so they can be matched at once:

val text = part.let { if (it is TextContentPart) it.text else null }

Inheritors

Properties

Link copied to clipboard
abstract val text: String

The text the part carries.

Link copied to clipboard
abstract val type: String

Raw type discriminator of the part.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String