#pragma warning disable CA1815 // Override equals and operator equals on value types using System; using System.Collections.ObjectModel; namespace ConfusedPolarBear.Plugin.IntroSkipper; /// /// Histogram entry for episodes in a season. /// public struct SeasonHistogram { /// /// Initializes a new instance of the struct. /// /// First episode seen with this duration. public SeasonHistogram(Guid firstEpisode) { Episodes.Add(firstEpisode); } /// /// Gets episodes with this duration. /// public Collection Episodes { get; } = new Collection(); /// /// Gets the number of times an episode with an intro of this duration has been seen. /// public int Count => Episodes?.Count ?? 0; }