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