-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Breno RdV
committed
Jun 26, 2024
1 parent
bc46c8a
commit 488393d
Showing
5 changed files
with
84 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 24 additions & 2 deletions
26
Raccoon.Ninja.Domain.Core/Entities/StatisticalDataPoint/StatisticDataPointDocument.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
namespace Raccoon.Ninja.Domain.Core.Entities.StatisticalDataPoint; | ||
using System.Text.Json.Serialization; | ||
using Raccoon.Ninja.Domain.Core.Enums; | ||
|
||
public record StatisticDataPointDocument(); | ||
namespace Raccoon.Ninja.Domain.Core.Entities.StatisticalDataPoint; | ||
|
||
public record StatisticDataPointDocument : BaseControlledEntity | ||
{ | ||
[JsonPropertyName("docType")] | ||
public DocumentType DocType { get; init; } = DocumentType.StatisticalData; | ||
|
||
[JsonPropertyName("referenceDate")] | ||
public DateOnly ReferenceDate { get; init; } | ||
|
||
[JsonPropertyName("full")] | ||
public StatisticDataPoint Full { get; init; } | ||
|
||
[JsonPropertyName("last30days")] | ||
public StatisticDataPoint Last30Days { get; init; } | ||
|
||
[JsonPropertyName("last15days")] | ||
public StatisticDataPoint Last15Days { get; init; } | ||
|
||
[JsonPropertyName("last7days")] | ||
public StatisticDataPoint Last7Days { get; init; } | ||
} |