//
// PacketConditionalListIndexAttribute.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.
namespace NosSmooth.PacketSerializer.Abstractions.Attributes;
///
/// +
/// in one.
///
public class PacketConditionalListIndexAttribute : PacketListIndexAttribute
{
///
/// Initializes a new instance of the class.
/// You can use this attribute multiple times on one parameter.
///
/// The position in the packet.
/// What parameter to check. (it has to precede this one).
/// Whether to negate the match values (not equals).
/// The values that mean this parameter is present.
public PacketConditionalListIndexAttribute(ushort index, string conditionParameter, bool negate = false, params object?[] matchValues)
: base(index)
{
}
}