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