using System.Threading.Tasks; namespace osu.Game.Online.Spectator { /// /// An interface defining a spectator client instance. /// public interface ISpectatorClient { /// /// Signals that a user has begun a new play session. /// /// The user. /// The beatmap the user is playing. Task UserBeganPlaying(string userId, int beatmapId); /// /// Signals that a user has finished a play session. /// /// The user. /// The beatmap the user has finished playing. Task UserFinishedPlaying(string userId, int beatmapId); /// /// Called when new frames are available for a subscribed user's play session. /// /// The user. /// The frame data. Task UserSentFrames(string userId, FrameDataBundle data); } }