mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
adjust DummyAPIAccess to more closely match APIAccess
wrt logging in and out
This commit is contained in:
parent
6de7328fef
commit
21bed336c6
@ -34,7 +34,7 @@ namespace osu.Game.Online.API
|
|||||||
|
|
||||||
public string AccessToken => "token";
|
public string AccessToken => "token";
|
||||||
|
|
||||||
public bool IsLoggedIn => State.Value == APIState.Online;
|
public bool IsLoggedIn => State.Value > APIState.Offline;
|
||||||
|
|
||||||
public string ProvidedUsername => LocalUser.Value.Username;
|
public string ProvidedUsername => LocalUser.Value.Username;
|
||||||
|
|
||||||
@ -114,8 +114,8 @@ namespace osu.Game.Online.API
|
|||||||
|
|
||||||
public void Logout()
|
public void Logout()
|
||||||
{
|
{
|
||||||
LocalUser.Value = new GuestUser();
|
|
||||||
state.Value = APIState.Offline;
|
state.Value = APIState.Offline;
|
||||||
|
LocalUser.Value = new GuestUser();
|
||||||
}
|
}
|
||||||
|
|
||||||
public IHubClientConnector GetHubConnector(string clientName, string endpoint, bool preferMessagePack) => null;
|
public IHubClientConnector GetHubConnector(string clientName, string endpoint, bool preferMessagePack) => null;
|
||||||
|
Loading…
Reference in New Issue
Block a user