/// /// NativeUpdateConfig.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.liveactivitykit import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "NativeUpdateConfig". */ @DoNotStrip @Keep data class NativeUpdateConfig( @DoNotStrip @Keep val state: NativeLiveActivityState, @DoNotStrip @Keep val staleDateMs: Double?, @DoNotStrip @Keep val relevanceScore: Double?, @DoNotStrip @Keep val alertTitle: String?, @DoNotStrip @Keep val alertBody: String?, @DoNotStrip @Keep val alertSound: String? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is NativeUpdateConfig) return false return Objects.deepEquals(this.state, other.state) && Objects.deepEquals(this.staleDateMs, other.staleDateMs) && Objects.deepEquals(this.relevanceScore, other.relevanceScore) && Objects.deepEquals(this.alertTitle, other.alertTitle) && Objects.deepEquals(this.alertBody, other.alertBody) && Objects.deepEquals(this.alertSound, other.alertSound) } override fun hashCode(): Int { return arrayOf( state, staleDateMs, relevanceScore, alertTitle, alertBody, alertSound ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(state: NativeLiveActivityState, staleDateMs: Double?, relevanceScore: Double?, alertTitle: String?, alertBody: String?, alertSound: String?): NativeUpdateConfig { return NativeUpdateConfig(state, staleDateMs, relevanceScore, alertTitle, alertBody, alertSound) } } }