public MatrixAPI(string URL, string token = "") { if (!Uri.IsWellFormedUriString(URL, UriKind.Absolute)) { throw new MatrixException("URL is not valid"); } IsAS = false; mbackend = new HttpBackend(URL); BaseURL = URL; rng = new Random(DateTime.Now.Millisecond); event_converter = new JSONEventConverter(); syncToken = token; if (syncToken == "") { RunningInitialSync = true; } }
public MatrixAPI() { IsAS = false; mbackend = new HttpBackend(""); }