Beispiel #1
0
 private void Start()
 {
     userAPI = GetComponent <TecktalUsersAPI>();
     if (loginTest)
     {
         userEmail = "*****@*****.**";
         pass      = "******";
         userAPI.GetUser(userEmail, OnSuccess, OnError);
         enabled = false;
     }
 }
Beispiel #2
0
 private void Awake()
 {
     api = GetComponent<TecktalUsersAPI>();
     if (testType == TestType.GetAllUsers)
     {
         api.GetUser();
     }else if (testType == TestType.GetUser)
     {
         api.GetUser(email);
     }
     else if(testType == TestType.Register)
     {
         api.RegisterUser(firstName, lastName, email, password);
     }else if(testType == TestType.Update)
     {
         api.UpdateUser(firstName, lastName, email, password);
     }
 }