/// <param name="syncToken"> If you stored the sync token before, you can set it for the API here</param>
 public void StartSync(string syncToken = "")
 {
     api.SetSyncToken(syncToken);
     api.ClientSync();
     api.StartSyncThreads();
 }
Exemple #2
0
 /// <summary>
 /// Login with a given username and password.
 /// This method will also start a sync with the server
 /// Currently, this is the only login method the SDK supports.
 /// </summary>
 /// <param name="username">Username</param>
 /// <param name="password">Password</param>
 public void LoginWithPassword(string username, string password)
 {
     api.ClientLogin(new MatrixLoginPassword(username, password));
     api.ClientSync();
     api.StartSyncThreads();
 }