|  |  | 1 |  | using LGDXRobotCloud.Data.Models.DTOs.V1.Responses; | 
|  |  | 2 |  |  | 
|  |  | 3 |  | namespace LGDXRobotCloud.Data.Models.Business.Administration; | 
|  |  | 4 |  |  | 
|  |  | 5 |  | public record RobotCertificateBusinessModel | 
|  |  | 6 |  | { | 
|  | 17 | 7 |  |   public required Guid Id { get; set; } | 
|  |  | 8 |  |  | 
|  | 17 | 9 |  |   public required Guid RobotId { get; set; } | 
|  |  | 10 |  |  | 
|  | 17 | 11 |  |   public required string RobotName { get; set; } | 
|  |  | 12 |  |  | 
|  | 18 | 13 |  |   public required string Thumbprint { get; set; } | 
|  |  | 14 |  |  | 
|  | 18 | 15 |  |   public string? ThumbprintBackup { get; set; } | 
|  |  | 16 |  |  | 
|  | 18 | 17 |  |   public required DateTime NotBefore { get; set; } | 
|  |  | 18 |  |  | 
|  | 18 | 19 |  |   public required DateTime NotAfter { get; set; } | 
|  |  | 20 |  | } | 
|  |  | 21 |  |  | 
|  |  | 22 |  | public static class RobotCertificateBusinessModelExtensions | 
|  |  | 23 |  | { | 
|  |  | 24 |  |   public static RobotCertificateDto ToDto(this RobotCertificateBusinessModel robotCertificate) | 
|  |  | 25 |  |   { | 
|  |  | 26 |  |     return new RobotCertificateDto{ | 
|  |  | 27 |  |       Id = robotCertificate.Id, | 
|  |  | 28 |  |       Robot = new RobotSearchDto { | 
|  |  | 29 |  |         Id = robotCertificate.RobotId, | 
|  |  | 30 |  |         Name = robotCertificate.RobotName | 
|  |  | 31 |  |       }, | 
|  |  | 32 |  |       Thumbprint = robotCertificate.Thumbprint, | 
|  |  | 33 |  |       ThumbprintBackup = robotCertificate.ThumbprintBackup, | 
|  |  | 34 |  |       NotBefore = robotCertificate.NotBefore, | 
|  |  | 35 |  |       NotAfter = robotCertificate.NotAfter | 
|  |  | 36 |  |     }; | 
|  |  | 37 |  |   } | 
|  |  | 38 |  | } |