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