using System.Net;

namespace ThingsGateway.NewLife.Data;

/// <summary>数据帧接口。用于网络通信领域，定义数据帧的必要字段</summary>
public interface IData
{
    #region 属性
    /// <summary>原始数据包</summary>
    IPacket? Packet { get; set; }

    /// <summary>远程地址</summary>
    IPEndPoint? Remote { get; set; }

    /// <summary>解码后的消息</summary>
    Object? Message { get; set; }

    /// <summary>用户自定义数据</summary>
    Object? UserState { get; set; }
    #endregion
}