mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Add online beatmap "explicit content" property
This commit is contained in:
parent
10fd4cf7c9
commit
e8daea91d2
@ -31,6 +31,11 @@ namespace osu.Game.Beatmaps
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public BeatmapSetOnlineStatus Status { get; set; }
|
public BeatmapSetOnlineStatus Status { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Whether or not this beatmap set has explicit content.
|
||||||
|
/// </summary>
|
||||||
|
public bool HasExplicitContent { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether or not this beatmap set has a background video.
|
/// Whether or not this beatmap set has a background video.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -42,6 +42,9 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
[JsonProperty(@"bpm")]
|
[JsonProperty(@"bpm")]
|
||||||
private double bpm { get; set; }
|
private double bpm { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty(@"nsfw")]
|
||||||
|
private bool hasExplicitContent { get; set; }
|
||||||
|
|
||||||
[JsonProperty(@"video")]
|
[JsonProperty(@"video")]
|
||||||
private bool hasVideo { get; set; }
|
private bool hasVideo { get; set; }
|
||||||
|
|
||||||
@ -94,6 +97,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
FavouriteCount = favouriteCount,
|
FavouriteCount = favouriteCount,
|
||||||
BPM = bpm,
|
BPM = bpm,
|
||||||
Status = Status,
|
Status = Status,
|
||||||
|
HasExplicitContent = hasExplicitContent,
|
||||||
HasVideo = hasVideo,
|
HasVideo = hasVideo,
|
||||||
HasStoryboard = hasStoryboard,
|
HasStoryboard = hasStoryboard,
|
||||||
Submitted = submitted,
|
Submitted = submitted,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user