05/04 Update the app functionalities

This commit is contained in:
Nguyen Ngo
2026-05-04 17:36:55 -04:00
parent 09715e9c11
commit 9d6b5e5bcb
7 changed files with 980 additions and 131 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ final class LocalIssue {
var serverId: Int?
var inspectionLocalId: String // references LocalInspection.localId
var areaServerId: Int
var facilityServerId: Int // facility this issue belongs to (replaces areaServerId)
var severity: String // "low" | "medium" | "high" | "critical"
var issueDescription: String
var photoLocalPath: String? // local file path before upload
@@ -27,14 +27,14 @@ final class LocalIssue {
init(
inspectionLocalId: String,
areaServerId: Int,
facilityServerId: Int,
severity: String,
description: String
) {
self.localId = UUID().uuidString
self.serverId = nil
self.inspectionLocalId = inspectionLocalId
self.areaServerId = areaServerId
self.facilityServerId = facilityServerId
self.severity = severity
self.issueDescription = description
self.photoLocalPath = nil