-
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.
Merge pull request #18 from brenordv/feature/dotnet8-migration
Fixed serialization problem.
- Loading branch information
Showing
11 changed files
with
46 additions
and
49 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
using Newtonsoft.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Raccoon.Ninja.Domain.Core.Entities; | ||
|
||
public record BaseEntity | ||
{ | ||
[JsonProperty("id")] | ||
[JsonPropertyName("id")] | ||
public string Id { get; init; } = Guid.NewGuid().ToString(); | ||
|
||
[JsonProperty("value")] | ||
[JsonPropertyName("value")] | ||
public float Value { get; init; } | ||
|
||
[JsonProperty("delta", NullValueHandling = NullValueHandling.Ignore)] | ||
[JsonPropertyName("delta")] | ||
public float? Delta { get; init; } | ||
}; |
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
5 changes: 3 additions & 2 deletions
5
Raccoon.Ninja.Domain.Core/Models/DataLatestHbA1cFuncResponse.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,14 +1,15 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
using System.Text.Json.Serialization; | ||
using Newtonsoft.Json; | ||
|
||
namespace Raccoon.Ninja.Domain.Core.Models; | ||
|
||
[ExcludeFromCodeCoverage] | ||
public record DataLatestHbA1CFuncResponse | ||
{ | ||
[JsonProperty("latestSuccessful")] | ||
[JsonPropertyName("latestSuccessful")] | ||
public HbA1CCalculationResponse LatestSuccessful { get; init; } | ||
|
||
[JsonProperty("latestPartialSuccessful")] | ||
[JsonPropertyName("latestPartialSuccessful")] | ||
public HbA1CCalculationResponse LatestPartialSuccessful { get; init; } | ||
}; |
18 changes: 10 additions & 8 deletions
18
Raccoon.Ninja.Domain.Core/Models/GlucoseReadingResponse.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
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