22 lines
786 B
C#
22 lines
786 B
C#
using RobotNet10.FleetManager.Data;
|
|
using RobotNet10.FleetManager.Shared.DTOs.Robot;
|
|
|
|
namespace RobotNet10.FleetManager.Services;
|
|
|
|
/// <summary>
|
|
/// Service for managing robots
|
|
/// </summary>
|
|
public interface IRobotService
|
|
{
|
|
Task<Robot> CreateAsync(CreateRobotRequest request);
|
|
Task<List<Robot>> GetAllAsync(Guid? modelId = null, Guid? mapId = null);
|
|
Task<Robot?> GetByIdAsync(Guid id);
|
|
Task<Robot?> GetByRobotIdAsync(string robotId);
|
|
Task<Robot> UpdateAsync(Guid id, UpdateRobotRequest request);
|
|
Task<bool> DeleteAsync(Guid id);
|
|
Task<List<Robot>> GetByModelIdAsync(Guid modelId);
|
|
Task<List<Robot>> GetByModelNameAsync(string modelName);
|
|
Task<List<Robot>> SearchAsync(string query);
|
|
Task<bool> ExistsAsync(string robotId);
|
|
}
|