24 lines
807 B
C#
24 lines
807 B
C#
using RobotNet.VDA5050.Type;
|
|
|
|
namespace RobotNet10.RobotApp.Services.Robot.Actions;
|
|
|
|
[RobotAction(ActionType.STOP_CHARGING,
|
|
[ActionScope.INSTANT, ActionScope.NODE],
|
|
[BlockingType.HARD],
|
|
"Kết thúc quá trình sạc pin.",
|
|
"Robot đã kết thúc sạc pin.")]
|
|
public class RobotStopChargingAction(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();
|
|
}
|
|
}
|