mirror of https://github.com/ppy/osu
Initialise some response parameters
This commit is contained in:
parent
8e8a11bb72
commit
2b77f99f56
|
@ -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>();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue