| | | 1 | | using LGDXRobotCloud.Data.Models.DTOs.V1.Responses; |
| | | 2 | | |
| | | 3 | | namespace LGDXRobotCloud.Data.Models.Business.Navigation; |
| | | 4 | | |
| | | 5 | | public record RobotCreateResponseBusinessModel |
| | | 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 RobotCreateResponseBusinessModelExtensions |
| | | 19 | | { |
| | | 20 | | public static RobotCertificateIssueDto ToDto(this RobotCreateResponseBusinessModel model) |
| | 0 | 21 | | { |
| | 0 | 22 | | return new RobotCertificateIssueDto { |
| | 0 | 23 | | Robot = new RobotSearchDto { |
| | 0 | 24 | | Id = model.RobotId, |
| | 0 | 25 | | Name = model.RobotName |
| | 0 | 26 | | }, |
| | 0 | 27 | | RootCertificate = model.RootCertificate, |
| | 0 | 28 | | RobotCertificatePrivateKey = model.RobotCertificatePrivateKey, |
| | 0 | 29 | | RobotCertificatePublicKey = model.RobotCertificatePublicKey |
| | 0 | 30 | | }; |
| | 0 | 31 | | } |
| | | 32 | | } |