mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-07-02 00:57:38 +00:00
Decoders command + test. Still to Assert response depending on build server.
This commit is contained in:
36
LibMpc/Types/MpdDecoderPlugin.cs
Normal file
36
LibMpc/Types/MpdDecoderPlugin.cs
Normal file
@ -0,0 +1,36 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace LibMpc.Types
|
||||
{
|
||||
public class MpdDecoderPlugin
|
||||
{
|
||||
public static readonly MpdDecoderPlugin Empty = new MpdDecoderPlugin(string.Empty);
|
||||
|
||||
private readonly IList<string> _suffixes = new List<string>();
|
||||
private readonly IList<string> _mediaTypes = new List<string>();
|
||||
|
||||
public MpdDecoderPlugin(string name)
|
||||
{
|
||||
name.CheckNotNull();
|
||||
|
||||
Name = name;
|
||||
IsInitialized = !string.IsNullOrEmpty(name);
|
||||
}
|
||||
|
||||
public string Name { get; }
|
||||
public IEnumerable<string> Suffixes => _suffixes;
|
||||
public IEnumerable<string> MediaTypes => _mediaTypes;
|
||||
|
||||
internal bool IsInitialized { get; }
|
||||
|
||||
internal void AddSuffix(string suffix)
|
||||
{
|
||||
_suffixes.Add(suffix);
|
||||
}
|
||||
|
||||
internal void AddMediaType(string type)
|
||||
{
|
||||
_mediaTypes.Add(type);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user