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