Exemple #1
0
 public TemporaryExposureKeyModel ToModel(V1DiagnosisSubmissionParameter p, ulong timestamp)
 {
     return(new TemporaryExposureKeyModel()
     {
         KeyData = Convert.FromBase64String(this.KeyData),
         RollingPeriod = ((int)this.RollingPeriod == 0 ? (int)Constants.ActiveRollingPeriod : (int)this.RollingPeriod),
         RollingStartIntervalNumber = (int)this.RollingStartNumber,
         TransmissionRiskLevel = 4,
         Timestamp = timestamp,
         Exported = false
     });
 }
Exemple #2
0
 public TemporaryExposureKeyModel ToModel(V1DiagnosisSubmissionParameter _, ulong timestamp)
 {
     return(new TemporaryExposureKeyModel()
     {
         KeyData = Convert.FromBase64String(this.KeyData),
         RollingPeriod = ((int)this.RollingPeriod == 0 ? (int)Constants.ActiveRollingPeriod : (int)this.RollingPeriod),
         RollingStartIntervalNumber = (int)this.RollingStartNumber,
         TransmissionRiskLevel = TRANSMISSION_RISK_LEVEL,
         ReportType = Constants.ReportTypeMissingValue,
         DaysSinceOnsetOfSymptoms = Constants.DaysSinceOnsetOfSymptomsMissingValue,
         Timestamp = timestamp,
         Exported = false
     });
 }