2019-01-24 16:43:03 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Beatmaps
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Beatmap set info retrieved for previewing locally without having the set downloaded.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class BeatmapSetOnlineInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The date this beatmap set was submitted to the online listing.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTimeOffset Submitted { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The date this beatmap set was ranked.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTimeOffset? Ranked { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The date this beatmap set was last updated.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTimeOffset? LastUpdated { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The status of this beatmap set.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public BeatmapSetOnlineStatus Status { get; set; }
|
|
|
|
|
|
2021-01-12 23:13:05 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether or not this beatmap set has explicit content.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool HasExplicitContent { get; set; }
|
|
|
|
|
|
2018-04-13 17:19:50 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether or not this beatmap set has a background video.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool HasVideo { get; set; }
|
|
|
|
|
|
2018-05-31 23:09:19 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether or not this beatmap set has a storyboard.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool HasStoryboard { get; set; }
|
|
|
|
|
|
2018-04-13 17:19:50 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The different sizes of cover art for this beatmap set.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public BeatmapSetOnlineCovers Covers { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A small sample clip of this beatmap set's song.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Preview { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The beats per minute of this beatmap set's song.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double BPM { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The amount of plays this beatmap set has.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int PlayCount { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The amount of people who have favourited this beatmap set.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int FavouriteCount { get; set; }
|
2019-06-10 18:18:38 +08:00
|
|
|
|
|
2019-07-22 02:41:07 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether this beatmap set has been favourited by the current user.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool HasFavourited { get; set; }
|
2019-06-10 18:18:38 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The availability of this beatmap set.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public BeatmapSetOnlineAvailability Availability { get; set; }
|
2019-07-11 21:44:48 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2019-07-11 22:47:09 +08:00
|
|
|
|
/// The song genre of this beatmap set.
|
2019-07-11 21:44:48 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
public BeatmapSetOnlineGenre Genre { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2019-07-11 22:47:09 +08:00
|
|
|
|
/// The song language of this beatmap set.
|
2019-07-11 21:44:48 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
public BeatmapSetOnlineLanguage Language { get; set; }
|
2021-09-08 11:21:24 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2021-09-10 11:58:12 +08:00
|
|
|
|
/// The track ID of this beatmap set.
|
|
|
|
|
/// Non-null only if the track is linked to a featured artist track entry.
|
2021-09-08 11:21:24 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
public int? TrackId { get; set; }
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-08-29 17:29:31 +08:00
|
|
|
|
public class BeatmapSetOnlineGenre
|
2019-07-11 22:47:09 +08:00
|
|
|
|
{
|
2019-08-29 17:29:31 +08:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public string Name { get; set; }
|
2019-07-11 22:47:09 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-08-29 17:29:31 +08:00
|
|
|
|
public class BeatmapSetOnlineLanguage
|
2019-07-11 22:47:09 +08:00
|
|
|
|
{
|
2019-08-29 17:29:31 +08:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public string Name { get; set; }
|
2019-07-11 22:47:09 +08:00
|
|
|
|
}
|
|
|
|
|
|
2018-04-13 17:19:50 +08:00
|
|
|
|
public class BeatmapSetOnlineCovers
|
|
|
|
|
{
|
|
|
|
|
public string CoverLowRes { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"cover@2x")]
|
|
|
|
|
public string Cover { get; set; }
|
2019-06-11 02:13:37 +08:00
|
|
|
|
|
2018-04-13 17:19:50 +08:00
|
|
|
|
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; }
|
|
|
|
|
}
|
2019-06-10 18:18:38 +08:00
|
|
|
|
|
|
|
|
|
public class BeatmapSetOnlineAvailability
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty(@"download_disabled")]
|
|
|
|
|
public bool DownloadDisabled { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"more_information")]
|
|
|
|
|
public string ExternalLink { get; set; }
|
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|