19 lines
466 B
C#
19 lines
466 B
C#
using MoniteurBaie.DataModels;
|
|
|
|
namespace MoniteurBaie.DataApi.Interfaces.Repositories;
|
|
|
|
public interface IDataRepository
|
|
{
|
|
Task<DataPacket?> GetAsync(uint id);
|
|
|
|
Task<uint> CreateAsync(DataPacket packet);
|
|
|
|
IAsyncEnumerable<DataPacket> GetRangeAsync(DateTime fromInstant, DateTime toInstant);
|
|
|
|
IAsyncEnumerable<DataPacket> GetLastAsync(int count);
|
|
|
|
Task<bool> DeleteAsync(uint id);
|
|
|
|
Task BulkCreateAsync(IEnumerable<DataPacket> packets);
|
|
}
|