14 lines
657 B
C#
14 lines
657 B
C#
using Nexus.Api.Data;
|
|
|
|
namespace Nexus.Api.Repositories;
|
|
|
|
public interface IActivityRepository
|
|
{
|
|
Task<List<ActivityEvent>> GetRecentAsync(int take, CancellationToken ct = default);
|
|
Task<List<ActivityEvent>> GetRecentForTasksAsync(IEnumerable<Guid> taskIds, CancellationToken ct = default);
|
|
Task<(List<ActivityEvent> Items, int TotalCount)> GetPagedAsync(
|
|
string? type, string? sort, int page, int pageSize, CancellationToken ct = default);
|
|
Task<List<ActivityEvent>> GetByAgentAsync(string agentId, int take, CancellationToken ct = default);
|
|
Task<ActivityEvent> AddAsync(ActivityEvent activity, CancellationToken ct = default);
|
|
}
|