// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using Newtonsoft.Json; namespace osu.Game.Beatmaps { /// /// Beatmap set info retrieved for previewing locally without having the set downloaded. /// public class BeatmapSetOnlineInfo { /// /// The date this beatmap set was submitted to the online listing. /// public DateTimeOffset Submitted { get; set; } /// /// The date this beatmap set was ranked. /// public DateTimeOffset? Ranked { get; set; } /// /// The date this beatmap set was last updated. /// public DateTimeOffset? LastUpdated { get; set; } /// /// The status of this beatmap set. /// public BeatmapSetOnlineStatus Status { get; set; } /// /// Whether or not this beatmap set has a background video. /// public bool HasVideo { get; set; } /// /// Whether or not this beatmap set has a storyboard. /// public bool HasStoryboard { get; set; } /// /// The different sizes of cover art for this beatmap set. /// public BeatmapSetOnlineCovers Covers { get; set; } /// /// A small sample clip of this beatmap set's song. /// public string Preview { get; set; } /// /// The beats per minute of this beatmap set's song. /// public double BPM { get; set; } /// /// The amount of plays this beatmap set has. /// public int PlayCount { get; set; } /// /// The amount of people who have favourited this beatmap set. /// public int FavouriteCount { get; set; } /// /// The availability of this beatmap set. /// public BeatmapSetOnlineAvailability Availability { get; set; } } public class BeatmapSetOnlineCovers { public string CoverLowRes { get; set; } [JsonProperty(@"cover@2x")] public string Cover { get; set; } public string CardLowRes { get; set; } [JsonProperty(@"card@2x")] public string Card { get; set; } public string ListLowRes { get; set; } [JsonProperty(@"list@2x")] public string List { get; set; } } public class BeatmapSetOnlineAvailability { [JsonProperty(@"download_disabled")] public bool DownloadDisabled { get; set; } [JsonProperty(@"more_information")] public string ExternalLink { get; set; } } }