Initialise some response parameters

This commit is contained in:
smoogipoo 2020-07-31 20:55:44 +09:00
parent 8e8a11bb72
commit 2b77f99f56
3 changed files with 4 additions and 4 deletions

View File

@ -15,6 +15,6 @@ public class Cursor
{
[UsedImplicitly]
[JsonExtensionData]
public IDictionary<string, JToken> Properties;
public IDictionary<string, JToken> Properties { get; set; } = new Dictionary<string, JToken>();
}
}

View File

@ -15,6 +15,6 @@ public class IndexScoresParams
{
[UsedImplicitly]
[JsonExtensionData]
public IDictionary<string, JToken> Properties;
public IDictionary<string, JToken> Properties { get; set; } = new Dictionary<string, JToken>();
}
}

View File

@ -16,12 +16,12 @@ public class MultiplayerScores : ResponseWithCursor
/// The scores.
/// </summary>
[JsonProperty("scores")]
public List<MultiplayerScore> Scores { get; set; }
public List<MultiplayerScore> Scores { get; set; } = new List<MultiplayerScore>();
/// <summary>
/// The parameters to be used to fetch the next page.
/// </summary>
[JsonProperty("params")]
public IndexScoresParams Params { get; set; }
public IndexScoresParams Params { get; set; } = new IndexScoresParams();
}
}