Add online beatmap "explicit content" property

This commit is contained in:
Salman Ahmed 2021-01-12 18:13:05 +03:00
parent 10fd4cf7c9
commit e8daea91d2
2 changed files with 9 additions and 0 deletions

View File

@ -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>

View File

@ -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,