Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
 public MatrixAPI()
 {
     IsAS     = false;
     mbackend = new HttpBackend("");
 }