namespace ClaudeDo.Ui.Services;

public interface IPrimeScheduleApi
{
    Task<List<PrimeScheduleDto>> ListAsync();
    Task<PrimeScheduleDto?> UpsertAsync(PrimeScheduleDto dto);
    Task DeleteAsync(Guid id);
}

public sealed class WorkerPrimeScheduleApi : IPrimeScheduleApi
{
    private readonly WorkerClient _client;
    public WorkerPrimeScheduleApi(WorkerClient 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);
}
