/// /// NativeContent.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 import com.margelo.nitro.core.AnyMap /** * Represents the JavaScript object/struct "NativeContent". */ @DoNotStrip @Keep data class NativeContent( @DoNotStrip @Keep val title: String?, @DoNotStrip @Keep val subtitle: String?, @DoNotStrip @Keep val body: String?, @DoNotStrip @Keep val data: AnyMap, @DoNotStrip @Keep val sound: Boolean, @DoNotStrip @Keep val badge: Double?, @DoNotStrip @Keep val categoryIdentifier: String? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is NativeContent) return false return Objects.deepEquals(this.title, other.title) && Objects.deepEquals(this.subtitle, other.subtitle) && Objects.deepEquals(this.body, other.body) && Objects.deepEquals(this.data, other.data) && Objects.deepEquals(this.sound, other.sound) && Objects.deepEquals(this.badge, other.badge) && Objects.deepEquals(this.categoryIdentifier, other.categoryIdentifier) } override fun hashCode(): Int { return arrayOf( title, subtitle, body, data, sound, badge, categoryIdentifier ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(title: String?, subtitle: String?, body: String?, data: AnyMap, sound: Boolean, badge: Double?, categoryIdentifier: String?): NativeContent { return NativeContent(title, subtitle, body, data, sound, badge, categoryIdentifier) } } }