Fix stop/restart

This commit is contained in:
2025-07-10 12:53:59 +07:00
parent 0c1184a22d
commit 14b3a3c39a
9 changed files with 164 additions and 271 deletions

View File

@@ -1,13 +1,16 @@
using MediatR;
using static Managing.Common.Enums;
namespace Managing.Application.ManageBot.Commands
{
public class ToggleIsForWatchingCommand : IRequest<string>
public class RestartBotCommand : IRequest<string>
{
public string Name { get; }
public BotType BotType { get; }
public ToggleIsForWatchingCommand(string name)
public RestartBotCommand(BotType botType, string name)
{
BotType = botType;
Name = name;
}
}

View File

@@ -1,16 +1,13 @@
using MediatR;
using static Managing.Common.Enums;
namespace Managing.Application.ManageBot.Commands
{
public class RestartBotCommand : IRequest<string>
public class ToggleIsForWatchingCommand : IRequest<string>
{
public string Name { get; }
public BotType BotType { get; }
public RestartBotCommand(BotType botType, string name)
public ToggleIsForWatchingCommand(string name)
{
BotType = botType;
Name = name;
}
}