/// /// BluetoothCapabilities.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 "BluetoothCapabilities". */ @DoNotStrip @Keep data class BluetoothCapabilities( @DoNotStrip @Keep val platform: String, @DoNotStrip @Keep val supportsBleCentral: Boolean, @DoNotStrip @Keep val supportsBlePeripheral: Boolean, @DoNotStrip @Keep val supportsDescriptors: Boolean, @DoNotStrip @Keep val supportsIncludedServices: Boolean, @DoNotStrip @Keep val supportsMtu: Boolean, @DoNotStrip @Keep val supportsPhy: Boolean, @DoNotStrip @Keep val supportsBonding: Boolean, @DoNotStrip @Keep val supportsExtendedAdvertising: Boolean, @DoNotStrip @Keep val supportsL2cap: Boolean, @DoNotStrip @Keep val supportsClassicBluetooth: Boolean, @DoNotStrip @Keep val supportsBackgroundBle: Boolean, @DoNotStrip @Keep val supportsMultipeerConnectivity: Boolean ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is BluetoothCapabilities) return false return Objects.deepEquals(this.platform, other.platform) && Objects.deepEquals(this.supportsBleCentral, other.supportsBleCentral) && Objects.deepEquals(this.supportsBlePeripheral, other.supportsBlePeripheral) && Objects.deepEquals(this.supportsDescriptors, other.supportsDescriptors) && Objects.deepEquals(this.supportsIncludedServices, other.supportsIncludedServices) && Objects.deepEquals(this.supportsMtu, other.supportsMtu) && Objects.deepEquals(this.supportsPhy, other.supportsPhy) && Objects.deepEquals(this.supportsBonding, other.supportsBonding) && Objects.deepEquals(this.supportsExtendedAdvertising, other.supportsExtendedAdvertising) && Objects.deepEquals(this.supportsL2cap, other.supportsL2cap) && Objects.deepEquals(this.supportsClassicBluetooth, other.supportsClassicBluetooth) && Objects.deepEquals(this.supportsBackgroundBle, other.supportsBackgroundBle) && Objects.deepEquals(this.supportsMultipeerConnectivity, other.supportsMultipeerConnectivity) } override fun hashCode(): Int { return arrayOf( platform, supportsBleCentral, supportsBlePeripheral, supportsDescriptors, supportsIncludedServices, supportsMtu, supportsPhy, supportsBonding, supportsExtendedAdvertising, supportsL2cap, supportsClassicBluetooth, supportsBackgroundBle, supportsMultipeerConnectivity ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(platform: String, supportsBleCentral: Boolean, supportsBlePeripheral: Boolean, supportsDescriptors: Boolean, supportsIncludedServices: Boolean, supportsMtu: Boolean, supportsPhy: Boolean, supportsBonding: Boolean, supportsExtendedAdvertising: Boolean, supportsL2cap: Boolean, supportsClassicBluetooth: Boolean, supportsBackgroundBle: Boolean, supportsMultipeerConnectivity: Boolean): BluetoothCapabilities { return BluetoothCapabilities(platform, supportsBleCentral, supportsBlePeripheral, supportsDescriptors, supportsIncludedServices, supportsMtu, supportsPhy, supportsBonding, supportsExtendedAdvertising, supportsL2cap, supportsClassicBluetooth, supportsBackgroundBle, supportsMultipeerConnectivity) } } }