// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; namespace osu.Game.Beatmaps { /// /// This structure contains parts of beatmap metadata which are involved with the online parts /// of the game, and therefore must be treated with particular care. /// This data is retrieved from trusted sources (such as osu-web API, or a locally downloaded sqlite snapshot /// of osu-web metadata). /// public class OnlineBeatmapMetadata { /// /// The online ID of the beatmap. /// public int BeatmapID { get; init; } /// /// The online ID of the beatmap set. /// public int BeatmapSetID { get; init; } /// /// The online ID of the author. /// public int AuthorID { get; init; } /// /// The online status of the beatmap. /// public BeatmapOnlineStatus BeatmapStatus { get; init; } /// /// The online status of the associated beatmap set. /// public BeatmapOnlineStatus? BeatmapSetStatus { get; init; } /// /// The rank date of the beatmap, if applicable and available. /// public DateTimeOffset? DateRanked { get; init; } /// /// The submission date of the beatmap, if available. /// public DateTimeOffset? DateSubmitted { get; init; } /// /// The MD5 hash of the beatmap. Used to verify integrity. /// public string MD5Hash { get; init; } = string.Empty; /// /// The date when this metadata was last updated. /// public DateTimeOffset LastUpdated { get; init; } } }