/// /// HybridMailAccountSpec.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.HybridObject /** * A Kotlin class representing the MailAccount HybridObject. * Implement this abstract class to create Kotlin-based instances of MailAccount. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridMailAccountSpec: HybridObject() { // Properties @get:DoNotStrip @get:Keep abstract val id: String @get:DoNotStrip @get:Keep abstract val isConnected: Boolean // Methods @DoNotStrip @Keep abstract fun listMailboxes(): Promise> @DoNotStrip @Keep abstract fun openMailbox(path: String, readOnly: Boolean): Promise @DoNotStrip @Keep abstract fun createMailbox(path: String): Promise @DoNotStrip @Keep abstract fun deleteMailbox(path: String): Promise @DoNotStrip @Keep abstract fun renameMailbox(path: String, newPath: String): Promise @DoNotStrip @Keep abstract fun send(message: MailOutgoingMessage): Promise @DoNotStrip @Keep abstract fun noop(): Promise @DoNotStrip @Keep abstract fun disconnect(): Promise // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject MailAccount]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridMailAccountSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridMailAccountSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridMailAccountSpec" } }