/// /// DfuOptions.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.co.zyke.dfu import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip /** * Represents the JavaScript object/struct "DfuOptions". */ @DoNotStrip @Keep data class DfuOptions( @DoNotStrip @Keep val deviceId: String, @DoNotStrip @Keep val filePath: String, @DoNotStrip @Keep val firmwareType: DfuFirmwareType?, @DoNotStrip @Keep val packetReceiptNotificationParameter: Double?, @DoNotStrip @Keep val forceDfu: Boolean?, @DoNotStrip @Keep val enableUnsafeExperimentalButtonlessDfu: Boolean?, @DoNotStrip @Keep val forceScanningForNewAddressInLegacyDfu: Boolean?, @DoNotStrip @Keep val numberOfRetries: Double?, @DoNotStrip @Keep val connectionTimeout: Double?, @DoNotStrip @Keep val dataObjectPreparationDelay: Double?, @DoNotStrip @Keep val alternativeAdvertisingNameEnabled: Boolean?, @DoNotStrip @Keep val disableResume: Boolean? ) { /* primary constructor */ companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(deviceId: String, filePath: String, firmwareType: DfuFirmwareType?, packetReceiptNotificationParameter: Double?, forceDfu: Boolean?, enableUnsafeExperimentalButtonlessDfu: Boolean?, forceScanningForNewAddressInLegacyDfu: Boolean?, numberOfRetries: Double?, connectionTimeout: Double?, dataObjectPreparationDelay: Double?, alternativeAdvertisingNameEnabled: Boolean?, disableResume: Boolean?): DfuOptions { return DfuOptions(deviceId, filePath, firmwareType, packetReceiptNotificationParameter, forceDfu, enableUnsafeExperimentalButtonlessDfu, forceScanningForNewAddressInLegacyDfu, numberOfRetries, connectionTimeout, dataObjectPreparationDelay, alternativeAdvertisingNameEnabled, disableResume) } } }