Recovery
struct Recovery : Hashable
extension EUDCC.Recovery: Codable
The EUDCC Recovery Entry
-
Disease or agent targeted
Declaration
Swift
public let diseaseAgentTargeted: DiseaseAgentTargeted
-
Date of first positive NAA test result
Declaration
Swift
public let dateOfFirstPositiveTestResult: Date
-
Country of Test
Declaration
Swift
public let countryOfTest: Country
-
Certificate issuer
Declaration
Swift
public let certificateIssuer: String
-
Certificate Valid From
Declaration
Swift
public let certificateValidFrom: Date
-
Certificate Valid Until
Declaration
Swift
public let certificateValidUntil: Date
-
Unique Certificate Identifier (UVCI)
Declaration
Swift
public let certificateIdentifier: String
-
init(diseaseAgentTargeted:
dateOfFirstPositiveTestResult: countryOfTest: certificateIssuer: certificateValidFrom: certificateValidUntil: certificateIdentifier: ) Creates a new instance of
EUDCC.Recovery
Declaration
Swift
public init( diseaseAgentTargeted: DiseaseAgentTargeted, dateOfFirstPositiveTestResult: Date, countryOfTest: Country, certificateIssuer: String, certificateValidFrom: Date, certificateValidUntil: Date, certificateIdentifier: String )
Parameters
diseaseAgentTargeted
Disease or agent targeted
dateOfFirstPositiveTestResult
Date of first positive NAA test result
countryOfTest
Country of Test
certificateIssuer
Certificate issuer
certificateValidFrom
Certificate Valid From
certificateValidUntil
Certificate Valid Until
certificateIdentifier
Unique Certificate Identifier (UVCI)
-
Creates a new instance by decoding from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throws
Parameters
decoder
The decoder to read data from.
-
Encodes this value into the given encoder.
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
The encoder to write data to.