/// /// Subtitle.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 "Subtitle". */ @DoNotStrip @Keep data class Subtitle( @DoNotStrip @Keep val id: String, @DoNotStrip @Keep val link: String, @DoNotStrip @Keep val mimeType: String?, @DoNotStrip @Keep val language: String?, @DoNotStrip @Keep val label: String? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is Subtitle) return false return Objects.deepEquals(this.id, other.id) && Objects.deepEquals(this.link, other.link) && Objects.deepEquals(this.mimeType, other.mimeType) && Objects.deepEquals(this.language, other.language) && Objects.deepEquals(this.label, other.label) } override fun hashCode(): Int { return arrayOf( id, link, mimeType, language, label ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(id: String, link: String, mimeType: String?, language: String?, label: String?): Subtitle { return Subtitle(id, link, mimeType, language, label) } } }