All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.app.bsky.feed.postTextSlice.kt Maven / Gradle / Ivy

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