Exemplo n.º 1
0
 public void Defunct_CallReportLevelTime(FreshLevels.Type type, float levelTime)
 {
     if (fa.dontConnect3rdParty)
     {
         return;
     }
     RemoteData.Account a = new RemoteData.Account();
     a.username = "******";
     a.token    = "valid";
     RemoteData.ReportLevelTime(a, type.ToString(), "" + levelTime, (data) =>
     {
         genericPrint += "" + data;
     });
 }
Exemplo n.º 2
0
 public static void LogIn(string username, string pwhash, bool isHash)
 {
     if (fa.dontConnect3rdParty)
     {
         return;
     }
     RemoteData.Account account = new RemoteData.Account();
     account.username   = username;
     account.pwHash     = pwhash;
     RemoteData.pending = account;
     RemoteData.LogIn(account, (data) =>
     {
         callLogInFromLogIn        = true;
         callLogInFromLogIn_result = data;
         // genericPrint += "" + data;
     });
 }
Exemplo n.º 3
0
 public static void CreateAccount(string username, string password, string email)
 {
     if (fa.dontConnect3rdParty)
     {
         return;
     }
     RemoteData.Account account = new RemoteData.Account();
     account.username    = username;
     account.pwHash      = RemoteData.GeneratePwHash(password);
     account.data[0]     = email;
     account.dataType[0] = "email";
     RemoteData.pending  = account;
     RemoteData.CreateAccount(account, (data) =>
     {
         callLogInFromSignUp        = true;
         callLogInFromSignUp_result = data;
         // genericPrint += "" + data;
     });
 }