-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
123 additions
and
62 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
40 changes: 0 additions & 40 deletions
40
src/ProjectOrigin.WalletSystem.Server/Services/REST/v1/ModelsV1.cs
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
src/ProjectOrigin.WalletSystem.Server/Services/REST/v1/QueryParamsV1.cs
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
src/ProjectOrigin.WalletSystem.Server/Services/REST/v1/SharedModels.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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System.Collections.Generic; | ||
using System; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace ProjectOrigin.WalletSystem.Server.Services.REST.v1; | ||
|
||
public record ResultList<T>() | ||
{ | ||
public required IEnumerable<T> Result { get; init; } | ||
} | ||
|
||
public enum CertificateType | ||
{ | ||
Consumption = 1, | ||
Production = 2 | ||
} | ||
|
||
public record FederatedStreamId() | ||
{ | ||
public required string Registry { get; init; } | ||
public required Guid StreamId { get; init; } | ||
} | ||
|
||
[JsonConverter(typeof(JsonStringEnumConverter))] | ||
public enum TimeAggregate | ||
{ | ||
Actual = 0, | ||
Total = 1, | ||
Year = 2, | ||
Month = 3, | ||
Week = 4, | ||
Day = 5, | ||
Hour = 6, | ||
QuarterHour = 7, | ||
} |