19 lines
486 B
C#
19 lines
486 B
C#
namespace RobotNet10.FleetManager.Shared.DTOs.RobotModel;
|
|
|
|
/// <summary>
|
|
/// Robot model usage information DTO
|
|
/// </summary>
|
|
public class RobotModelUsageInfoDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
|
|
public string ModelName { get; set; } = string.Empty;
|
|
|
|
public int RobotCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// Indicates whether this model can be deleted (no robots using it)
|
|
/// </summary>
|
|
public bool CanDelete => RobotCount == 0;
|
|
}
|