/// /// NativeTranscriptResult.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 "NativeTranscriptResult". */ @DoNotStrip @Keep data class NativeTranscriptResult( @DoNotStrip @Keep val id: String, @DoNotStrip @Keep val sessionId: String, @DoNotStrip @Keep val timestamp: Double, @DoNotStrip @Keep val text: String, @DoNotStrip @Keep val isFinal: Boolean, @DoNotStrip @Keep val language: String, @DoNotStrip @Keep val confidence: Double, @DoNotStrip @Keep val offsetMs: Double, @DoNotStrip @Keep val durationMs: Double, @DoNotStrip @Keep val speakerId: String, @DoNotStrip @Keep val segments: Array ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is NativeTranscriptResult) return false return Objects.deepEquals(this.id, other.id) && Objects.deepEquals(this.sessionId, other.sessionId) && Objects.deepEquals(this.timestamp, other.timestamp) && Objects.deepEquals(this.text, other.text) && Objects.deepEquals(this.isFinal, other.isFinal) && Objects.deepEquals(this.language, other.language) && Objects.deepEquals(this.confidence, other.confidence) && Objects.deepEquals(this.offsetMs, other.offsetMs) && Objects.deepEquals(this.durationMs, other.durationMs) && Objects.deepEquals(this.speakerId, other.speakerId) && Objects.deepEquals(this.segments, other.segments) } override fun hashCode(): Int { return arrayOf( id, sessionId, timestamp, text, isFinal, language, confidence, offsetMs, durationMs, speakerId, segments ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(id: String, sessionId: String, timestamp: Double, text: String, isFinal: Boolean, language: String, confidence: Double, offsetMs: Double, durationMs: Double, speakerId: String, segments: Array): NativeTranscriptResult { return NativeTranscriptResult(id, sessionId, timestamp, text, isFinal, language, confidence, offsetMs, durationMs, speakerId, segments) } } }