/// /// LocationPlace.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 "LocationPlace". */ @DoNotStrip @Keep data class LocationPlace( @DoNotStrip @Keep val latitude: Double, @DoNotStrip @Keep val longitude: Double, @DoNotStrip @Keep val name: String?, @DoNotStrip @Keep val street: String?, @DoNotStrip @Keep val houseNumber: String?, @DoNotStrip @Keep val city: String?, @DoNotStrip @Keep val region: String?, @DoNotStrip @Keep val postalCode: String?, @DoNotStrip @Keep val country: String?, @DoNotStrip @Keep val isoCountryCode: String? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is LocationPlace) return false return Objects.deepEquals(this.latitude, other.latitude) && Objects.deepEquals(this.longitude, other.longitude) && Objects.deepEquals(this.name, other.name) && Objects.deepEquals(this.street, other.street) && Objects.deepEquals(this.houseNumber, other.houseNumber) && Objects.deepEquals(this.city, other.city) && Objects.deepEquals(this.region, other.region) && Objects.deepEquals(this.postalCode, other.postalCode) && Objects.deepEquals(this.country, other.country) && Objects.deepEquals(this.isoCountryCode, other.isoCountryCode) } override fun hashCode(): Int { return arrayOf( latitude, longitude, name, street, houseNumber, city, region, postalCode, country, isoCountryCode ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(latitude: Double, longitude: Double, name: String?, street: String?, houseNumber: String?, city: String?, region: String?, postalCode: String?, country: String?, isoCountryCode: String?): LocationPlace { return LocationPlace(latitude, longitude, name, street, houseNumber, city, region, postalCode, country, isoCountryCode) } } }