05/04 Update the app functionalities
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user