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