2024-10-29 16:28:14 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Threading.Tasks;
|
2024-10-25 19:11:43 +08:00
|
|
|
|
using JiShe.CollectBus.Protocol.Contracts.Models;
|
2024-10-12 23:42:15 +08:00
|
|
|
|
using TouchSocket.Sockets;
|
2024-09-30 17:10:43 +08:00
|
|
|
|
|
|
|
|
|
|
namespace JiShe.CollectBus.Protocol.Contracts.Interfaces
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IProtocolPlugin
|
|
|
|
|
|
{
|
2024-10-25 19:11:43 +08:00
|
|
|
|
Task<ProtocolInfo> GetAsync();
|
2024-09-30 17:10:43 +08:00
|
|
|
|
|
2024-10-29 16:28:14 +08:00
|
|
|
|
Task AnalyzeAsync(MessageReceivedEvent messageReceivedEvent, Action<byte[]>? sendAction = null);
|
|
|
|
|
|
|
|
|
|
|
|
Task LoginAsync(MessageReceivedLoginEvent messageReceivedEvent, Action<byte[]>? sendAction = null);
|
|
|
|
|
|
|
|
|
|
|
|
Task HeartbeatAsync(MessageReceivedHeartbeatEvent messageReceivedEvent, Action<byte[]>? sendAction = null);
|
2024-09-30 17:10:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|