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