示例#1
0
 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));
 }
示例#2
0
 /// <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);
 }
示例#3
0
 /// <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);
 }
示例#4
0
 /// <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]));
 }
示例#5
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));
 }
示例#6
0
    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]));
    }