using Lumi.Companion.Abstractions;

namespace Lumi.Companion.SongOverlay;

internal sealed class SongOverlayTransport(ICompanionPluginTransport host)
{
    public Uri? BaseUri => host.LumiBaseUri;

    public bool IsConfigured => host.IsAuthenticated;

    public Task<CompanionPluginHttpResponse> SendJsonAsync(
        string relativePath,
        object payload,
        CancellationToken cancellationToken = default) =>
        host.PostJsonAsync(relativePath, payload, cancellationToken);
}
