org.enodeframework.commanding.CommandResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of enode Show documentation
Show all versions of enode Show documentation
The enodeframework core implementation.
package org.enodeframework.commanding
/**
* @author [email protected]
*/
class CommandResult {
/**
* Represents the result status of the command.
*/
var status: CommandStatus? = null
private set
/**
* Represents the unique identifier of the command.
*/
var commandId: String? = null
private set
/**
* Represents the aggregate root id associated with the command.
*/
var aggregateRootId: String? = null
private set
/**
* Represents the command result data.
*/
var result: String? = null
private set
/**
* Represents the command result data type.
*/
var resultType: String? = null
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
}
}