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