Esempio n. 1
0
 public static TDSLoginImpl GetInstance()
 {
     lock (locker)
     {
         if (sInstance == null)
         {
             sInstance = new TDSLoginImpl();
         }
     }
     return(sInstance);
 }
Esempio n. 2
0
 public static void Init(string clientId)
 {
     TDSLoginImpl.GetInstance().Init(clientId);
 }
Esempio n. 3
0
 public static void FetchProfileForCurrentAccessToken(Action <TDSLoginProfile> callback, Action <string> errorCallback)
 {
     TDSLoginImpl.GetInstance().FetchProfileForCurrentAccessToken(callback, errorCallback);
 }
Esempio n. 4
0
 public static void ChangeConfig(bool isCN, bool isRoundCorner)
 {
     TDSLoginImpl.GetInstance().ChangeConfig(isCN, isRoundCorner);
 }
Esempio n. 5
0
 public static void GetCurrentProfile(Action <TDSLoginProfile> callback)
 {
     TDSLoginImpl.GetInstance().GetCurrentProfile(callback);
 }
Esempio n. 6
0
 public static void Logout()
 {
     TDSLoginImpl.GetInstance().Logout();
 }
Esempio n. 7
0
 public static void GetCurrentAccessToken(Action <TDSAccessToken> callback)
 {
     TDSLoginImpl.GetInstance().GetCurrentAccessToken(callback);
 }
Esempio n. 8
0
 public static void UnRegisterLoginCallback()
 {
     TDSLoginImpl.GetInstance().UnRegisterLoginCallback();
 }
Esempio n. 9
0
 public static void RegisterLoginCallback(LoginCallback callback)
 {
     TDSLoginImpl.GetInstance().RegisterLoginCallback(callback);
 }
Esempio n. 10
0
 public static void StartLogin(string[] permissions)
 {
     TDSLoginImpl.GetInstance().StartLogin(permissions);
 }
Esempio n. 11
0
 public static void Init(string clientId, bool isCN, bool isRoundCorner)
 {
     TDSLoginImpl.GetInstance().Init(clientId, isCN, isRoundCorner);
 }