32 lines
933 B
C#
Raw Normal View History

2024-12-19 16:07:07 +08:00
using System;
using System.Threading.Tasks;
using JiShe.CollectBus.Common.Models;
2025-03-14 14:28:04 +08:00
using JiShe.CollectBus.IotSystems.MessageReceiveds;
using JiShe.CollectBus.IotSystems.Protocols;
2024-12-19 16:07:07 +08:00
using JiShe.CollectBus.Protocol.Contracts.Models;
using TouchSocket.Sockets;
namespace JiShe.CollectBus.Protocol.Contracts.Interfaces
{
public interface IProtocolPlugin
{
Task<ProtocolInfo> GetAsync();
Task LoadAsync();
2024-12-19 16:07:07 +08:00
Task<T> AnalyzeAsync<T>(ITcpSessionClient client, string messageReceived, Action<T>? sendAction = null) where T : class;
2024-12-19 16:07:07 +08:00
TB3761? Analysis3761(string messageReceived);
2024-12-19 16:07:07 +08:00
2025-04-23 17:49:13 +08:00
/// <summary>
/// 组装透明转发报文
/// </summary>
/// <returns></returns>
List<string> GenerateAFN10HContent<T>(T entity);
//Task LoginAsync(MessageReceivedLogin messageReceived);
//Task HeartbeatAsync(MessageReceivedHeartbeat messageReceived);
2024-12-19 16:07:07 +08:00
}
}