All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lightningkite.lightningserver.externalintegration.ExternalAsyncTaskRequest.kt Maven / Gradle / Ivy

The newest version!
@file:UseContextualSerialization(Instant::class)

package com.lightningkite.lightningserver.externalintegration

import com.lightningkite.lightningdb.AdminTableColumns
import com.lightningkite.lightningdb.GenerateDataClassPaths
import com.lightningkite.lightningdb.HasId
import com.lightningkite.lightningdb.Index
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseContextualSerialization
import java.time.Instant

@GenerateDataClassPaths
@Serializable
@AdminTableColumns(["_id", "action", "createdAt", "result", "processingError"])
data class ExternalAsyncTaskRequest(
    override val _id: String,
    @Index val ourData: String,
    val expiresAt: Instant,
    val createdAt: Instant = Instant.now(),
    val response: String? = null,
    val result: String? = null,
    val action: String? = null,
    val lastAttempt: Instant = Instant.EPOCH,
    val processingError: String? = null,
) : HasId





© 2015 - 2024 Weber Informatics LLC | Privacy Policy