/// /// Source.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.omni import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "Source". */ @DoNotStrip @Keep data class Source( @DoNotStrip @Keep val src: VideoSrc, @DoNotStrip @Keep val startTime: Double?, @DoNotStrip @Keep val subtitles: Array, @DoNotStrip @Keep val fonts: Array?, @DoNotStrip @Keep val metadata: Metadata?, @DoNotStrip @Keep val mixAudio: MixAudioMode?, @DoNotStrip @Keep val castId: String?, @DoNotStrip @Keep val castData: Map? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is Source) return false return Objects.deepEquals(this.src, other.src) && Objects.deepEquals(this.startTime, other.startTime) && Objects.deepEquals(this.subtitles, other.subtitles) && Objects.deepEquals(this.fonts, other.fonts) && Objects.deepEquals(this.metadata, other.metadata) && Objects.deepEquals(this.mixAudio, other.mixAudio) && Objects.deepEquals(this.castId, other.castId) && Objects.deepEquals(this.castData, other.castData) } override fun hashCode(): Int { return arrayOf( src, startTime, subtitles, fonts, metadata, mixAudio, castId, castData ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(src: VideoSrc, startTime: Double?, subtitles: Array, fonts: Array?, metadata: Metadata?, mixAudio: MixAudioMode?, castId: String?, castData: Map?): Source { return Source(src, startTime, subtitles, fonts, metadata, mixAudio, castId, castData) } } }