using System.Collections.Generic;
namespace axXez.TS3.Protocol
{
/// Describes the set of properties that changed on a after the most recent update.
public class TsEntityChangeInfo
{
private readonly IReadOnlySet _changed;
internal TsEntityChangeInfo(HashSet changed) => _changed = changed;
/// Returns true if the named property changed in the most recent update.
public bool Has(string propertyName) => _changed.Contains(propertyName);
/// Whether any properties changed in the most recent update.
public bool Any => _changed.Count > 0;
/// The full set of property names that changed.
public IReadOnlySet Entries => _changed;
}
}