// 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 { /// /// Unifying interface for sources of . /// public interface IOnlineBeatmapMetadataSource : IDisposable { /// /// Whether this source can currently service lookups. /// bool Available { get; } /// /// Looks up the online metadata for the supplied . /// /// The to look up. /// /// An instance if the lookup is successful. /// if a mismatch between the local instance and the looked-up data was detected. /// The returned value is only valid if the return value of the method is . /// /// /// Whether the lookup was performed. /// bool TryLookup(BeatmapInfo beatmapInfo, out OnlineBeatmapMetadata? onlineMetadata); } }