// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using JetBrains.Annotations; using osu.Game.Database; using Realms; namespace osu.Game.Beatmaps { public class RealmBeatmapCollection : RealmObject, IHasGuidPrimaryKey { [PrimaryKey] public Guid ID { get; } public string Name { get; set; } = string.Empty; public IList BeatmapMD5Hashes { get; } = null!; /// /// The date when this collection was last modified. /// public DateTimeOffset LastModified { get; set; } public RealmBeatmapCollection(string? name = null, IList? beatmapMD5Hashes = null) { ID = Guid.NewGuid(); Name = name ?? string.Empty; BeatmapMD5Hashes = beatmapMD5Hashes ?? new List(); LastModified = DateTimeOffset.UtcNow; } [UsedImplicitly] private RealmBeatmapCollection() { } } }