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