~ruther/NosSmooth.Comms

ref: edcd26a2f21092371c9169ae56ae85c144a8bfd7 NosSmooth.Comms/src/Core/NosSmooth.Comms.Abstractions/Messages/PacketMessage.cs -rw-r--r-- 666 bytes
edcd26a2 — Rutherther feat: move to new injection supporting passing in data and returning integer 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//
//  PacketMessage.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using NosSmooth.Packets;
using NosSmooth.PacketSerializer.Abstractions.Attributes;

namespace NosSmooth.Comms.Data.Messages;

/// <summary>
/// A message containing deserialized packet.
/// </summary>
/// <remarks>
/// May be used for sending or receiving a packet.
/// </remarks>
/// <param name="Source">The source the packet comes from.</param>
/// <param name="Packet">The deserialized packet.</param>
public record PacketMessage(PacketSource Source, IPacket Packet);