24 lines
811 B
C#
24 lines
811 B
C#
using RobotNet.VDA5050.Type;
|
|
|
|
namespace RobotNet10.RobotApp.Services.Robot.Actions;
|
|
|
|
[RobotAction(ActionType.START_CHARGING,
|
|
[ActionScope.INSTANT, ActionScope.NODE],
|
|
[BlockingType.HARD],
|
|
"Bắt đầu quá trình sạc pin.",
|
|
"Robot đã bắt đầu sạc pin.")]
|
|
public class RobotStartChargingAction(IServiceProvider ServiceProvider) : RobotAction(ServiceProvider)
|
|
{
|
|
protected override Task StartAction()
|
|
{
|
|
SetStatus(ActionEvent.FINISHED);
|
|
ResultDescription = string.IsNullOrEmpty(ActionAttribute.ResultDescription) ? ResultDescription : ActionAttribute.ResultDescription;
|
|
return base.StartAction();
|
|
}
|
|
|
|
protected override Task ExecuteAction()
|
|
{
|
|
return base.ExecuteAction();
|
|
}
|
|
}
|