/// /// HybridMailMailboxSpec.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.mailengine import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import com.margelo.nitro.core.Promise import com.margelo.nitro.core.ArrayBuffer import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the MailMailbox HybridObject. * Implement this abstract class to create Kotlin-based instances of MailMailbox. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridMailMailboxSpec: HybridObject() { // Properties @get:DoNotStrip @get:Keep abstract val path: String @get:DoNotStrip @get:Keep abstract val exists: Double @get:DoNotStrip @get:Keep abstract val unseen: Double @get:DoNotStrip @get:Keep abstract val uidNext: Double @get:DoNotStrip @get:Keep abstract val uidValidity: Double // Methods @DoNotStrip @Keep abstract fun fetchHeaders(options: MailFetchHeadersOptions): Promise> @DoNotStrip @Keep abstract fun fetchMessage(uid: Double, options: MailFetchMessageOptions): Promise @DoNotStrip @Keep abstract fun fetchAttachment(uid: Double, partId: String): Promise @DoNotStrip @Keep abstract fun search(criteria: MailSearchCriteria): Promise @DoNotStrip @Keep abstract fun addFlags(uids: DoubleArray, flags: Array): Promise @DoNotStrip @Keep abstract fun removeFlags(uids: DoubleArray, flags: Array): Promise @DoNotStrip @Keep abstract fun markSeen(uids: DoubleArray, seen: Boolean): Promise @DoNotStrip @Keep abstract fun moveMessages(uids: DoubleArray, destinationPath: String): Promise @DoNotStrip @Keep abstract fun copyMessages(uids: DoubleArray, destinationPath: String): Promise @DoNotStrip @Keep abstract fun deleteMessages(uids: DoubleArray, expunge: Boolean): Promise abstract fun startIdle(onMail: (event: MailNewMailEvent) -> Unit, onError: (error: MailErrorStruct) -> Unit): Promise @DoNotStrip @Keep private fun startIdle_cxx(onMail: Func_void_MailNewMailEvent, onError: Func_void_MailErrorStruct): Promise { val __result = startIdle(onMail, onError) return __result } @DoNotStrip @Keep abstract fun stopIdle(): Promise @DoNotStrip @Keep abstract fun close(): Promise // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject MailMailbox]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridMailMailboxSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridMailMailboxSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridMailMailboxSpec" } }