events: allow editing of all used values

Allow to change the date/time and
other relevant values of an event
on creation and after it was created.
This commit is contained in:
2025-11-04 15:10:45 +01:00
parent 5eeb462836
commit f8bd760f7a
13 changed files with 478 additions and 198 deletions

View File

@@ -69,6 +69,15 @@ class LunaEvent: Comparable<LunaEvent> {
throw IllegalArgumentException("JSONObject is not a LunaEvent")
}
constructor(event: LunaEvent) {
this.jo = JSONObject()
this.type = event.type
this.time = event.time
this.quantity = event.quantity
this.notes = event.notes
this.signature = event.signature
}
constructor(type: String) {
this.jo = JSONObject()
this.time = System.currentTimeMillis() / 1000