public byte[] GetExportData(TWISAAPICredentials Credentials, string QueryCode, string Format, TWISAAPIParamValue[] Params, string Options) { object[] results = this.Invoke("GetExportData", new object[] { Credentials, QueryCode, Format, Params, Options }); return((byte[])(results[0])); }
public byte[] GetCSVData(TWISAAPICredentials Credentials, string QueryCode, TWISAAPIParamValue[] Params, bool Header, string Separator, string Options) { object[] results = this.Invoke("GetCSVData", new object[] { Credentials, QueryCode, Params, Header, Separator, Options }); return((byte[])(results[0])); }
/// <remarks/> public void GetXMLDataAsync(TWISAAPICredentials Credentials, string QueryCode, TWISAAPIParamValue[] Params, int XMLFormat, string Options, object userState) { if ((this.GetXMLDataOperationCompleted == null)) { this.GetXMLDataOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetXMLDataOperationCompleted); } this.InvokeAsync("GetXMLData", new object[] { Credentials, QueryCode, Params, XMLFormat, Options }, this.GetXMLDataOperationCompleted, userState); }
public static void Init(string url, int port, string accountName, string password, string database, ILog log = null) { Log = log; credentials = new WISA.TWISAAPICredentials(); credentials.Username = accountName; credentials.Password = password; credentials.Database = database; service = new WISA.WisaAPIServiceService(); try { service.Url = "http://" + url + ":" + port.ToString() + "/SOAP/"; } catch (Exception e) { Log?.AddError(Origin.Wisa, e.Message); } }
/// <remarks/> public void GetXMLDataAsync(TWISAAPICredentials Credentials, string QueryCode, TWISAAPIParamValue[] Params, int XMLFormat, string Options) { this.GetXMLDataAsync(Credentials, QueryCode, Params, XMLFormat, Options, null); }
/// <remarks/> public void GetCSVDataAsync(TWISAAPICredentials Credentials, string QueryCode, TWISAAPIParamValue[] Params, bool Header, string Separator, string Options) { this.GetCSVDataAsync(Credentials, QueryCode, Params, Header, Separator, Options, null); }
/// <remarks/> public void GetExportDataAsync(TWISAAPICredentials Credentials, string QueryCode, string Format, TWISAAPIParamValue[] Params, string Options) { this.GetExportDataAsync(Credentials, QueryCode, Format, Params, Options, null); }