diff --git a/osu.Game/Extensions/ModelExtensions.cs b/osu.Game/Extensions/ModelExtensions.cs
index 48a3bac112..c8561ecdb3 100644
--- a/osu.Game/Extensions/ModelExtensions.cs
+++ b/osu.Game/Extensions/ModelExtensions.cs
@@ -62,12 +62,30 @@ namespace osu.Game.Extensions
}
///
- /// Check whether the online ID of two instances match.
+ /// Check whether the online ID of two s match.
///
/// The instance to compare.
/// The other instance to compare against.
/// Whether online IDs match. If either instance is missing an online ID, this will return false.
- public static bool MatchesOnlineID(this IHasOnlineID? instance, IHasOnlineID? other)
+ public static bool MatchesOnlineID(this IBeatmapSetInfo? instance, IBeatmapSetInfo? other) => matchesOnlineID(instance, other);
+
+ ///
+ /// Check whether the online ID of two s match.
+ ///
+ /// The instance to compare.
+ /// The other instance to compare against.
+ /// Whether online IDs match. If either instance is missing an online ID, this will return false.
+ public static bool MatchesOnlineID(this IBeatmapInfo? instance, IBeatmapInfo? other) => matchesOnlineID(instance, other);
+
+ ///
+ /// Check whether the online ID of two s match.
+ ///
+ /// The instance to compare.
+ /// The other instance to compare against.
+ /// Whether online IDs match. If either instance is missing an online ID, this will return false.
+ public static bool MatchesOnlineID(this IRulesetInfo? instance, IRulesetInfo? other) => matchesOnlineID(instance, other);
+
+ private static bool matchesOnlineID(this IHasOnlineID? instance, IHasOnlineID? other)
{
if (instance == null || other == null)
return false;
@@ -78,13 +96,7 @@ namespace osu.Game.Extensions
return instance.OnlineID.Equals(other.OnlineID);
}
- ///
- /// Check whether the online ID of two instances match.
- ///
- /// The instance to compare.
- /// The other instance to compare against.
- /// Whether online IDs match. If either instance is missing an online ID, this will return false.
- public static bool MatchesOnlineID(this IHasOnlineID? instance, IHasOnlineID? other)
+ private static bool matchesOnlineID(this IHasOnlineID? instance, IHasOnlineID? other)
{
if (instance == null || other == null)
return false;