mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-01-14 22:18:43 +00:00
4ffa4bca6c
Commands: disableoutput, enableoutput, outputs, tagtypes, update implemented.
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace LibMpc
|
|
{
|
|
public partial class Commands
|
|
{
|
|
/// <summary>
|
|
/// https://www.musicpd.org/doc/protocol/reflection_commands.html
|
|
/// </summary>
|
|
public static class Reflection
|
|
{
|
|
// TODO: config
|
|
// TODO: commands
|
|
// TODO: notcommands
|
|
|
|
public class TagTypes : IMpcCommand<IList<string>>
|
|
{
|
|
public string Value => "tagtypes";
|
|
|
|
IDictionary<string, IList<string>> IMpcCommand<IList<string>>.FormatResponse(IList<KeyValuePair<string, string>> response)
|
|
{
|
|
var result = new Dictionary<string, IList<string>>
|
|
{
|
|
{ "tagtypes", response.Where(item => item.Key.Equals("tagtype")).Select(item => item.Value).ToList() }
|
|
};
|
|
|
|
return result;
|
|
}
|
|
}
|
|
|
|
// TODO: urlhandlers
|
|
// TODO: decoders
|
|
}
|
|
}
|
|
}
|