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