first commit

This commit is contained in:
Dhananjaya99
2026-09-28 11:44:26 +05:30
parent 721743ae6b
commit bffc9b1686
424 changed files with 46474 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
using Fitness_core_BE.Models;
namespace Fitness_core_BE.Interfaces
{
public interface IDeviceCommandRepo
{
Task<DeviceCommand> AddAsync(DeviceCommand command);
Task<List<DeviceCommand>> GetPendingByClientAsync(Guid clientId);
Task<DeviceCommand?> GetByIdAsync(Guid commandId);
Task<bool> IsQueuedAsync(
Guid bindingId,
string commandType,
int desiredVersion,
CancellationToken ct = default);
Task<List<DeviceCommand>> GetPendingStateCommandsAsync(
Guid bindingId,
CancellationToken ct = default);
Task<List<DeviceCommand>> GetPendingFacePhotoCommandsAsync(
Guid bindingId,
CancellationToken ct = default);
Task<List<DeviceCommand>> GetExhaustedLeasesAsync(
Guid clientId,
DateTime now,
CancellationToken ct = default);
Task<List<DeviceCommand>> GetLeaseableCommandsAsync(
Guid clientId,
Guid agentId,
DateTime now,
int take,
CancellationToken ct = default);
Task<DeviceCommand?> GetForAgentResultAsync(
Guid commandId,
CancellationToken ct = default);
Task UpdateStatusAsync(DeviceCommand command, string status, string? resultJson = null, DateTime? processedAt = null);
}
}