24 lines
690 B
C#
24 lines
690 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using JiShe.CollectBus.Common.Models;
|
|
using JiShe.CollectBus.IotSystems.MessageReceiveds;
|
|
using JiShe.CollectBus.IotSystems.Protocols;
|
|
using JiShe.CollectBus.Protocol.Contracts.Models;
|
|
using TouchSocket.Sockets;
|
|
|
|
namespace JiShe.CollectBus.Protocol.Contracts.Interfaces
|
|
{
|
|
public interface IProtocolPlugin
|
|
{
|
|
Task<ProtocolInfo> GetAsync();
|
|
|
|
Task AddAsync();
|
|
|
|
Task<T> AnalyzeAsync<T>(MessageReceived messageReceived, Action<byte[]>? sendAction = null) where T : TB3761;
|
|
|
|
Task LoginAsync(MessageReceivedLogin messageReceived);
|
|
|
|
Task HeartbeatAsync(MessageReceivedHeartbeat messageReceived);
|
|
}
|
|
}
|