/// /// StorageMetadata.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 "StorageMetadata". */ @DoNotStrip @Keep data class StorageMetadata( @DoNotStrip @Keep val securityLevel: SecurityLevel, @DoNotStrip @Keep val backend: StorageBackend, @DoNotStrip @Keep val accessControl: AccessControl, @DoNotStrip @Keep val timestamp: Double, @DoNotStrip @Keep val keyVersion: Double?, @DoNotStrip @Keep val integrityTag: String? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is StorageMetadata) return false return Objects.deepEquals(this.securityLevel, other.securityLevel) && Objects.deepEquals(this.backend, other.backend) && Objects.deepEquals(this.accessControl, other.accessControl) && Objects.deepEquals(this.timestamp, other.timestamp) && Objects.deepEquals(this.keyVersion, other.keyVersion) && Objects.deepEquals(this.integrityTag, other.integrityTag) } override fun hashCode(): Int { return arrayOf( securityLevel, backend, accessControl, timestamp, keyVersion, integrityTag ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(securityLevel: SecurityLevel, backend: StorageBackend, accessControl: AccessControl, timestamp: Double, keyVersion: Double?, integrityTag: String?): StorageMetadata { return StorageMetadata(securityLevel, backend, accessControl, timestamp, keyVersion, integrityTag) } } }