Move string-token property to OAuth

This commit is contained in:
smoogipoo
2018-04-12 14:30:28 +09:00
parent e007365916
commit baae4427ff
2 changed files with 9 additions and 9 deletions

View File

@ -15,6 +15,12 @@ namespace osu.Game.Online.API
public readonly Bindable<OAuthToken> Token = new Bindable<OAuthToken>();
public string TokenString
{
get => Token.Value?.ToString();
set => Token.Value = string.IsNullOrEmpty(value) ? null : OAuthToken.Parse(value);
}
internal OAuth(string clientId, string clientSecret, string endpoint)
{
Debug.Assert(clientId != null);