/// /// TensorFaceOptions.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.visioncamerafacedetection import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "TensorFaceOptions". */ @DoNotStrip @Keep data class TensorFaceOptions( @DoNotStrip @Keep val base64Image: String, @DoNotStrip @Keep val cameraFacing: CameraPosition?, @DoNotStrip @Keep val autoMode: Boolean?, @DoNotStrip @Keep val windowWidth: Double?, @DoNotStrip @Keep val windowHeight: Double?, @DoNotStrip @Keep val performanceMode: PerformanceMode?, @DoNotStrip @Keep val runLandmarks: Boolean?, @DoNotStrip @Keep val runContours: Boolean?, @DoNotStrip @Keep val runClassifications: Boolean?, @DoNotStrip @Keep val minFaceSize: Double?, @DoNotStrip @Keep val trackingEnabled: Boolean? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is TensorFaceOptions) return false return Objects.deepEquals(this.base64Image, other.base64Image) && Objects.deepEquals(this.cameraFacing, other.cameraFacing) && Objects.deepEquals(this.autoMode, other.autoMode) && Objects.deepEquals(this.windowWidth, other.windowWidth) && Objects.deepEquals(this.windowHeight, other.windowHeight) && Objects.deepEquals(this.performanceMode, other.performanceMode) && Objects.deepEquals(this.runLandmarks, other.runLandmarks) && Objects.deepEquals(this.runContours, other.runContours) && Objects.deepEquals(this.runClassifications, other.runClassifications) && Objects.deepEquals(this.minFaceSize, other.minFaceSize) && Objects.deepEquals(this.trackingEnabled, other.trackingEnabled) } override fun hashCode(): Int { return arrayOf( base64Image, cameraFacing, autoMode, windowWidth, windowHeight, performanceMode, runLandmarks, runContours, runClassifications, minFaceSize, trackingEnabled ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(base64Image: String, cameraFacing: CameraPosition?, autoMode: Boolean?, windowWidth: Double?, windowHeight: Double?, performanceMode: PerformanceMode?, runLandmarks: Boolean?, runContours: Boolean?, runClassifications: Boolean?, minFaceSize: Double?, trackingEnabled: Boolean?): TensorFaceOptions { return TensorFaceOptions(base64Image, cameraFacing, autoMode, windowWidth, windowHeight, performanceMode, runLandmarks, runContours, runClassifications, minFaceSize, trackingEnabled) } } }