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