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

org.enodeframework.commanding.CommandResult.kt Maven / Gradle / Ivy

There is a newer version: 1.1.10
Show newest version
package org.enodeframework.commanding

/**
 * @author [email protected]
 */
class CommandResult {
    /**
     * Represents the result status of the command.
     */
    var status: CommandStatus = CommandStatus.Failed
        private set

    /**
     * Represents the unique identifier of the command.
     */
    var commandId: String = ""
        private set

    /**
     * Represents the aggregate root id associated with the command.
     */
    var aggregateRootId: String = ""
        private set

    /**
     * Represents the command result data.
     */
    var result: String? = ""
        private set

    /**
     * Represents the command result data type.
     */
    var resultType: String = ""
        private set

    constructor()

    /**
     * Parameterized constructor.
     */
    constructor(status: CommandStatus, commandId: String, aggregateRootId: String, result: String?, resultType: String) {
        this.status = status
        this.commandId = commandId
        this.aggregateRootId = aggregateRootId
        this.result = result
        this.resultType = resultType
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy