1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 04:13:38 +08:00

Add featured artist track ID online info

This commit is contained in:
ekrctb
2021-09-08 12:21:24 +09:00
Unverified
parent 2c6ee0ebf7
commit 7543f9dfb0
2 changed files with 11 additions and 1 deletions
@@ -90,6 +90,12 @@ namespace osu.Game.Beatmaps
/// The song language of this beatmap set.
/// </summary>
public BeatmapSetOnlineLanguage Language { get; set; }
/// <summary>
/// The song ID of this beatmap set.
/// Non-null only if the song is from a featured artist.
/// </summary>
public int? TrackId { get; set; }
}
public class BeatmapSetOnlineGenre
@@ -63,6 +63,9 @@ namespace osu.Game.Online.API.Requests.Responses
[JsonProperty(@"ratings")]
private int[] ratings { get; set; }
[JsonProperty(@"track_id")]
private int? trackId { get; set; }
[JsonProperty(@"user_id")]
private int creatorId
{
@@ -106,7 +109,8 @@ namespace osu.Game.Online.API.Requests.Responses
Availability = availability,
HasFavourited = hasFavourited,
Genre = genre,
Language = language
Language = language,
TrackId = trackId
},
};