namespace ClaudeDo.Ui.Services;

public sealed class WorkerPrimeScheduleApi : IPrimeScheduleApi
{
    private readonly IWorkerClient _client;
    public WorkerPrimeScheduleApi(IWorkerClient client) => _client = client;
    public Task<List<PrimeScheduleDto>> ListAsync() => _client.GetPrimeSchedulesAsync();
    public Task<PrimeScheduleDto?> UpsertAsync(PrimeScheduleDto dto) => _client.UpsertPrimeScheduleAsync(dto);
    public Task DeleteAsync(Guid id) => _client.DeletePrimeScheduleAsync(id);
}
