summaryrefslogtreecommitdiff
path: root/LookupSnapshot.swift
diff options
context:
space:
mode:
Diffstat (limited to 'LookupSnapshot.swift')
-rw-r--r--LookupSnapshot.swift12
1 files changed, 10 insertions, 2 deletions
diff --git a/LookupSnapshot.swift b/LookupSnapshot.swift
index 3a35eff..dd1e5f4 100644
--- a/LookupSnapshot.swift
+++ b/LookupSnapshot.swift
@@ -39,7 +39,13 @@ struct LookupSnapshot {
let portScanResults: [PortScanResult]
let portScanError: String?
let changeSummary: DomainChangeSummary?
- let isLive: Bool
+ let resultSource: LookupResultSource
+ let cachedSections: [LookupSectionKind]
+ let statusMessage: String?
+
+ var isLive: Bool {
+ resultSource == .live
+ }
}
extension HistoryEntry {
@@ -83,7 +89,9 @@ extension HistoryEntry {
portScanResults: portScanResults,
portScanError: portScanError,
changeSummary: changeSummary,
- isLive: false
+ resultSource: .snapshot,
+ cachedSections: [],
+ statusMessage: nil
)
}
}