@file:Suppress("HardCodedStringLiteral")

package eu.gaudian.translator.model

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
data class SubtitleLine(
    @SerialName("start") val start: Float,
    @SerialName("duration") val duration: Float,
    @SerialName("text") val text: String,
    // Optional translated text to be displayed alongside the original subtitle.
    // Not provided by the backend; filled by the app after fetching.
    @SerialName("translatedText") val translatedText: String? = null
) {
    val end: Float get() = start + duration
}