public long WritePosition(GPSManager.GPSPositionData pos) { GPSPositionRow row = new GPSPositionRow(); row.Read(pos); pos.DBID = Write("gps_positions", row); return(pos.DBID); }
public void Assign(GPSManager.GPSPositionData pos) { pos.DBID = this.ID; pos.Latitude = System.Convert.ToDouble(this["latitude"]); pos.Longitude = System.Convert.ToDouble(this["longitude"]); pos.Bearing = System.Convert.ToDouble(this["bearing"]); pos.Speed = System.Convert.ToDouble(this["speed"]); pos.HDOP = System.Convert.ToDouble(this["hdop"]); pos.VDOP = System.Convert.ToDouble(this["vdop"]); pos.PDOP = System.Convert.ToDouble(this["pdop"]); pos.Timestamp = (long)this["timestamp"]; }
public void Read(GPSManager.GPSPositionData pos) { ID = pos.DBID; AddField("latitude", pos.Latitude); AddField("longitude", pos.Longitude); AddField("hdop", pos.HDOP); AddField("vdop", pos.VDOP); AddField("pdop", pos.PDOP); AddField("bearing", pos.Bearing); AddField("speed", pos.Speed); AddField("timestamp", pos.Timestamp); }