using System.Collections; namespace InnovEnergy.Lib.StatusApi; #pragma warning disable CS8618 public class CombinedStatus : IReadOnlyList { public T? Combined { get; init; } public IReadOnlyList Stati { get; init; } public Boolean Available => Stati.Count > 0; public IEnumerator GetEnumerator() => Stati.GetEnumerator(); IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); public Int32 Count => Stati.Count; public T this[Int32 index] => Stati[index]; }