This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 115
/
DiagnosisSubmissionParameter.cs
50 lines (43 loc) · 1.79 KB
/
DiagnosisSubmissionParameter.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using Newtonsoft.Json;
namespace Covid19Radar.Model
{
public class DiagnosisSubmissionParameter
{
[JsonProperty("hasSymptom")]
public bool HasSymptom { get; set; }
[JsonProperty("onsetOfSymptomOrTestDate")]
public string OnsetOfSymptomOrTestDate { get; set; }
[JsonProperty("keys")]
public Key[] Keys { get; set; }
[JsonProperty("regions")]
public string[] Regions { get; set; }
[JsonProperty("platform")]
public string Platform { get; set; }
[JsonProperty("deviceVerificationPayload")]
public string DeviceVerificationPayload { get; set; }
[JsonProperty("appPackageName")]
public string AppPackageName { get; set; }
// Some signature / code confirming authorization by the verification authority.
[JsonProperty("verificationPayload")]
public string VerificationPayload { get; set; }
[JsonProperty("idempotency_key")]
public string IdempotencyKey { get; set; }
// Random data to obscure the size of the request network packet sniffers.
[JsonProperty("padding")]
public string Padding { get; set; }
public class Key
{
[JsonProperty("keyData")]
public string KeyData { get; set; }
[JsonProperty("rollingStartNumber")]
public uint RollingStartNumber { get; set; }
[JsonProperty("rollingPeriod")]
public uint RollingPeriod { get; set; }
[JsonProperty("reportType")]
public uint ReportType { get; set; }
}
}
}