public static DateTime?ToDateTime(this TWEBTimeStamp etaTime) { return(etaTime == null || etaTime.Year < DateTime.Now.Year ? (DateTime?)null : new DateTime( etaTime.Year, etaTime.Month, etaTime.Day, etaTime.Hour, etaTime.Minute, etaTime.Second)); }
/// <remarks/> public void GetWEBDriverGPSAsync(string Login, string Password, string DriverID, double Lon, double Lat, TWEBTimeStamp LastGPSUpdate, object userState) { if ((this.GetWEBDriverGPSOperationCompleted == null)) { this.GetWEBDriverGPSOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetWEBDriverGPSOperationCompleted); } this.InvokeAsync("GetWEBDriverGPS", new object[] { Login, Password, DriverID, Lon, Lat, LastGPSUpdate }, this.GetWEBDriverGPSOperationCompleted, userState); }
/// <remarks/> public void GetWEBDriverGPSAsync(string Login, string Password, string DriverID, double Lon, double Lat, TWEBTimeStamp LastGPSUpdate) { this.GetWEBDriverGPSAsync(Login, Password, DriverID, Lon, Lat, LastGPSUpdate, null); }
/// <remarks/> public TWEBTimeStamp EndGetWEBDriverGPS(System.IAsyncResult asyncResult, out double Lon, out double Lat, out TWEBTimeStamp LastGPSUpdate) { object[] results = this.EndInvoke(asyncResult); Lon = ((double)(results[1])); Lat = ((double)(results[2])); LastGPSUpdate = ((TWEBTimeStamp)(results[3])); return((TWEBTimeStamp)(results[0])); }
/// <remarks/> public System.IAsyncResult BeginGetWEBDriverGPS(string Login, string Password, string DriverID, double Lon, double Lat, TWEBTimeStamp LastGPSUpdate, System.AsyncCallback callback, object asyncState) { return(this.BeginInvoke("GetWEBDriverGPS", new object[] { Login, Password, DriverID, Lon, Lat, LastGPSUpdate }, callback, asyncState)); }
public TWEBTimeStamp GetWEBDriverGPS(string Login, string Password, string DriverID, ref double Lon, ref double Lat, ref TWEBTimeStamp LastGPSUpdate) { object[] results = this.Invoke("GetWEBDriverGPS", new object[] { Login, Password, DriverID, Lon, Lat, LastGPSUpdate }); Lon = ((double)(results[1])); Lat = ((double)(results[2])); LastGPSUpdate = ((TWEBTimeStamp)(results[3])); return((TWEBTimeStamp)(results[0])); }