Class CommandResponse
- java.lang.Object
-
- io.naradrama.prologue.domain.cqrs.command.CommandResponse
-
- All Implemented Interfaces:
JsonSerializable
public class CommandResponse extends java.lang.Object implements JsonSerializable
-
-
Constructor Summary
Constructors Constructor Description CommandResponse(boolean result)CommandResponse(FailureMessage failureMessage)CommandResponse(java.lang.String entityId)CommandResponse(java.util.List<java.lang.String> entityIds)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommandResponsefromJson(java.lang.String json)static voidmain(java.lang.String[] args)static CommandResponsesample()voidsetFailureMessage(FailureMessage failureMessage)java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.naradrama.prologue.util.json.JsonSerializable
toJson, toPrettyJson
-
-
-
-
Constructor Detail
-
CommandResponse
public CommandResponse(java.lang.String entityId)
-
CommandResponse
public CommandResponse(FailureMessage failureMessage)
-
CommandResponse
public CommandResponse(java.util.List<java.lang.String> entityIds)
-
CommandResponse
public CommandResponse(boolean result)
-
-
Method Detail
-
setFailureMessage
public void setFailureMessage(FailureMessage failureMessage)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
fromJson
public static CommandResponse fromJson(java.lang.String json)
-
sample
public static CommandResponse sample()
-
main
public static void main(java.lang.String[] args)
-
-