/// /// ExtendedAdvertisingOptions.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.munimbluetooth import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "ExtendedAdvertisingOptions". */ @DoNotStrip @Keep data class ExtendedAdvertisingOptions( @DoNotStrip @Keep val serviceUUIDs: Array?, @DoNotStrip @Keep val localName: String?, @DoNotStrip @Keep val manufacturerData: String?, @DoNotStrip @Keep val advertisingData: AdvertisingDataTypes?, @DoNotStrip @Keep val connectable: Boolean?, @DoNotStrip @Keep val scannable: Boolean?, @DoNotStrip @Keep val legacyMode: Boolean?, @DoNotStrip @Keep val anonymous: Boolean?, @DoNotStrip @Keep val includeTxPower: Boolean?, @DoNotStrip @Keep val interval: Double?, @DoNotStrip @Keep val txPowerLevel: Double?, @DoNotStrip @Keep val primaryPhy: BluetoothPhy?, @DoNotStrip @Keep val secondaryPhy: BluetoothPhy? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is ExtendedAdvertisingOptions) return false return Objects.deepEquals(this.serviceUUIDs, other.serviceUUIDs) && Objects.deepEquals(this.localName, other.localName) && Objects.deepEquals(this.manufacturerData, other.manufacturerData) && Objects.deepEquals(this.advertisingData, other.advertisingData) && Objects.deepEquals(this.connectable, other.connectable) && Objects.deepEquals(this.scannable, other.scannable) && Objects.deepEquals(this.legacyMode, other.legacyMode) && Objects.deepEquals(this.anonymous, other.anonymous) && Objects.deepEquals(this.includeTxPower, other.includeTxPower) && Objects.deepEquals(this.interval, other.interval) && Objects.deepEquals(this.txPowerLevel, other.txPowerLevel) && Objects.deepEquals(this.primaryPhy, other.primaryPhy) && Objects.deepEquals(this.secondaryPhy, other.secondaryPhy) } override fun hashCode(): Int { return arrayOf( serviceUUIDs, localName, manufacturerData, advertisingData, connectable, scannable, legacyMode, anonymous, includeTxPower, interval, txPowerLevel, primaryPhy, secondaryPhy ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(serviceUUIDs: Array?, localName: String?, manufacturerData: String?, advertisingData: AdvertisingDataTypes?, connectable: Boolean?, scannable: Boolean?, legacyMode: Boolean?, anonymous: Boolean?, includeTxPower: Boolean?, interval: Double?, txPowerLevel: Double?, primaryPhy: BluetoothPhy?, secondaryPhy: BluetoothPhy?): ExtendedAdvertisingOptions { return ExtendedAdvertisingOptions(serviceUUIDs, localName, manufacturerData, advertisingData, connectable, scannable, legacyMode, anonymous, includeTxPower, interval, txPowerLevel, primaryPhy, secondaryPhy) } } }