/// /// AdvertisingOptions.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 "AdvertisingOptions". */ @DoNotStrip @Keep data class AdvertisingOptions( @DoNotStrip @Keep val serviceUUIDs: Array, @DoNotStrip @Keep val localName: String?, @DoNotStrip @Keep val manufacturerData: String?, @DoNotStrip @Keep val advertisingData: AdvertisingDataTypes? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is AdvertisingOptions) 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) } override fun hashCode(): Int { return arrayOf( serviceUUIDs, localName, manufacturerData, advertisingData ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(serviceUUIDs: Array, localName: String?, manufacturerData: String?, advertisingData: AdvertisingDataTypes?): AdvertisingOptions { return AdvertisingOptions(serviceUUIDs, localName, manufacturerData, advertisingData) } } }