using System.Collections.Generic; namespace LibMpc.Types { public class MpdDecoderPlugin { public static readonly MpdDecoderPlugin Empty = new MpdDecoderPlugin(string.Empty); private readonly IList _suffixes = new List(); private readonly IList _mediaTypes = new List(); public MpdDecoderPlugin(string name) { name.CheckNotNull(); Name = name; IsInitialized = !string.IsNullOrEmpty(name); } public string Name { get; } public IEnumerable Suffixes => _suffixes; public IEnumerable MediaTypes => _mediaTypes; internal bool IsInitialized { get; } internal void AddSuffix(string suffix) { _suffixes.Add(suffix); } internal void AddMediaType(string type) { _mediaTypes.Add(type); } } }