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