20 lines
644 B
C#
20 lines
644 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using JiShe.CollectBus.Common.Models;
|
|
using JiShe.CollectBus.Protocol.Contracts.Models;
|
|
using TouchSocket.Sockets;
|
|
|
|
namespace JiShe.CollectBus.Protocol.Contracts.Interfaces
|
|
{
|
|
public interface IProtocolPlugin
|
|
{
|
|
Task<ProtocolInfo> GetAsync();
|
|
|
|
Task AnalyzeAsync(MessageReceivedEvent messageReceivedEvent, Action<byte[]>? sendAction = null);
|
|
|
|
Task LoginAsync(MessageReceivedLoginEvent messageReceivedEvent, Action<byte[]>? sendAction = null);
|
|
|
|
Task HeartbeatAsync(MessageReceivedHeartbeatEvent messageReceivedEvent, Action<byte[]>? sendAction = null);
|
|
}
|
|
}
|