/// /// BrightnessPermissionResponse.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.one import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "BrightnessPermissionResponse". */ @DoNotStrip @Keep data class BrightnessPermissionResponse( @DoNotStrip @Keep val status: BrightnessPermissionStatus, @DoNotStrip @Keep val granted: Boolean, @DoNotStrip @Keep val canAskAgain: Boolean ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is BrightnessPermissionResponse) return false return Objects.deepEquals(this.status, other.status) && Objects.deepEquals(this.granted, other.granted) && Objects.deepEquals(this.canAskAgain, other.canAskAgain) } override fun hashCode(): Int { return arrayOf( status, granted, canAskAgain ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(status: BrightnessPermissionStatus, granted: Boolean, canAskAgain: Boolean): BrightnessPermissionResponse { return BrightnessPermissionResponse(status, granted, canAskAgain) } } }