Improve notification capture fidelity and documentation

This commit is contained in:
ajp_anton
2026-07-23 12:29:42 +00:00
parent 62ca31e2fb
commit 9268623fdd
12 changed files with 199 additions and 35 deletions
@@ -18,6 +18,7 @@ object NotificationLogEntryJson {
.put("appName", entry.appName)
.put("action", entry.action.name)
.put("contents", entry.contents)
.put("previousContents", entry.previousContents)
.put("imageId", entry.imageId),
)
}
@@ -35,6 +36,7 @@ object NotificationLogEntryJson {
appName = entry.getString("appName"),
action = NotificationAction.valueOf(entry.getString("action")),
contents = if (entry.isNull("contents")) null else entry.getString("contents"),
previousContents = entry.optString("previousContents").takeIf { it.isNotEmpty() },
imageId = entry.optString("imageId").takeIf { it.isNotEmpty() },
)
}