/// /// NativeLiveActivityState.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 "NativeLiveActivityState". */ @DoNotStrip @Keep data class NativeLiveActivityState( @DoNotStrip @Keep val title: String, @DoNotStrip @Keep val subtitle: String?, @DoNotStrip @Keep val body: String?, @DoNotStrip @Keep val status: String?, @DoNotStrip @Keep val progress: Double?, @DoNotStrip @Keep val date: Double?, @DoNotStrip @Keep val imageName: String?, @DoNotStrip @Keep val tintColorHex: String?, @DoNotStrip @Keep val leading: String?, @DoNotStrip @Keep val trailing: String?, @DoNotStrip @Keep val extra: Map ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is NativeLiveActivityState) return false return Objects.deepEquals(this.title, other.title) && Objects.deepEquals(this.subtitle, other.subtitle) && Objects.deepEquals(this.body, other.body) && Objects.deepEquals(this.status, other.status) && Objects.deepEquals(this.progress, other.progress) && Objects.deepEquals(this.date, other.date) && Objects.deepEquals(this.imageName, other.imageName) && Objects.deepEquals(this.tintColorHex, other.tintColorHex) && Objects.deepEquals(this.leading, other.leading) && Objects.deepEquals(this.trailing, other.trailing) && Objects.deepEquals(this.extra, other.extra) } override fun hashCode(): Int { return arrayOf( title, subtitle, body, status, progress, date, imageName, tintColorHex, leading, trailing, extra ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(title: String, subtitle: String?, body: String?, status: String?, progress: Double?, date: Double?, imageName: String?, tintColorHex: String?, leading: String?, trailing: String?, extra: Map): NativeLiveActivityState { return NativeLiveActivityState(title, subtitle, body, status, progress, date, imageName, tintColorHex, leading, trailing, extra) } } }