-
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
1 parent
746bc95
commit 4698d30
Showing
3 changed files
with
16 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
namespace StromGedacht.NET.Models; | ||
|
||
/// <summary> | ||
/// Describes different region states | ||
/// Describes different region states | ||
/// </summary> | ||
public enum RegionState | ||
{ | ||
/// <summary> | ||
/// Normal operation - nothing to do | ||
/// Normal operation - nothing to do | ||
/// </summary> | ||
Green = 1, | ||
|
||
/// <summary> | ||
/// Bring consumption forward - use electricity now | ||
/// Bring consumption forward - use electricity now | ||
/// </summary> | ||
Yellow = 2, | ||
|
||
/// <summary> | ||
/// Reduce consumption to save costs and CO2 | ||
/// Reduce consumption to save costs and CO2 | ||
/// </summary> | ||
Orange = 3, | ||
|
||
/// <summary> | ||
/// Reduce consumption to prevent power shortage | ||
/// Reduce consumption to prevent power shortage | ||
/// </summary> | ||
Red = 4 | ||
} |
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,22 +1,22 @@ | ||
namespace StromGedacht.NET.Models; | ||
|
||
/// <summary> | ||
/// Contains region state for a specific period | ||
/// Contains region state for a specific period | ||
/// </summary> | ||
public record RegionStatePeriod | ||
{ | ||
/// <summary> | ||
/// Region state in this period | ||
/// Region state in this period | ||
/// </summary> | ||
public RegionState State { get; set; } | ||
|
||
/// <summary> | ||
/// Period starting time | ||
/// Period starting time | ||
/// </summary> | ||
public DateTimeOffset From { get; set; } | ||
|
||
/// <summary> | ||
/// Period end time | ||
/// Period end time | ||
/// </summary> | ||
public DateTimeOffset To { get; set; } | ||
} |
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