예제 #1
0
파일: Ride.cs 프로젝트: hnaess/Stravan
        public override string ToString()
        {
            var builder = new StringBuilder();

            builder.AppendFormat("\nid: {0}\n", Id);
            builder.AppendFormat("name: {0}\n", Name ?? string.Empty);
            builder.AppendFormat("athlete: [{0}]\n", Athlete != null ? Athlete.ToString() : string.Empty);
            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("location: {0}\n", Location ?? string.Empty);
            builder.AppendFormat("description: {0}\n", Description ?? string.Empty);
            builder.AppendFormat("bike: [{0}]\n", Bike != null ? Bike.ToString() : string.Empty);
            builder.AppendFormat("commute: {0}\n", IsCommute);
            builder.AppendFormat("trainer: {0}\n", IsTrainer);

            return(builder.ToString());
        }
예제 #2
0
        public override string ToString()
        {
            var builder = new StringBuilder();

            builder.AppendFormat("\ntoken: {0}\n", Token ?? string.Empty);
            builder.AppendFormat("athlete: {0}\n", Athlete != null ? Athlete.ToString() : string.Empty);
            builder.AppendFormat("error: {0}\n", Error ?? string.Empty);

            return(builder.ToString());
        }
예제 #3
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());
        }