57 lines
1.4 KiB
C#
57 lines
1.4 KiB
C#
using System.Threading.Tasks;
|
|
|
|
namespace TapTap.Login.Mobile
|
|
{
|
|
public class TapLoginMobile : Internal.ITapLoginPlatform
|
|
{
|
|
public void Init(string clientID)
|
|
{
|
|
TapLoginImpl.GetInstance().Init(clientID);
|
|
}
|
|
|
|
public void Init(string clientID, bool isCn, bool roundCorner)
|
|
{
|
|
TapLoginImpl.GetInstance().Init(clientID, isCn, roundCorner);
|
|
}
|
|
|
|
public void ChangeConfig(bool roundCorner, bool isPortrait)
|
|
{
|
|
TapLoginImpl.GetInstance().ChangeConfig(roundCorner, isPortrait);
|
|
}
|
|
|
|
public Task<Profile> FetchProfile()
|
|
{
|
|
return TapLoginImpl.GetInstance().FetchProfile();
|
|
}
|
|
|
|
public Task<Profile> GetProfile()
|
|
{
|
|
return TapLoginImpl.GetInstance().GetProfile();
|
|
}
|
|
|
|
public Task<AccessToken> GetAccessToken()
|
|
{
|
|
return TapLoginImpl.GetInstance().GetAccessToken();
|
|
}
|
|
|
|
public Task<AccessToken> Login()
|
|
{
|
|
return TapLoginImpl.GetInstance().Login();
|
|
}
|
|
|
|
public Task<AccessToken> Login(string[] permissions)
|
|
{
|
|
return TapLoginImpl.GetInstance().Login(permissions);
|
|
}
|
|
|
|
public void Logout()
|
|
{
|
|
TapLoginImpl.GetInstance().Logout();
|
|
}
|
|
|
|
public Task<bool> GetTestQualification()
|
|
{
|
|
return TapLoginImpl.GetInstance().GetTestQualification();
|
|
}
|
|
}
|
|
} |