Skip to content

Commit

Permalink
Add Id to GetSpawnsetDdse model
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahStolk committed Jan 17, 2024
1 parent 7a8d2b6 commit c3bd7f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ namespace DevilDaggersInfo.Web.ApiSpec.Ddse.Spawnsets;

public record GetSpawnsetDdse
{
public required int Id { get; init; }

public required int? MaxDisplayWaves { get; init; }

public required string? HtmlDescription { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public static class SpawnsetConverters
// ! Navigation property.
public static DdseApi.GetSpawnsetDdse ToDdseApi(this SpawnsetEntity spawnset, bool hasCustomLeaderboard) => new()
{
Id = spawnset.Id,
MaxDisplayWaves = spawnset.MaxDisplayWaves,
HtmlDescription = spawnset.HtmlDescription,
LastUpdated = spawnset.LastUpdated,
Expand Down

0 comments on commit c3bd7f6

Please sign in to comment.