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