Improve notification capture fidelity and documentation
This commit is contained in:
@@ -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() },
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user