mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Use interface to access API
Allows for better testability.
This commit is contained in:
@ -16,7 +16,7 @@ namespace osu.Game.Overlays.Profile.Sections.Recent
|
||||
{
|
||||
public class DrawableRecentActivity : DrawableProfileRow
|
||||
{
|
||||
private APIAccess api;
|
||||
private IAPIProvider api;
|
||||
|
||||
private readonly APIRecentActivity activity;
|
||||
|
||||
@ -28,7 +28,7 @@ namespace osu.Game.Overlays.Profile.Sections.Recent
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(APIAccess api)
|
||||
private void load(IAPIProvider api)
|
||||
{
|
||||
this.api = api;
|
||||
|
||||
|
Reference in New Issue
Block a user