Skip to content

Commit

Permalink
Merge pull request #7 from Macro-Deck-App/develop
Browse files Browse the repository at this point in the history
Add IsBeta
  • Loading branch information
manuelmayer-dev authored Jun 7, 2023
2 parents 11a7fa8 + 3fd0e9e commit ecaef66
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ The `ApiV2VersionInfo` class provides information about a Macro Deck version. Th

- **Properties**:
- `Version`: A string representation of the Macro Deck version.
- `IsBeta`: A boolean which is true when it is a beta version.
- `Platforms`: A dictionary mapping `PlatformIdentifier` enum values to their respective `ApiV2VersionFileInfo` objects for the specified version.

### `ApiV2VersionFileInfo`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ namespace MacroDeck.UpdateService.Core.DataTypes.ApiV2;
public class ApiV2VersionInfo
{
public string Version { get; set; } = string.Empty;
public bool IsBeta { get; set; }
public Dictionary<PlatformIdentifier, ApiV2VersionFileInfo> Platforms { get; set; } = new();
}
1 change: 1 addition & 0 deletions src/MacroDeck.UpdateService.Core/DataTypes/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ namespace MacroDeck.UpdateService.Core.DataTypes;
public class VersionInfo
{
public string Version { get; set; } = string.Empty;
public bool IsBeta { get; set; }
public Dictionary<PlatformIdentifier, VersionFileInfo> Platforms { get; set; } = new();
}
1 change: 1 addition & 0 deletions src/MacroDeck.UpdateService/AutoMapper/VersionProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public VersionProfile()
return new VersionInfo
{
Version = src.Version,
IsBeta = src.IsBetaVersion,
Platforms = src.Files.ToDictionary(
f => f.PlatformIdentifier,
f => new VersionFileInfo
Expand Down

0 comments on commit ecaef66

Please sign in to comment.