1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-30 07:52:56 +08:00
osu-lazer/osu.Game/Beatmaps/IBeatmapSetOnlineInfo.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

119 lines
3.7 KiB
C#
Raw Normal View History

2021-10-21 16:14:29 +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.
using System;
2018-04-13 17:19:50 +08:00
2017-07-26 12:22:46 +08:00
namespace osu.Game.Beatmaps
{
/// <summary>
/// Beatmap set info retrieved for previewing locally without having the set downloaded.
/// </summary>
public interface IBeatmapSetOnlineInfo
{
/// <summary>
/// The date this beatmap set was submitted to the online listing.
/// </summary>
DateTimeOffset Submitted { get; }
2018-04-13 17:19:50 +08:00
/// <summary>
/// The date this beatmap set was ranked.
/// </summary>
DateTimeOffset? Ranked { get; }
2018-04-13 17:19:50 +08:00
/// <summary>
/// The date this beatmap set was last updated.
/// </summary>
DateTimeOffset? LastUpdated { get; }
2018-04-13 17:19:50 +08:00
/// <summary>
2021-11-12 12:07:11 +08:00
/// The "ranked" status of this beatmap set.
/// </summary>
BeatmapOnlineStatus Status { get; }
2018-04-13 17:19:50 +08:00
/// <summary>
/// Whether or not this beatmap set has explicit content.
/// </summary>
bool HasExplicitContent { get; }
2017-11-10 08:01:11 +08:00
/// <summary>
/// Whether or not this beatmap set has a background video.
/// </summary>
bool HasVideo { get; }
2018-04-13 17:19:50 +08:00
2018-05-31 23:09:19 +08:00
/// <summary>
/// Whether or not this beatmap set has a storyboard.
/// </summary>
bool HasStoryboard { get; }
2018-05-31 23:09:19 +08:00
/// <summary>
2017-07-11 11:28:25 +08:00
/// The different sizes of cover art for this beatmap set.
/// </summary>
BeatmapSetOnlineCovers Covers { get; }
2018-04-13 17:19:50 +08:00
/// <summary>
2017-07-11 11:28:25 +08:00
/// A small sample clip of this beatmap set's song.
/// </summary>
string Preview { get; }
2018-04-13 17:19:50 +08:00
2017-09-11 13:48:48 +08:00
/// <summary>
/// The beats per minute of this beatmap set's song.
/// </summary>
double BPM { get; }
2018-04-13 17:19:50 +08:00
/// <summary>
2017-07-11 11:28:25 +08:00
/// The amount of plays this beatmap set has.
/// </summary>
int PlayCount { get; }
2018-04-13 17:19:50 +08:00
/// <summary>
2017-07-11 11:28:25 +08:00
/// The amount of people who have favourited this beatmap set.
/// </summary>
int FavouriteCount { get; }
2019-07-22 02:41:07 +08:00
/// <summary>
/// Whether this beatmap set has been favourited by the current user.
/// </summary>
bool HasFavourited { get; }
/// <summary>
/// The availability of this beatmap set.
/// </summary>
BeatmapSetOnlineAvailability Availability { get; }
/// <summary>
2019-07-11 22:47:09 +08:00
/// The song genre of this beatmap set.
/// </summary>
BeatmapSetOnlineGenre Genre { get; }
/// <summary>
2019-07-11 22:47:09 +08:00
/// The song language of this beatmap set.
/// </summary>
BeatmapSetOnlineLanguage Language { get; }
/// <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.
/// </summary>
int? TrackId { get; }
/// <summary>
/// Total vote counts of user ratings on a scale of 0..10 where 0 is unused (probably will be fixed at API?).
/// </summary>
int[]? Ratings { get; }
2021-10-18 02:55:06 +08:00
/// <summary>
/// Contains the current hype status of the beatmap set.
/// Non-null only for <see cref="BeatmapOnlineStatus.WIP"/>, <see cref="BeatmapOnlineStatus.Pending"/>, and <see cref="BeatmapOnlineStatus.Qualified"/> sets.
2021-10-18 02:55:06 +08:00
/// </summary>
/// <remarks>
/// See: https://github.com/ppy/osu-web/blob/93930cd02cfbd49724929912597c727c9fbadcd1/app/Models/Beatmapset.php#L155
/// </remarks>
BeatmapSetHypeStatus? HypeStatus { get; }
/// <summary>
/// Contains the current nomination status of the beatmap set.
/// </summary>
BeatmapSetNominationStatus? NominationStatus { get; }
}
}