1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 21:03:08 +08:00

Add featured artist track ID online info

This commit is contained in:
ekrctb 2021-09-08 12:21:24 +09:00
parent 2c6ee0ebf7
commit 7543f9dfb0
2 changed files with 11 additions and 1 deletions

View File

@ -90,6 +90,12 @@ namespace osu.Game.Beatmaps
/// The song language of this beatmap set. /// The song language of this beatmap set.
/// </summary> /// </summary>
public BeatmapSetOnlineLanguage Language { get; set; } 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 public class BeatmapSetOnlineGenre

View File

@ -63,6 +63,9 @@ namespace osu.Game.Online.API.Requests.Responses
[JsonProperty(@"ratings")] [JsonProperty(@"ratings")]
private int[] ratings { get; set; } private int[] ratings { get; set; }
[JsonProperty(@"track_id")]
private int? trackId { get; set; }
[JsonProperty(@"user_id")] [JsonProperty(@"user_id")]
private int creatorId private int creatorId
{ {
@ -106,7 +109,8 @@ namespace osu.Game.Online.API.Requests.Responses
Availability = availability, Availability = availability,
HasFavourited = hasFavourited, HasFavourited = hasFavourited,
Genre = genre, Genre = genre,
Language = language Language = language,
TrackId = trackId
}, },
}; };