TranscriptionSegment

data class TranscriptionSegment(val id: String, val text: String, val language: String, val final: Boolean, val firstReceivedTime: Long = Date().time, val lastReceivedTime: Long = Date().time)

Constructors

Link copied to clipboard
constructor(id: String, text: String, language: String, final: Boolean, firstReceivedTime: Long = Date().time, lastReceivedTime: Long = Date().time)

Properties

Link copied to clipboard

If false, the user can expect this transcription to update in the future.

Link copied to clipboard

When this client first locally received this segment.

Link copied to clipboard
val id: String

The id of the transcription segment.

Link copied to clipboard

Language

Link copied to clipboard

When this client last locally received this segment.

Link copied to clipboard

The text of the transcription.

Functions

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Merges newSegment info into this segment if the ids are equal.