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