Moved ActionResult#message to top of toJson() for easier reading

Change Recording settings to accept an output file instead of directory and filename
This commit is contained in:
kohlerpop1
2024-06-18 15:21:05 -04:00
parent 243791f6b8
commit 0b9852c4d4
3 changed files with 10 additions and 12 deletions

View File

@@ -100,8 +100,8 @@ public class ActionResult<T> {
public JsonObject toJson() {
JsonObject map = new JsonObject();
map.addProperty("success", success);
map.add("content", gson.toJsonTree(content));
map.addProperty("message", message);
map.add("content", gson.toJsonTree(content));
map.add("previous", hasPrevious() ? previous.toJson() : null);
return map;
}