/// /// PTDevice.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 "PTDevice". */ @DoNotStrip @Keep data class PTDevice( @DoNotStrip @Keep val name: String, @DoNotStrip @Keep val security: PTSecurity, @DoNotStrip @Keep val transport: PTTransport, @DoNotStrip @Keep val connected: Boolean?, @DoNotStrip @Keep val username: String?, @DoNotStrip @Keep val versionInfo: String?, @DoNotStrip @Keep val capabilities: Array?, @DoNotStrip @Keep val advertisementData: String? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is PTDevice) return false return Objects.deepEquals(this.name, other.name) && Objects.deepEquals(this.security, other.security) && Objects.deepEquals(this.transport, other.transport) && Objects.deepEquals(this.connected, other.connected) && Objects.deepEquals(this.username, other.username) && Objects.deepEquals(this.versionInfo, other.versionInfo) && Objects.deepEquals(this.capabilities, other.capabilities) && Objects.deepEquals(this.advertisementData, other.advertisementData) } override fun hashCode(): Int { return arrayOf( name, security, transport, connected, username, versionInfo, capabilities, advertisementData ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(name: String, security: PTSecurity, transport: PTTransport, connected: Boolean?, username: String?, versionInfo: String?, capabilities: Array?, advertisementData: String?): PTDevice { return PTDevice(name, security, transport, connected, username, versionInfo, capabilities, advertisementData) } } }