2021-10-21 08:14:29 +00: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 09:19:50 +00:00
|
|
|
using System;
|
|
|
|
|
2021-10-21 09:53:49 +00:00
|
|
|
#nullable enable
|
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
namespace osu.Game.Beatmaps
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Beatmap set info retrieved for previewing locally without having the set downloaded.
|
|
|
|
/// </summary>
|
2021-10-20 09:43:48 +00:00
|
|
|
public interface IBeatmapSetOnlineInfo
|
2018-04-13 09:19:50 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The date this beatmap set was submitted to the online listing.
|
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
DateTimeOffset Submitted { get; }
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The date this beatmap set was ranked.
|
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
DateTimeOffset? Ranked { get; }
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The date this beatmap set was last updated.
|
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
DateTimeOffset? LastUpdated { get; }
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The status of this beatmap set.
|
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
BeatmapSetOnlineStatus Status { get; }
|
2018-04-13 09:19:50 +00:00
|
|
|
|
2021-01-12 15:13:05 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Whether or not this beatmap set has explicit content.
|
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
bool HasExplicitContent { get; }
|
2021-01-12 15:13:05 +00:00
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Whether or not this beatmap set has a background video.
|
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
bool HasVideo { get; }
|
2018-04-13 09:19:50 +00:00
|
|
|
|
2018-05-31 15:09:19 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Whether or not this beatmap set has a storyboard.
|
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
bool HasStoryboard { get; }
|
2018-05-31 15:09:19 +00:00
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The different sizes of cover art for this beatmap set.
|
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
BeatmapSetOnlineCovers Covers { get; }
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// A small sample clip of this beatmap set's song.
|
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
string Preview { get; }
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The beats per minute of this beatmap set's song.
|
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
double BPM { get; }
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The amount of plays this beatmap set has.
|
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
int PlayCount { get; }
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The amount of people who have favourited this beatmap set.
|
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
int FavouriteCount { get; }
|
2019-06-10 10:18:38 +00:00
|
|
|
|
2019-07-21 18:41:07 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Whether this beatmap set has been favourited by the current user.
|
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
bool HasFavourited { get; }
|
2019-06-10 10:18:38 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The availability of this beatmap set.
|
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
BeatmapSetOnlineAvailability Availability { get; }
|
2019-07-11 13:44:48 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2019-07-11 14:47:09 +00:00
|
|
|
/// The song genre of this beatmap set.
|
2019-07-11 13:44:48 +00:00
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
BeatmapSetOnlineGenre Genre { get; }
|
2019-07-11 13:44:48 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2019-07-11 14:47:09 +00:00
|
|
|
/// The song language of this beatmap set.
|
2019-07-11 13:44:48 +00:00
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
BeatmapSetOnlineLanguage Language { get; }
|
2021-09-08 03:21:24 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2021-09-10 03:58:12 +00: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 03:21:24 +00:00
|
|
|
/// </summary>
|
2021-10-22 08:48:09 +00:00
|
|
|
int? TrackId { get; }
|
2018-04-13 09:19:50 +00:00
|
|
|
}
|
2021-10-21 08:00:14 +00:00
|
|
|
}
|