mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-04-19 21:15:21 +00:00
COVIDSafe code from version 1.8 (#15)
This commit is contained in:
parent
6f92ff8fb8
commit
2257c542ed
45 changed files with 3547 additions and 839 deletions
23
CovidSafe/BLELogRecord.swift
Normal file
23
CovidSafe/BLELogRecord.swift
Normal file
|
@ -0,0 +1,23 @@
|
|||
//
|
||||
// BLELogRecord.swift
|
||||
// CovidSafe
|
||||
//
|
||||
// Copyright © 2020 Australian Government. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
struct BLELogRecord: Encodable {
|
||||
var timestamp: Date?
|
||||
var msg: String?
|
||||
|
||||
mutating func update(msg: String) {
|
||||
self.msg = msg
|
||||
}
|
||||
|
||||
init(message: String) {
|
||||
self.timestamp = Date()
|
||||
self.msg = message
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue