//
// ParsingFailedPacket.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 NosCore.Packets;
using Remora.Results;
namespace NosSmooth.Core.Packets;
///
/// Represents packet that failed to parse correctly.
///
public class ParsingFailedPacket : PacketBase
{
///
/// Initializes a new instance of the class.
///
/// The result from the serializer.
/// The full text of the packet.
public ParsingFailedPacket(IResult serializerResult, string packet)
{
SerializerResult = serializerResult;
Packet = packet;
}
///
/// Gets the result from the serializer.
///
public IResult SerializerResult { get; }
///
/// Gets he full packet string.
///
public string Packet { get; }
}