using Impostor.Api.Net.Messages;
namespace Impostor.Hazel
{
public struct DataReceivedEventArgs
{
public readonly Connection Sender;
///
/// The bytes received from the client.
///
public readonly IMessageReader Message;
///
/// The the data was sent with.
///
public readonly MessageType Type;
public DataReceivedEventArgs(Connection sender, IMessageReader msg, MessageType type)
{
this.Sender = sender;
this.Message = msg;
this.Type = type;
}
}
}