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