예제 #1
0
        public RemoteLRSAsync(string endpoint, string username, string password)
        {
            this.endpoint = endpoint;

            // endpoint should have trailing /
            if (this.endpoint[this.endpoint.Length - 1] != '/')
            {
                this.endpoint += "/";
            }

            this.version = TCAPIVersion.latest();
            this.auth    = "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(username + ":" + password));

            ClearState();
        }
예제 #2
0
 public string ToJSON(bool pretty = false)
 {
     return(ToJSON(TCAPIVersion.latest(), pretty));
 }
예제 #3
0
 public JObject ToJObject()
 {
     return(ToJObject(TCAPIVersion.latest()));
 }
예제 #4
0
 public String ToJSON(Boolean pretty = false)
 {
     return(ToJSON(TCAPIVersion.latest(), pretty));
 }