//
// AbstractMover.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;
namespace Anonymizer.Movers;
///
public abstract class AbstractMover : IMover
where TPacket : IPacket
{
///
public abstract TPacket Move(IAnonymizer anonymizer, TPacket packet);
///
public bool ShouldHandle(IPacket packet)
=> packet is TPacket;
///
public IPacket Move(IAnonymizer anonymizer, IPacket packet)
=> Move(anonymizer, (TPacket)packet);
}