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