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