14 lines
396 B
C#
14 lines
396 B
C#
using Fitness_core_BE.Models;
|
|
|
|
namespace Fitness_core_BE.Interfaces
|
|
{
|
|
public interface IAgentRepo
|
|
{
|
|
Task<Agent> AddAsync(Agent agent);
|
|
Task<Agent?> GetByApiKeyHashAsync(string apiKeyHash);
|
|
Task<Agent?> GetByIdAsync(Guid agentId);
|
|
Task<List<Agent>> GetByClientIdAsync(Guid clientId);
|
|
Task UpdateLastSeenAsync(Guid agentId, DateTime seenAt);
|
|
}
|
|
}
|