/// /// NativeTranscriptSegment.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.clarion.azure import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "NativeTranscriptSegment". */ @DoNotStrip @Keep data class NativeTranscriptSegment( @DoNotStrip @Keep val text: String, @DoNotStrip @Keep val startMs: Double, @DoNotStrip @Keep val durationMs: Double, @DoNotStrip @Keep val confidence: Double, @DoNotStrip @Keep val alternatives: Array ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is NativeTranscriptSegment) return false return Objects.deepEquals(this.text, other.text) && Objects.deepEquals(this.startMs, other.startMs) && Objects.deepEquals(this.durationMs, other.durationMs) && Objects.deepEquals(this.confidence, other.confidence) && Objects.deepEquals(this.alternatives, other.alternatives) } override fun hashCode(): Int { return arrayOf( text, startMs, durationMs, confidence, alternatives ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(text: String, startMs: Double, durationMs: Double, confidence: Double, alternatives: Array): NativeTranscriptSegment { return NativeTranscriptSegment(text, startMs, durationMs, confidence, alternatives) } } }