mirror of https://github.com/ppy/osu
Add online beatmap "explicit content" property
This commit is contained in:
parent
10fd4cf7c9
commit
e8daea91d2
|
@ -31,6 +31,11 @@ public class BeatmapSetOnlineInfo
|
|||
/// </summary>
|
||||
public BeatmapSetOnlineStatus Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not this beatmap set has explicit content.
|
||||
/// </summary>
|
||||
public bool HasExplicitContent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not this beatmap set has a background video.
|
||||
/// </summary>
|
||||
|
|
|
@ -42,6 +42,9 @@ public int? OnlineBeatmapSetID
|
|||
[JsonProperty(@"bpm")]
|
||||
private double bpm { get; set; }
|
||||
|
||||
[JsonProperty(@"nsfw")]
|
||||
private bool hasExplicitContent { get; set; }
|
||||
|
||||
[JsonProperty(@"video")]
|
||||
private bool hasVideo { get; set; }
|
||||
|
||||
|
@ -94,6 +97,7 @@ public BeatmapSetInfo ToBeatmapSet(RulesetStore rulesets)
|
|||
FavouriteCount = favouriteCount,
|
||||
BPM = bpm,
|
||||
Status = Status,
|
||||
HasExplicitContent = hasExplicitContent,
|
||||
HasVideo = hasVideo,
|
||||
HasStoryboard = hasStoryboard,
|
||||
Submitted = submitted,
|
||||
|
|
Loading…
Reference in New Issue