RobotApp/RobotApp.Common.Shares/Dtos/RobotVDA5050ConfigDto.cs
Đăng Nguyễn 8736bad3e7 update
2025-11-06 14:14:10 +07:00

75 lines
2.7 KiB
C#

using System.ComponentModel.DataAnnotations;
namespace RobotApp.Common.Shares.Dtos;
#nullable disable
public record RobotVDA5050ConfigDto
{
public Guid Id { get; set; }
[Required]
public string SerialNumber { get; set; }
[Required]
public string VDA5050HostServer { get; set; }
[Required]
[Range(1, 65535, ErrorMessage = "Value must be from 1 to 65535")]
public int VDA5050Port { get; set; }
public string VDA5050UserName { get; set; }
public string VDA5050Password { get; set; }
public string VDA5050Manufacturer { get; set; }
public string VDA5050Version { get; set; }
public string VDA5050TopicPrefix { get; set; }
[Range(1, 65535, ErrorMessage = "Value must be from 1 to 65535")]
public int VDA5050PublishRepeat { get; set; }
public bool VDA5050EnablePassword { get; set; }
public bool VDA5050EnableTls { get; set; }
public string VDA5050CA { get; set; }
public string VDA5050Cer { get; set; }
public string VDA5050Key { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public bool IsActive { get; set; }
[Required]
public string ConfigName { get; set; }
public string Description { get; set; }
}
public record UpdateRobotVDA5050ConfigDto
{
public string SerialNumber { get; set; }
public string VDA5050HostServer { get; set; }
public int VDA5050Port { get; set; }
public string VDA5050UserName { get; set; }
public string VDA5050Password { get; set; }
public string VDA5050Manufacturer { get; set; }
public string VDA5050Version { get; set; }
public string VDA5050TopicPrefix { get; set; }
public int VDA5050PublishRepeat { get; set; }
public bool VDA5050EnablePassword { get; set; }
public bool VDA5050EnableTls { get; set; }
public string VDA5050CA { get; set; }
public string VDA5050Cer { get; set; }
public string VDA5050Key { get; set; }
public string Description { get; set; }
}
public record CreateRobotVDA5050ConfigDto
{
public string SerialNumber { get; set; }
public string VDA5050HostServer { get; set; }
public int VDA5050Port { get; set; }
public string VDA5050UserName { get; set; }
public string VDA5050Password { get; set; }
public string VDA5050Manufacturer { get; set; }
public string VDA5050Version { get; set; }
public string VDA5050TopicPrefix { get; set; }
public int VDA5050PublishRepeat { get; set; }
public bool VDA5050EnablePassword { get; set; }
public bool VDA5050EnableTls { get; set; }
public string VDA5050CA { get; set; }
public string VDA5050Cer { get; set; }
public string VDA5050Key { get; set; }
public string ConfigName { get; set; }
public string Description { get; set; }
}