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

Commit

Permalink
Merge pull request #1025 from cocoa-mhlw/feature/diagnosis-api-v3
Browse files Browse the repository at this point in the history
use diagnosis api v3
  • Loading branch information
cocoa-dev004 authored Jun 1, 2022
2 parents 437f4df + a53e40c commit dd9b150
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
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

0 comments on commit dd9b150

Please sign in to comment.