mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
Merge pull request #15243 from peppy/remove-beatmap-set-online-info-setters
Remove unnecessary setters from `IBeatmapSetOnlineInfo` interface
This commit is contained in:
commit
5b9eb52d44
@ -107,27 +107,15 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public DateTimeOffset Submitted
|
||||
{
|
||||
get => OnlineInfo.Submitted;
|
||||
set => OnlineInfo.Submitted = value;
|
||||
}
|
||||
public DateTimeOffset Submitted => OnlineInfo.Submitted;
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public DateTimeOffset? Ranked
|
||||
{
|
||||
get => OnlineInfo.Ranked;
|
||||
set => OnlineInfo.Ranked = value;
|
||||
}
|
||||
public DateTimeOffset? Ranked => OnlineInfo.Ranked;
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public DateTimeOffset? LastUpdated
|
||||
{
|
||||
get => OnlineInfo.LastUpdated;
|
||||
set => OnlineInfo.LastUpdated = value;
|
||||
}
|
||||
public DateTimeOffset? LastUpdated => OnlineInfo.LastUpdated;
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
@ -135,107 +123,55 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public bool HasExplicitContent
|
||||
{
|
||||
get => OnlineInfo.HasExplicitContent;
|
||||
set => OnlineInfo.HasExplicitContent = value;
|
||||
}
|
||||
public bool HasExplicitContent => OnlineInfo.HasExplicitContent;
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public bool HasVideo
|
||||
{
|
||||
get => OnlineInfo.HasVideo;
|
||||
set => OnlineInfo.HasVideo = value;
|
||||
}
|
||||
public bool HasVideo => OnlineInfo.HasVideo;
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public bool HasStoryboard
|
||||
{
|
||||
get => OnlineInfo.HasStoryboard;
|
||||
set => OnlineInfo.HasStoryboard = value;
|
||||
}
|
||||
public bool HasStoryboard => OnlineInfo.HasStoryboard;
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public BeatmapSetOnlineCovers Covers
|
||||
{
|
||||
get => OnlineInfo.Covers;
|
||||
set => OnlineInfo.Covers = value;
|
||||
}
|
||||
public BeatmapSetOnlineCovers Covers => OnlineInfo.Covers;
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public string Preview
|
||||
{
|
||||
get => OnlineInfo.Preview;
|
||||
set => OnlineInfo.Preview = value;
|
||||
}
|
||||
public string Preview => OnlineInfo.Preview;
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public double BPM
|
||||
{
|
||||
get => OnlineInfo.BPM;
|
||||
set => OnlineInfo.BPM = value;
|
||||
}
|
||||
public double BPM => OnlineInfo.BPM;
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public int PlayCount
|
||||
{
|
||||
get => OnlineInfo.PlayCount;
|
||||
set => OnlineInfo.PlayCount = value;
|
||||
}
|
||||
public int PlayCount => OnlineInfo.PlayCount;
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public int FavouriteCount
|
||||
{
|
||||
get => OnlineInfo.FavouriteCount;
|
||||
set => OnlineInfo.FavouriteCount = value;
|
||||
}
|
||||
public int FavouriteCount => OnlineInfo.FavouriteCount;
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public bool HasFavourited
|
||||
{
|
||||
get => OnlineInfo.HasFavourited;
|
||||
set => OnlineInfo.HasFavourited = value;
|
||||
}
|
||||
public bool HasFavourited => OnlineInfo.HasFavourited;
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public BeatmapSetOnlineAvailability Availability
|
||||
{
|
||||
get => OnlineInfo.Availability;
|
||||
set => OnlineInfo.Availability = value;
|
||||
}
|
||||
public BeatmapSetOnlineAvailability Availability => OnlineInfo.Availability;
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public BeatmapSetOnlineGenre Genre
|
||||
{
|
||||
get => OnlineInfo.Genre;
|
||||
set => OnlineInfo.Genre = value;
|
||||
}
|
||||
public BeatmapSetOnlineGenre Genre => OnlineInfo.Genre;
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public BeatmapSetOnlineLanguage Language
|
||||
{
|
||||
get => OnlineInfo.Language;
|
||||
set => OnlineInfo.Language = value;
|
||||
}
|
||||
public BeatmapSetOnlineLanguage Language => OnlineInfo.Language;
|
||||
|
||||
[NotMapped]
|
||||
[JsonIgnore]
|
||||
public int? TrackId
|
||||
{
|
||||
get => OnlineInfo.TrackId;
|
||||
set => OnlineInfo.TrackId = value;
|
||||
}
|
||||
public int? TrackId => OnlineInfo?.TrackId;
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
@ -15,87 +15,87 @@ namespace osu.Game.Beatmaps
|
||||
/// <summary>
|
||||
/// The date this beatmap set was submitted to the online listing.
|
||||
/// </summary>
|
||||
DateTimeOffset Submitted { get; set; }
|
||||
DateTimeOffset Submitted { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The date this beatmap set was ranked.
|
||||
/// </summary>
|
||||
DateTimeOffset? Ranked { get; set; }
|
||||
DateTimeOffset? Ranked { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The date this beatmap set was last updated.
|
||||
/// </summary>
|
||||
DateTimeOffset? LastUpdated { get; set; }
|
||||
DateTimeOffset? LastUpdated { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The status of this beatmap set.
|
||||
/// </summary>
|
||||
BeatmapSetOnlineStatus Status { get; set; }
|
||||
BeatmapSetOnlineStatus Status { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not this beatmap set has explicit content.
|
||||
/// </summary>
|
||||
bool HasExplicitContent { get; set; }
|
||||
bool HasExplicitContent { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not this beatmap set has a background video.
|
||||
/// </summary>
|
||||
bool HasVideo { get; set; }
|
||||
bool HasVideo { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not this beatmap set has a storyboard.
|
||||
/// </summary>
|
||||
bool HasStoryboard { get; set; }
|
||||
bool HasStoryboard { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The different sizes of cover art for this beatmap set.
|
||||
/// </summary>
|
||||
BeatmapSetOnlineCovers Covers { get; set; }
|
||||
BeatmapSetOnlineCovers Covers { get; }
|
||||
|
||||
/// <summary>
|
||||
/// A small sample clip of this beatmap set's song.
|
||||
/// </summary>
|
||||
string Preview { get; set; }
|
||||
string Preview { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The beats per minute of this beatmap set's song.
|
||||
/// </summary>
|
||||
double BPM { get; set; }
|
||||
double BPM { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The amount of plays this beatmap set has.
|
||||
/// </summary>
|
||||
int PlayCount { get; set; }
|
||||
int PlayCount { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The amount of people who have favourited this beatmap set.
|
||||
/// </summary>
|
||||
int FavouriteCount { get; set; }
|
||||
int FavouriteCount { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether this beatmap set has been favourited by the current user.
|
||||
/// </summary>
|
||||
bool HasFavourited { get; set; }
|
||||
bool HasFavourited { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The availability of this beatmap set.
|
||||
/// </summary>
|
||||
BeatmapSetOnlineAvailability Availability { get; set; }
|
||||
BeatmapSetOnlineAvailability Availability { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The song genre of this beatmap set.
|
||||
/// </summary>
|
||||
BeatmapSetOnlineGenre Genre { get; set; }
|
||||
BeatmapSetOnlineGenre Genre { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The song language of this beatmap set.
|
||||
/// </summary>
|
||||
BeatmapSetOnlineLanguage Language { get; set; }
|
||||
BeatmapSetOnlineLanguage Language { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 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; set; }
|
||||
int? TrackId { get; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user