|  |  | 1 |  | using LGDXRobotCloud.Data.Models.DTOs.V1.Responses; | 
|  |  | 2 |  |  | 
|  |  | 3 |  | namespace LGDXRobotCloud.Data.Models.Business.Navigation; | 
|  |  | 4 |  |  | 
|  |  | 5 |  | public record RobotChassisInfoBusinessModel | 
|  |  | 6 |  | { | 
|  | 2 | 7 |  |   public int Id { get; set; } | 
|  |  | 8 |  |  | 
|  | 5 | 9 |  |   public required int RobotTypeId { get; set; } | 
|  |  | 10 |  |  | 
|  | 5 | 11 |  |   public required double ChassisLengthX { get; set; } | 
|  |  | 12 |  |  | 
|  | 5 | 13 |  |   public required double ChassisLengthY { get; set; } | 
|  |  | 14 |  |  | 
|  | 5 | 15 |  |   public required int ChassisWheelCount { get; set; } | 
|  |  | 16 |  |  | 
|  | 5 | 17 |  |   public required double ChassisWheelRadius { get; set; } | 
|  |  | 18 |  |  | 
|  | 5 | 19 |  |   public required int BatteryCount { get; set; } | 
|  |  | 20 |  |  | 
|  | 5 | 21 |  |   public required double BatteryMaxVoltage { get; set; } | 
|  |  | 22 |  |  | 
|  | 5 | 23 |  |   public required double BatteryMinVoltage { get; set; } | 
|  |  | 24 |  | } | 
|  |  | 25 |  |  | 
|  |  | 26 |  | public static class RobotChassisInfoBusinessModelExtensions | 
|  |  | 27 |  | { | 
|  |  | 28 |  |   public static RobotChassisInfoDto ToDto(this RobotChassisInfoBusinessModel robotChassisInfo) | 
|  |  | 29 |  |   { | 
|  |  | 30 |  |     return new RobotChassisInfoDto { | 
|  |  | 31 |  |       Id = robotChassisInfo.Id, | 
|  |  | 32 |  |       RobotTypeId = robotChassisInfo.RobotTypeId, | 
|  |  | 33 |  |       ChassisLengthX = robotChassisInfo.ChassisLengthX, | 
|  |  | 34 |  |       ChassisLengthY = robotChassisInfo.ChassisLengthY, | 
|  |  | 35 |  |       ChassisWheelCount = robotChassisInfo.ChassisWheelCount, | 
|  |  | 36 |  |       ChassisWheelRadius = robotChassisInfo.ChassisWheelRadius, | 
|  |  | 37 |  |       BatteryCount = robotChassisInfo.BatteryCount, | 
|  |  | 38 |  |       BatteryMaxVoltage = robotChassisInfo.BatteryMaxVoltage, | 
|  |  | 39 |  |       BatteryMinVoltage = robotChassisInfo.BatteryMinVoltage, | 
|  |  | 40 |  |     }; | 
|  |  | 41 |  |   } | 
|  |  | 42 |  | } |