36 lines
1.0 KiB
C#
Raw Normal View History

2025-04-25 14:35:59 +08:00
using JiShe.CollectBus.Protocol.Interfaces;
2025-04-24 19:31:28 +08:00
using Microsoft.Extensions.Logging;
2025-04-27 09:16:37 +08:00
namespace JiShe.CollectBus.Protocol.T37612012.Appendix
2025-04-24 19:31:28 +08:00
{
/// <summary>
/// 第一套第 2 日时段表数据
/// </summary>
public class Appendix_02800002 : IAnalysisStrategy<List<string>, List<string>>
{
private readonly ILogger<Appendix_02800002> _logger;
public Appendix_02800002(ILogger<Appendix_02800002> logger)
{
_logger = logger;
}
public Task<List<string>> ExecuteAsync(List<string> data)
{
try
{
if (data.Count != 2)
return null;
var value = string.Join(".", data);
var values= new List<string>() { "电网频率", "10_97", "1", value };
return Task.FromResult(values);
}
catch (Exception ex)
{
_logger.LogError(ex, $"Appendix_02800002解析失败:{ex.Message}");
return null;
}
}
}
}