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(); }
public string ToJSON(bool pretty = false) { return(ToJSON(TCAPIVersion.latest(), pretty)); }
public JObject ToJObject() { return(ToJObject(TCAPIVersion.latest())); }
public String ToJSON(Boolean pretty = false) { return(ToJSON(TCAPIVersion.latest(), pretty)); }