mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 16:10:48 +08:00
5eda9a0fd7
Something I've asked to be done for a long time. Relevant because I've complained about this on every addition of a new piece of user-local state: friends, blocks, and now favourite beatmaps. It's just so messy managing all this inside `APIAccess` next to everything else, IMO.
19 lines
515 B
C#
19 lines
515 B
C#
// 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 osu.Framework.Bindables;
|
|
using osu.Game.Online.API.Requests.Responses;
|
|
|
|
namespace osu.Game.Online.API
|
|
{
|
|
public interface ILocalUserState
|
|
{
|
|
IBindable<APIUser> User { get; }
|
|
IBindableList<APIRelation> Friends { get; }
|
|
IBindableList<APIRelation> Blocks { get; }
|
|
|
|
void UpdateFriends();
|
|
void UpdateBlocks();
|
|
}
|
|
}
|