|  |  |  | 
|---|
|  |  |  | * @param message | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public static Command successed(String message, String commandId, String code, Object attachment) { | 
|---|
|  |  |  | log.info(message); | 
|---|
|  |  |  | Command command = new Command().createReturnSuccessCommand(message, commandId, code); | 
|---|
|  |  |  | command.setAttachment(attachment); | 
|---|
|  |  |  | return command; | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param message | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public static Command successed(String message, String commandId, String code) { | 
|---|
|  |  |  | log.info(message); | 
|---|
|  |  |  | return new Command().createReturnSuccessCommand(message, commandId, code); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param message | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public static Command errored(String message, String commandId, String code) { | 
|---|
|  |  |  | log.error(message); | 
|---|
|  |  |  | return new Command().createReturnErrorCommand(message, commandId, code); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|