/// /// SecurityAvailability.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.sensitiveinfo import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "SecurityAvailability". */ @DoNotStrip @Keep data class SecurityAvailability( @DoNotStrip @Keep val secureEnclave: Boolean, @DoNotStrip @Keep val strongBox: Boolean, @DoNotStrip @Keep val biometry: Boolean, @DoNotStrip @Keep val biometryStatus: BiometryStatus, @DoNotStrip @Keep val deviceCredential: Boolean ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is SecurityAvailability) return false return Objects.deepEquals(this.secureEnclave, other.secureEnclave) && Objects.deepEquals(this.strongBox, other.strongBox) && Objects.deepEquals(this.biometry, other.biometry) && Objects.deepEquals(this.biometryStatus, other.biometryStatus) && Objects.deepEquals(this.deviceCredential, other.deviceCredential) } override fun hashCode(): Int { return arrayOf( secureEnclave, strongBox, biometry, biometryStatus, deviceCredential ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(secureEnclave: Boolean, strongBox: Boolean, biometry: Boolean, biometryStatus: BiometryStatus, deviceCredential: Boolean): SecurityAvailability { return SecurityAvailability(secureEnclave, strongBox, biometry, biometryStatus, deviceCredential) } } }