Populate set IDs in GetBeatmapSetsResponse

This commit is contained in:
Dean Herbert 2017-08-24 20:14:35 +09:00
parent 314108146a
commit 3c10b2d3d9
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,9 @@ public class GetBeatmapSetsResponse : BeatmapMetadata
[JsonProperty(@"favourite_count")]
private int favouriteCount { get; set; }
[JsonProperty(@"id")]
private int onlineId { get; set; }
[JsonProperty(@"beatmaps")]
private IEnumerable<GetBeatmapSetsBeatmapResponse> beatmaps { get; set; }
@ -53,6 +56,7 @@ public BeatmapSetInfo ToBeatmapSet(RulesetStore rulesets)
{
return new BeatmapSetInfo
{
OnlineBeatmapSetID = onlineId,
Metadata = this,
OnlineInfo = new BeatmapSetOnlineInfo
{