package net.zomis.spring.games.generic.v2;

public class InternalActionResult {

    private final boolean ok;
    private final String status;
    private final Object resultData;

    public InternalActionResult(boolean ok, String status) {
        this(ok, status, null);
    }

    public InternalActionResult(boolean ok, String status, Object resultData) {
        this.ok = ok;
        this.status = status;
        this.resultData = resultData;
    }

    public ActionResult toActionResult() {
        return new ActionResult(ok, status);
    }

    public boolean isOk() {
        return ok;
    }

    public String getStatus() {
        return status;
    }

    public Object getResultData() {
        return resultData;
    }

}

@@ -733,10 +733,246 @@
 %0A    %7D%0A%0A
+    @Override%0A    public String toString() %7B%0A        return %22InternalActionResult%7B%22 +%0A                %22ok=%22 + ok +%0A                %22, status='%22 + status + '%5C'' +%0A                %22, resultData=%22 + resultData +%0A                '%7D';%0A    %7D%0A
 %7D%0A

Add toString in InternalActionResult