public static bool DeleteAllWpt(IJobMonitor jobMonitor) { FitnessDevice_GsSport device = new FitnessDevice_GsSport(); GlobalsatProtocol device2 = device.Device(); if (device2 == null) { return(false); } return(device2.DeleteAllWaypoints(jobMonitor)); }
public static bool DeleteWpt(Stream waypoints, IJobMonitor jobMonitor) { FitnessDevice_GsSport device = new FitnessDevice_GsSport(); GlobalsatProtocol device2 = device.Device(); if (device2 == null) { return(false); } return(device2.DeleteWaypoints(WaypointsPlugin.IO.ImportWaypoints.ImportStreamGpxWaypoints(waypoints), jobMonitor)); }
public static int ExportAct(IList <IActivity> activities, IJobMonitor jobMonitor) { FitnessDevice_GsSport device = new FitnessDevice_GsSport(); GlobalsatProtocol device2 = device.Device(); if (device2 == null) { return(-1); } return(device2.SendTrack(ToGlobTrack(device2, activities), jobMonitor)); }
public static int ExportRte(Stream routes, IJobMonitor jobMonitor) { FitnessDevice_GsSport device = new FitnessDevice_GsSport(); GlobalsatProtocol device2 = device.Device(); if (device2 == null) { return(-1); } return(device2.SendRoute(WaypointsPlugin.IO.ImportRoutes.ImportStreamGpxRoutes(routes), jobMonitor)); }
public static Stream ImportWpt(IJobMonitor jobMonitor) { FitnessDevice_GsSport device = new FitnessDevice_GsSport(); GlobalsatProtocol device2 = device.Device(); if (device2 == null) { return(null); } Stream result = WaypointsPlugin.IO.ExportWaypoints.ExportGpxWaypointsStream(device2.GetWaypoints(jobMonitor)); return(result); }