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