/// /// AudioPlayerStatus.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 "AudioPlayerStatus". */ @DoNotStrip @Keep data class AudioPlayerStatus( @DoNotStrip @Keep val currentTime: Double, @DoNotStrip @Keep val duration: Double, @DoNotStrip @Keep val playing: Boolean, @DoNotStrip @Keep val paused: Boolean, @DoNotStrip @Keep val isLoaded: Boolean, @DoNotStrip @Keep val isBuffering: Boolean, @DoNotStrip @Keep val loop: Boolean, @DoNotStrip @Keep val muted: Boolean, @DoNotStrip @Keep val volume: Double, @DoNotStrip @Keep val playbackRate: Double, @DoNotStrip @Keep val shouldCorrectPitch: Boolean, @DoNotStrip @Keep val error: String?, @DoNotStrip @Keep val didJustFinish: Boolean ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is AudioPlayerStatus) return false return Objects.deepEquals(this.currentTime, other.currentTime) && Objects.deepEquals(this.duration, other.duration) && Objects.deepEquals(this.playing, other.playing) && Objects.deepEquals(this.paused, other.paused) && Objects.deepEquals(this.isLoaded, other.isLoaded) && Objects.deepEquals(this.isBuffering, other.isBuffering) && Objects.deepEquals(this.loop, other.loop) && Objects.deepEquals(this.muted, other.muted) && Objects.deepEquals(this.volume, other.volume) && Objects.deepEquals(this.playbackRate, other.playbackRate) && Objects.deepEquals(this.shouldCorrectPitch, other.shouldCorrectPitch) && Objects.deepEquals(this.error, other.error) && Objects.deepEquals(this.didJustFinish, other.didJustFinish) } override fun hashCode(): Int { return arrayOf( currentTime, duration, playing, paused, isLoaded, isBuffering, loop, muted, volume, playbackRate, shouldCorrectPitch, error, didJustFinish ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(currentTime: Double, duration: Double, playing: Boolean, paused: Boolean, isLoaded: Boolean, isBuffering: Boolean, loop: Boolean, muted: Boolean, volume: Double, playbackRate: Double, shouldCorrectPitch: Boolean, error: String?, didJustFinish: Boolean): AudioPlayerStatus { return AudioPlayerStatus(currentTime, duration, playing, paused, isLoaded, isBuffering, loop, muted, volume, playbackRate, shouldCorrectPitch, error, didJustFinish) } } }