mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 08:26:30 +00:00
12 lines
476 B
C#
12 lines
476 B
C#
namespace Azaion.Common.Database;
|
|
|
|
public interface IAnnotationRepository
|
|
{
|
|
Task<List<Annotation>> GetByMediaHashAsync(string hash, CancellationToken ct = default);
|
|
Task<Annotation?> GetByNameAsync(string name, CancellationToken ct = default);
|
|
Task<List<Annotation>> GetAllAsync(CancellationToken ct = default);
|
|
Task SaveAsync(Annotation annotation, CancellationToken ct = default);
|
|
Task DeleteAsync(List<string> names, CancellationToken ct = default);
|
|
}
|
|
|