2021-10-11 06:25:00 +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.
|
|
|
|
|
|
|
|
|
|
using JetBrains.Annotations;
|
2021-10-13 03:51:41 +00:00
|
|
|
|
using osu.Framework.Testing;
|
2021-10-11 06:25:00 +00:00
|
|
|
|
using osu.Game.Database;
|
|
|
|
|
using osu.Game.IO;
|
|
|
|
|
using Realms;
|
|
|
|
|
|
|
|
|
|
#nullable enable
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Models
|
|
|
|
|
{
|
2021-10-13 03:51:41 +00:00
|
|
|
|
[ExcludeFromDynamicCompile]
|
2021-10-11 06:25:00 +00:00
|
|
|
|
public class RealmNamedFileUsage : EmbeddedObject, INamedFile, INamedFileUsage
|
|
|
|
|
{
|
|
|
|
|
public RealmFile File { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
public string Filename { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
public RealmNamedFileUsage(RealmFile file, string filename)
|
|
|
|
|
{
|
|
|
|
|
File = file;
|
|
|
|
|
Filename = filename;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[UsedImplicitly]
|
|
|
|
|
private RealmNamedFileUsage()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
IFileInfo INamedFileUsage.File => File;
|
|
|
|
|
}
|
|
|
|
|
}
|