Files
ersatztv/ErsatzTV.Core/Interfaces/Repositories/IChannelRepository.cs
T
timothyandtimothy 65c0e09179
Build ErsatzTV Image / API docs in sync (OpenAPI + endpoint index) (push) Has been skipped
Build ErsatzTV Image / Formatting (changed .cs conform to .editorconfig) (push) Has been skipped
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (push) Successful in 15m30s
Build ErsatzTV Image / Functional E2E (curl contracts) (push) Successful in 15m48s
Build ErsatzTV Image / Build & test (.NET) (push) Successful in 7m32s
Build ErsatzTV Image / Build & push image (amd64) (push) Has been cancelled
feat(415): per-channel fault detection — server-derived health object + Problems filter (#581)
Closes #415. Server-derived health object on the channel list + detail DTOs (built-timeline detection, kind-agnostic across all 5 PlayoutScheduleKind; assessable gate keyed to the owning channel's mode), single "Problems" SPA filter with per-fault badges. Supersedes #72's api.channel-health-signal decision.

Co-authored-by: Timothy <timothy.look@gmail.com>
Co-committed-by: Timothy <timothy.look@gmail.com>
2026-07-23 20:45:19 +00:00

18 lines
576 B
C#

using ErsatzTV.Core.Api.Channels;
using ErsatzTV.Core.Domain;
namespace ErsatzTV.Core.Interfaces.Repositories;
public interface IChannelRepository
{
Task<Option<Channel>> GetChannel(int id);
Task<Option<Channel>> GetByNumber(string number);
Task<List<Channel>> GetAll(CancellationToken cancellationToken);
Task<Option<ChannelWatermark>> GetWatermarkByName(string name);
Task<Dictionary<int, PlayoutUpcoming>> GetPlayoutUpcomingHealth(
IReadOnlyCollection<int> playoutIds,
DateTime nowUtc,
CancellationToken cancellationToken);
}