31 lines
1.0 KiB
C#
31 lines
1.0 KiB
C#
using JiShe.CollectBus.Protocol.Interfaces;
|
|
using Microsoft.Extensions.Logging;
|
|
using TouchSocket.Core;
|
|
|
|
namespace JiShe.CollectBus.Protocol.T37612012.Appendix
|
|
{
|
|
/// <summary>
|
|
/// 费率数 k≤63
|
|
/// </summary>
|
|
public class Appendix_04000204 : IAnalysisStrategy<List<string>>
|
|
{
|
|
private readonly ILogger<Appendix_04000204> _logger;
|
|
private readonly AnalysisStrategyContext _analysisStrategyContext;
|
|
|
|
public Appendix_04000204(ILogger<Appendix_04000204> logger, AnalysisStrategyContext analysisStrategyContext)
|
|
{
|
|
_logger = logger;
|
|
_analysisStrategyContext = analysisStrategyContext;
|
|
}
|
|
|
|
public async Task<bool> ExecuteAsync(List<string> data, Action<dynamic>? result = null)
|
|
{
|
|
return await _analysisStrategyContext.ExecuteAsync<List<string>>(nameof(Appendix_04000201), data, (values) =>
|
|
{
|
|
values[0] = "费率数";
|
|
result?.Invoke(values);
|
|
});
|
|
}
|
|
}
|
|
}
|