using System;
namespace axXez.TS3.Protocol
{
/// Maps a property to one or more TeamSpeak text-protocol field keys. The framework binds the first matching key found in an entry to this property.
[AttributeUsage(AttributeTargets.Property)]
public sealed class TsFieldAttribute : Attribute
{
/// The field key(s) this property maps to. The first key present in the entry data is used.
public string[] Keys { get; }
/// Marks this property as mapped to the given field key(s).
public TsFieldAttribute(params string[] keys) => Keys = keys;
}
}