2022-07-04 16:18:33 +08: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 System.Threading.Tasks;
|
2023-12-07 01:24:31 +08:00
|
|
|
using osu.Game.Users;
|
2022-07-04 16:18:33 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Online.Metadata
|
|
|
|
{
|
2023-12-07 01:24:31 +08:00
|
|
|
/// <summary>
|
|
|
|
/// Interface for metadata-related remote procedure calls to be executed on the client side.
|
|
|
|
/// </summary>
|
|
|
|
public interface IMetadataClient : IStatefulUserHubClient
|
2022-07-04 16:18:33 +08:00
|
|
|
{
|
2023-12-07 01:24:31 +08:00
|
|
|
/// <summary>
|
|
|
|
/// Delivers the set of requested <see cref="BeatmapUpdates"/> to the client.
|
|
|
|
/// </summary>
|
2022-07-04 16:18:33 +08:00
|
|
|
Task BeatmapSetsUpdated(BeatmapUpdates updates);
|
2023-12-07 01:24:31 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Delivers an update of the <see cref="UserPresence"/> of the user with the supplied <paramref name="userId"/>.
|
|
|
|
/// </summary>
|
|
|
|
Task UserPresenceUpdated(int userId, UserPresence? status);
|
2024-05-17 16:32:39 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Delivers an update of the current "daily challenge" status.
|
|
|
|
/// Null value means there is no "daily challenge" currently active.
|
|
|
|
/// </summary>
|
|
|
|
Task DailyChallengeUpdated(DailyChallengeInfo? info);
|
2024-06-27 16:44:28 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Delivers information that a multiplayer score was set in a watched room.
|
|
|
|
/// To receive these, the client must call <see cref="IMetadataServer.BeginWatchingMultiplayerRoom"/> for a given room first.
|
|
|
|
/// </summary>
|
|
|
|
Task MultiplayerRoomScoreSet(MultiplayerRoomScoreSetEvent roomScoreSetEvent);
|
2022-07-04 16:18:33 +08:00
|
|
|
}
|
|
|
|
}
|