Exemplo n.º 1
0
        public override string ToString()
        {
            var builder = new StringBuilder();

            builder.AppendFormat("\nid: {0}\n", Id);
            builder.AppendFormat("startDate: {0}\n", StartDate ?? string.Empty);
            builder.AppendFormat("startDateLocal: {0}\n", StartDateLocal ?? string.Empty);
            builder.AppendFormat("timeZoneOffset: {0}\n", TimeZoneOffset);
            builder.AppendFormat("elapsedTime: {0}\n", ElapsedTime);
            builder.AppendFormat("movingTime: {0}\n", MovingTime);
            builder.AppendFormat("distance: {0}\n", Distance);
            builder.AppendFormat("averageSpeed: {0}\n", AverageSpeed);
            builder.AppendFormat("averageWatts: {0}\n", AverageWatts);
            builder.AppendFormat("maximumSpeed: {0}\n", MaximumSpeed);
            builder.AppendFormat("elevationGain: {0}\n", ElevationGain);
            builder.AppendFormat("segment: [{0}]\n", Segment != null ? Segment.ToString() : string.Empty);
            builder.AppendFormat("athlete: [{0}]\n", Athlete != null ? Athlete.ToString() : string.Empty);
            builder.AppendFormat("ride: [{0}]\n", Ride != null ? Ride.ToString() : string.Empty);

            return(builder.ToString());
        }