Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

use diagnosis api v3 #1025

Merged
1 commit merged into from
Jun 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class DeviceCheckService : IDeviceVerifier
{
public Task<string> VerifyAsync(DiagnosisSubmissionParameter submission)
{
var nonce = DeviceVerifierUtils.CreateAndroidNonceV2(submission);
var nonce = DeviceVerifierUtils.CreateAndroidNonceV3(submission);
return GetSafetyNetAttestationAsync(nonce);
}

Expand Down
4 changes: 2 additions & 2 deletions Covid19Radar/Covid19Radar/Common/AppConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static readonly DateTime COCOA_FIRST_RELEASE_DATE
/// <summary>
/// Number of days covered from the date of diagnosis or onset
/// </summary>
public const int DaysToSendTek = -3;
public const int DaysToSendTek = -15;

/// <summary>
/// Max Error Count
Expand Down Expand Up @@ -61,7 +61,7 @@ public static readonly DateTime COCOA_FIRST_RELEASE_DATE
/// DiagnosisApi version.
/// (e.g. v2, v3)
/// </summary>
public const string DiagnosisApiVersionCode = "v2";
public const string DiagnosisApiVersionCode = "v3";

/// <summary>
/// Number of day(s) that ExposureConfiguration file downloaded cache.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ public class DiagnosisSubmissionParameter
[JsonProperty("verificationPayload")]
public string VerificationPayload { get; set; }

//[JsonProperty("idempotency_key")]
[JsonIgnore]
[JsonProperty("idempotency_key")]
public string IdempotencyKey { get; set; }

// Random data to obscure the size of the request network packet sniffers.
Expand All @@ -45,8 +44,7 @@ public class Key
[JsonProperty("rollingPeriod")]
public uint RollingPeriod { get; set; }

//[JsonProperty("reportType")]
[JsonIgnore]
[JsonProperty("reportType")]
public uint ReportType { get; set; }
}
}
Expand Down