commonMain.app.bsky.feed.postTextSlice.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluesky Show documentation
Show all versions of bluesky Show documentation
Bluesky Social API bindings for Kotlin.
The newest version!
@file:Suppress("DEPRECATION")
package app.bsky.feed
import kotlin.Deprecated
import kotlin.Long
import kotlin.Suppress
import kotlinx.serialization.Serializable
@Serializable
@Deprecated("Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings.")
public data class PostTextSlice(
public val start: Long,
public val end: Long,
) {
init {
require(start >= 0) {
"start must be >= 0, but was $start"
}
require(end >= 0) {
"end must be >= 0, but was $end"
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy