Esempio n. 1
0
        public override string ToString()
        {
            var builder = new System.Text.StringBuilder();

            builder.AppendFormat("{0} {{", nameof(ChatMessage)).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(CarId), CarId.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(Message), Message.ToString()).AppendLine();
            builder.AppendFormat("}}").AppendLine();
            return(builder.ToString());
        }
Esempio n. 2
0
        public override string ToString()
        {
            var builder = new System.Text.StringBuilder();

            builder.AppendFormat("{0} {{", nameof(LeaderboardEntry)).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(CarId), CarId.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(LapTime), LapTime.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(Laps), Laps.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(HasFinished), HasFinished.ToString()).AppendLine();
            builder.AppendFormat("}}").AppendLine();
            return(builder.ToString());
        }
Esempio n. 3
0
        public override string ToString()
        {
            var builder = new System.Text.StringBuilder();

            builder.AppendFormat("{0} {{", nameof(ConnectionInfo)).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(DriverName), DriverName.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(DriverGuid), DriverGuid.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(CarId), CarId.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(CarModel), CarModel.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(CarSkin), CarSkin.ToString()).AppendLine();
            builder.AppendFormat("}}").AppendLine();
            return(builder.ToString());
        }
Esempio n. 4
0
        public override string ToString()
        {
            var builder = new System.Text.StringBuilder();

            builder.AppendFormat("{0} {{", nameof(CarUpdateInfo)).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(CarId), CarId.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(Position), Position.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(Velocity), Velocity.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(Gear), Gear.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(EngineRpm), EngineRpm.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(SplinePos), SplinePos.ToString()).AppendLine();
            builder.AppendFormat("}}").AppendLine();
            return(builder.ToString());
        }
Esempio n. 5
0
        public override string ToString()
        {
            var builder = new System.Text.StringBuilder();

            builder.AppendFormat("{0} {{", nameof(ClientEventInfo)).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(CollisionType), CollisionType.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(CarId), CarId.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(OtherCarId), OtherCarId.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(Speed), Speed.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(WorldPosition), WorldPosition.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(RelativePosition), RelativePosition.ToString()).AppendLine();
            builder.AppendFormat("}}").AppendLine();
            return(builder.ToString());
        }
Esempio n. 6
0
        public override string ToString()
        {
            var builder = new System.Text.StringBuilder();

            builder.AppendFormat("{0} {{", nameof(LapCompletedInfo)).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(CarId), CarId.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(LapTime), LapTime.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(Cuts), Cuts.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(GripLevel), GripLevel.ToString()).AppendLine();
            builder.AppendFormat("    Leaderboard: ");
            for (var i = 0; i < Leaderboard.Count; i++)
            {
                LeaderboardEntry entry = Leaderboard[i];
                builder.AppendFormat("    - {0}: {1}", i, entry).AppendLine();
            }

            builder.AppendFormat("}}").AppendLine();
            return(builder.ToString());
        }
Esempio n. 7
0
        public override string ToString()
        {
            var builder = new System.Text.StringBuilder();

            builder.AppendFormat("{0} {{", nameof(Driver)).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(CarId), CarId.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(CarModel), CarModel.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(CarSkin), CarSkin.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(Name), Name.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(Team), Team.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(GUID), GUID.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(IsConnected), IsConnected.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(Position), Position.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(VelocityVector), VelocityVector.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(Speed), Speed.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(SplinePosition), SplinePosition.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(Gear), Gear.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(EngineRPM), EngineRPM.ToString()).AppendLine();
            builder.AppendFormat("}}").AppendLine();
            return(builder.ToString());
        }
Esempio n. 8
0
 public override string ToString()
 {
     return($"Plate = {CarId.ToString()} - Name = {Name} - Brand = {Brand}");
 }
Esempio n. 9
0
 public override string ToString()
 {
     return(CarId.ToString() + " - " + Brand + ", " + Model + " - " + Price + "$");
 }
Esempio n. 10
0
 public override string ToString()
 {
     return(CarId.ToString() + ' ' + OwnerId.ToString() + ' ' + Model + ' '
            + Vis.ToString() + ' ' + Colour + ' ' + Convert.ToDateTime(YearOfIssue).ToString("yyyy") + ' '
            + BodyNumber + ' ' + EngineNumber);
 }
Esempio n. 11
0
 public override string ToString()
 {
     return(WorkroomId.ToString() + ' ' + CarId.ToString() + ' ' + MechanicId.ToString()
            + ' ' + Convert.ToDateTime(ReceiptDate).ToString("dd.MM.yyyy") + Cost.ToString());
 }