using System; using System.Collections; using System.Collections.Generic; using RGB.NET.Core; namespace RGB.NET.Devices.DMX; internal sealed class LedChannelMapping : IEnumerable<(int channel, Func getValue)> { #region Properties & Fields private readonly List<(int channel, Func getValue)> _mappings; #endregion #region Constructors public LedChannelMapping(List<(int channel, Func getValue)> mappings) { this._mappings = new List<(int channel, Func getValue)>(mappings); } #endregion #region Methods public IEnumerator<(int channel, Func getValue)> GetEnumerator() => _mappings.GetEnumerator(); IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); #endregion }