/// /// SpeechSynthesisUtterance.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.one import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "SpeechSynthesisUtterance". */ @DoNotStrip @Keep data class SpeechSynthesisUtterance( @DoNotStrip @Keep val text: String, @DoNotStrip @Keep val language: String?, @DoNotStrip @Keep val pitch: Double?, @DoNotStrip @Keep val rate: Double?, @DoNotStrip @Keep val voice: String?, @DoNotStrip @Keep val volume: Double? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is SpeechSynthesisUtterance) return false return Objects.deepEquals(this.text, other.text) && Objects.deepEquals(this.language, other.language) && Objects.deepEquals(this.pitch, other.pitch) && Objects.deepEquals(this.rate, other.rate) && Objects.deepEquals(this.voice, other.voice) && Objects.deepEquals(this.volume, other.volume) } override fun hashCode(): Int { return arrayOf( text, language, pitch, rate, voice, volume ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(text: String, language: String?, pitch: Double?, rate: Double?, voice: String?, volume: Double?): SpeechSynthesisUtterance { return SpeechSynthesisUtterance(text, language, pitch, rate, voice, volume) } } }