-
Notifications
You must be signed in to change notification settings - Fork 111
Filter exposure under 15 minutes #771
Filter exposure under 15 minutes #771
Conversation
public class ExposureCheckScoreModel | ||
{ | ||
public long DateMillisSinceEpoch { get; set; } | ||
|
||
public string DateTimeString => DateTimeOffset.UnixEpoch | ||
.AddMilliseconds(DateMillisSinceEpoch).UtcDateTime | ||
.ToLocalTime().ToString("D", CultureInfo.CurrentCulture); | ||
|
||
public bool IsScoreVisible { get; set; } | ||
|
||
public bool IsDurationTimeVisible { get; set; } | ||
|
||
public string Description { get; set; } | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これぼくが指摘して、別ファイルに分けてもらいましたが、他では使わなかったですね……(ENv1からこの画面に繋がらない)。
考えが及ばず、お手数をおかけしました。
@@ -47,39 +53,110 @@ public void LowRiskPage_Initialize_Display() | |||
{ | |||
mockExposureDataRepository | |||
.Setup(x => x.GetDailySummariesAsync(AppConstants.DaysOfExposureInformationToDisplay)) | |||
.Returns(Task.FromResult(new List<DailySummary>() | |||
.ReturnsAsync(new List<DailySummary>() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReturnsAsync
を使うとTaskにくるまなくても良くなります!
@@ -31,15 +31,23 @@ public class ExposureDataRepositoryMock : IExposureDataRepository | |||
DateMillisSinceEpoch = DateTime.SpecifyKind(new DateTime(2022, 1, 10), DateTimeKind.Utc).ToUnixEpoch() * 1000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
このファイルの変更はMockなのであまり気にしないでください。
<data name="LowRiskContactPage_DailySummary_ScoreSum_Descritpion_Satisfied" xml:space="preserve"> | ||
<value>Score: {0:#.##} (Threshold: {2:#} {1:#.##})</value> | ||
<comment>スコア: {0:#.##}(基準値: {1:#.##}{2:#})</comment> | ||
</data> | ||
<data name="LowRiskContactPage_DailySummary_ScoreSum_Descritpion_Unsatisfied" xml:space="preserve"> | ||
<value>Score: {0:#.##} (Threshold: {2:#} {1:#.##})</value> | ||
<comment>スコア: {0:#.##}(基準値: {1:#.##}{2:#})のため通知の対象外</comment> | ||
</data> | ||
<data name="LowRiskContactPage_ExposureDuration_Description_Satisfied" xml:space="preserve"> | ||
<value>{0:#} min exposure (Threshold {2:#} {1:#} min)</value> | ||
<comment>{0:#}分間の接触(基準値: {1:#}分間{2:#})</comment> | ||
</data> | ||
<data name="LowRiskContactPage_ExposureDuration_Description_Unsatisfied" xml:space="preserve"> | ||
<value>{0:#} min exposure (Threshold {2:#} {1:#} min)</value> | ||
<comment>{0:#}分間の接触(基準値: {1:#}分間{2:#})のため通知の対象外</comment> | ||
</data> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
英語には反映できてません(翻訳の方にお願いしたい)
_loggerService.Info("_exposureRiskCalculationConfiguration.DailySummary_DaySummary_ScoreSum.Op = NOP"); | ||
return; | ||
} | ||
|
||
LowRiskContactPageHeaderTextSuffix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これ消しましたが、レイアウト上には残っていて使える状態にしてあります。
もしかしたら何か表示してと言われるかもしれないから残してあります。
…mode was disabled.
AppResources.LowRiskContactPage_ExposureDuration_Description_Unsatisfied, | ||
exposureDurationInMinute, | ||
exposureDurationThresholdInMinute, | ||
OperatorToString(_exposureRiskCalculationConfiguration.DailySummary_DaySummary_ScoreSum.Op) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここって_exposureRiskCalculationConfiguration.DailySummary_DaySummary_ScoreSum.Op
であってますか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あ、下2行要らないですね。
LowRiskContactPage_ExposureDuration_Description_Unsatisfied
の内容は{0:#}分間の接触のため通知の対象外
なので、一つ目の値だけ有ればいいです(後は無視されるのでビルド通って動きにも問題がない)
開発チームからリクエストがあったため、中国語リソースにも仮のデータの用意お願いします。 |
…ter_exposure_under_15minutes_plan1
リソースについては #779 で対応します! |
Issue 番号 / Issue ID
目的 / Purpose
破壊的変更をもたらしますか / Does this introduce a breaking change?
Pull Request の種類 / Pull Request type
検証方法 / How to test
コードの入手 / Get the code
コードの検証 / Test the code
確認事項 / What to check
その他 / Other information