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

commonMain.zakadabar.lib.schedule.data.JobSuccess.kt Maven / Gradle / Ivy

There is a newer version: 2023.4.20
Show newest version
/*
 * Copyright © 2020-2021, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
 */
package zakadabar.lib.schedule.data

import kotlinx.serialization.Serializable
import zakadabar.core.data.ActionBo
import zakadabar.core.data.ActionBoCompanion
import zakadabar.core.data.ActionStatus
import zakadabar.core.data.EntityId
import zakadabar.core.schema.BoSchema

@Serializable
class JobSuccess(

    var jobId : EntityId,
    var responseData : String?

) : ActionBo {

    companion object : ActionBoCompanion(Job.boNamespace)

    override suspend fun execute() = comm.action(this, serializer(), ActionStatus.serializer())

    override fun schema() = BoSchema {
        + ::jobId
        + ::responseData
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy