Skip to content

Commit

Permalink
fix serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Beninski committed May 29, 2022
1 parent 9e542c1 commit 9400457
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions W3C.Domain/MatchmakingService/MatchmakingContracts/GameMap.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using System.Text.Json.Serialization;

namespace W3C.Domain.MatchmakingService.MatchmakingContracts
{
Expand All @@ -13,8 +14,10 @@ public class GameMap
public int Width { get; set; }
public int Height { get; set; }
[JsonProperty("suggested_players")]
[JsonPropertyName("suggested_players")]
public string SuggestedPlayers { get; set; }
[JsonProperty("num_players")]
[JsonPropertyName("num_players")]
public int NumPlayers { get; set; }
public GameMapForce[] Forces { get; set; } = new GameMapForce[0];
public GameMapPlayer[] Players { get; set; } = new GameMapPlayer[0];
Expand Down

0 comments on commit 9400457

Please sign in to comment.