using Hcs.Client.Api.Request;
using Hcs.Client.Api.Request.Adapter;
using Hcs.Service.Async.Bills;
using System.Threading.Tasks;

namespace Hcs.Service.Async.Bills
{
#pragma warning disable IDE1006
    public partial class getStateResult : IGetStateResultMany { }
#pragma warning restore IDE1006

    public partial class BillsPortsTypeAsyncClient : IAsyncClient<RequestHeader>
    {
        public async Task<IGetStateResponse> GetStateAsync(RequestHeader header, IGetStateRequest request)
        {
            return await getStateAsync(header, (getStateRequest)request);
        }
    }

#pragma warning disable IDE1006
    public partial class getStateResponse : IGetStateResponse
#pragma warning restore IDE1006
    {
        public IGetStateResult GetStateResult => getStateResult;
    }

    public partial class AckRequestAck : IAck { }

    public partial class ErrorMessageType : IErrorMessage { }

#pragma warning disable IDE1006
    public partial class getStateRequest : IGetStateRequest { }
#pragma warning restore IDE1006
}

namespace Hcs.Client.Api.Request.Bills
{
    internal class BillsRequestBase(ClientBase client) :
        RequestBase<getStateResult,
            BillsPortsTypeAsyncClient,
            BillsPortsTypeAsync,
            RequestHeader,
            AckRequestAck,
            ErrorMessageType,
            getStateRequest>(client)
    {
        protected override EndPoint EndPoint => EndPoint.BillsAsync;

        protected override bool EnableMinimalResponseWaitDelay => false;

        protected override bool CanBeRestarted => false;

        protected override int RestartTimeoutMinutes => 20;
    }
}
