|  |  | 1 |  | using LGDXRobotCloud.Data.Models.DTOs.V1.Responses; | 
|  |  | 2 |  |  | 
|  |  | 3 |  | namespace LGDXRobotCloud.Data.Models.Business.Administration; | 
|  |  | 4 |  |  | 
|  |  | 5 |  | public record RobotCertificateRenewBusinessModel | 
|  |  | 6 |  | { | 
|  |  | 7 |  |   public required Guid RobotId { get; set; } | 
|  |  | 8 |  |  | 
|  |  | 9 |  |   public required string RobotName { get; set; } | 
|  |  | 10 |  |  | 
|  |  | 11 |  |   public required string RootCertificate { get; set; } | 
|  |  | 12 |  |  | 
|  |  | 13 |  |   public required string RobotCertificatePrivateKey { get; set; } | 
|  |  | 14 |  |  | 
|  |  | 15 |  |   public required string RobotCertificatePublicKey { get; set; } | 
|  |  | 16 |  | } | 
|  |  | 17 |  |  | 
|  |  | 18 |  | public static class RobotCertificateRenewBusinessModelExtensions | 
|  |  | 19 |  | { | 
|  |  | 20 |  |   public static RobotCertificateIssueDto ToDto(this RobotCertificateRenewBusinessModel robotCertificateIssue) | 
|  | 0 | 21 |  |   { | 
|  | 0 | 22 |  |     return new RobotCertificateIssueDto{ | 
|  | 0 | 23 |  |       Robot = new RobotSearchDto { | 
|  | 0 | 24 |  |         Id = robotCertificateIssue.RobotId, | 
|  | 0 | 25 |  |         Name = robotCertificateIssue.RobotName | 
|  | 0 | 26 |  |       }, | 
|  | 0 | 27 |  |       RootCertificate = robotCertificateIssue.RootCertificate, | 
|  | 0 | 28 |  |       RobotCertificatePrivateKey = robotCertificateIssue.RobotCertificatePrivateKey, | 
|  | 0 | 29 |  |       RobotCertificatePublicKey = robotCertificateIssue.RobotCertificatePublicKey | 
|  | 0 | 30 |  |     }; | 
|  | 0 | 31 |  |   } | 
|  |  | 32 |  | } |