31 lines
711 B
C#
31 lines
711 B
C#
|
using System;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace TapTap.Login.Internal {
|
|||
|
public interface ITapLoginPlatform {
|
|||
|
void Init(string clientID);
|
|||
|
|
|||
|
void Init(string clientID, bool isCn, bool roundCorner);
|
|||
|
|
|||
|
void ChangeConfig(bool roundCorner, bool isPortrait);
|
|||
|
|
|||
|
Task<Profile> FetchProfile();
|
|||
|
|
|||
|
Task<Profile> GetProfile();
|
|||
|
|
|||
|
Task<AccessToken> GetAccessToken();
|
|||
|
|
|||
|
Task<AccessToken> Login();
|
|||
|
|
|||
|
Task<AccessToken> Login(string[] permissions);
|
|||
|
|
|||
|
Task<AccessToken> Login(TapLoginPermissionConfig config);
|
|||
|
|
|||
|
Task<AccessToken> Authorize(string[] permissions = null);
|
|||
|
|
|||
|
void Logout();
|
|||
|
|
|||
|
Task<bool> GetTestQualification();
|
|||
|
}
|
|||
|
}
|