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