Merge pull request 'andon' (#359) from jhforever.wang/i3plus-pojo-U7:test into test

Reviewed-on: http://git.estsh.com/i3-IMPP/i3plus-pojo/pulls/359
yun-zuoyi
王杰 3 years ago
commit 98b51c4708

@ -10,6 +10,8 @@ public class ModuleResult {
private boolean isCompleted;
private boolean isError = false;
private String msg;
private String nextTriggerEvent;
@ -30,6 +32,10 @@ public class ModuleResult {
return new ModuleResult(false, msg, nextTriggerEvent);
}
public static ModuleResult getErrorComplete(String msg) {
return new ModuleResult(false, true, msg);
}
public static ModuleResult getSuccessComplete() {
return new ModuleResult(true, "");
}
@ -54,6 +60,12 @@ public class ModuleResult {
this.msg = msg;
}
private ModuleResult(boolean isCompleted, boolean isError, String msg) {
this.isCompleted = isCompleted;
this.isError = isError;
this.msg = msg;
}
public ModuleResult(boolean isCompleted, String msg, String nextTriggerEvent) {
this.isCompleted = isCompleted;
this.msg = msg;

Loading…
Cancel
Save