Add nsi list export

This commit is contained in:
2025-09-16 16:50:35 +09:00
parent 052cf0d34c
commit f53aa99874
5 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,29 @@
using Hcs.Client.Internal;
using Hcs.Service.Async.NsiCommon;
using System.Threading;
using System.Threading.Tasks;
namespace Hcs.Client.Api.Request.NsiCommon
{
internal class ExportNsiListRequest(ClientBase client) : NsiCommonRequestBase(client)
{
internal async Task<NsiListType> ExecuteAsync(ListGroup listGroup, CancellationToken token)
{
// http://open-gkh.ru/NsiCommon/exportNsiListRequest.html
var request = new exportNsiListRequest
{
Id = Constants.SIGNED_XML_ELEMENT_ID,
version = "10.0.1.2",
ListGroup = listGroup
};
var result = await SendAndWaitResultAsync(request, async asyncClient =>
{
var response = await asyncClient.exportNsiListAsync(CreateRequestHeader(), request);
return response.AckRequest.Ack;
}, token);
return result.Item as NsiListType;
}
}
}