CreateOrUpdateChargingPileCommand.cs
1.28 KB
using Rcs.Application.MessageBus.Commands;
namespace Rcs.Application.MessageBus.Commands.ChargingPile
{
/// <summary>
/// Create or update charging pile command.
/// </summary>
public class CreateOrUpdateChargingPileCommand : MessageBase
{
public string? PileId { get; set; }
public string PileCode { get; set; } = string.Empty;
public string PileName { get; set; } = string.Empty;
public string IpAddress { get; set; } = string.Empty;
public int Port { get; set; }
public int MinChargingMinutes { get; set; } = 10;
public decimal FullChargeThreshold { get; set; } = 90m;
public List<string> SupportedRobotModels { get; set; } = new();
public List<string> BoundRobotIds { get; set; } = new();
public string? CurrentChargingRobotId { get; set; }
public string? MapNodeId { get; set; }
public decimal AutoStartThreshold { get; set; } = 30m;
public decimal ResumeThreshold { get; set; } = 60m;
public int MaxChargingMinutes { get; set; } = 120;
public int QueueTimeoutMinutes { get; set; } = 30;
public int Priority { get; set; } = 100;
public bool AllowTaskInterrupt { get; set; } = true;
public bool IsActive { get; set; } = true;
}
}