public Result(Goal goal, IActivity activity, IValueRangeSeries<DateTime> pause, double domainStart, double domainEnd, double timeStart, double timeEnd, double meterStart, double meterEnd, double elevationStart, double elevationEnd, DateTime firstDate, DateTime endDate) { this.Goal = goal; this.DomainDiff = domainEnd - domainStart; this.Activity = activity; this.pause = pause; //this.TimeStart = timeStart; //this.TimeEnd = timeEnd; this.Seconds = timeEnd - timeStart; //this.MeterStart = meterStart; //this.MeterEnd = meterEnd; this.Meters = meterEnd - meterStart; //this.ElevationStart = elevationStart; //this.ElevationEnd = elevationEnd; this.Elevations = elevationEnd - elevationStart; this.DateStart = firstDate; this.DateEnd = endDate; }
public bool ZoneOk(Goal goal) { return (goal.Image == GoalParameter.SpeedZone) || (aPulse != null && aPulse.Length > 0); }