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