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