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 AddAsync();
|
|
|
|
|
|
|
2025-04-21 23:47:11 +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
|
|
|
|
|
2025-04-21 23:47:11 +08:00
|
|
|
|
TB3761? Analysis3761(string messageReceived);
|
2024-12-19 16:07:07 +08:00
|
|
|
|
|
2025-04-21 23:47:11 +08:00
|
|
|
|
//Task LoginAsync(MessageReceivedLogin messageReceived);
|
|
|
|
|
|
|
|
|
|
|
|
//Task HeartbeatAsync(MessageReceivedHeartbeat messageReceived);
|
2024-12-19 16:07:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|