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]
|
[UsedImplicitly]
|
||||||
[JsonExtensionData]
|
[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]
|
[UsedImplicitly]
|
||||||
[JsonExtensionData]
|
[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.
|
/// The scores.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("scores")]
|
[JsonProperty("scores")]
|
||||||
public List<MultiplayerScore> Scores { get; set; }
|
public List<MultiplayerScore> Scores { get; set; } = new List<MultiplayerScore>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The parameters to be used to fetch the next page.
|
/// The parameters to be used to fetch the next page.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("params")]
|
[JsonProperty("params")]
|
||||||
public IndexScoresParams Params { get; set; }
|
public IndexScoresParams Params { get; set; } = new IndexScoresParams();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue